From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 15709] New: Building BR2_PACKAGE_LIBOPENSSL_BIN=y broken with defconfig bootlin-armv7m-uclibc
Date: Tue, 25 Jul 2023 18:41:38 +0000 [thread overview]
Message-ID: <bug-15709-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=15709
Bug ID: 15709
Summary: Building BR2_PACKAGE_LIBOPENSSL_BIN=y broken with
defconfig bootlin-armv7m-uclibc
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: bernd@kuhls.net
CC: buildroot@uclibc.org
Target Milestone: ---
Created attachment 9628
--> https://bugs.busybox.net/attachment.cgi?id=9628&action=edit
defconfig
/home/bernd/buildroot/br4/output/per-package/libopenssl/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real:
./libcrypto.a(libcrypto-lib-threads_pthread.o): in function `CRYPTO_atomic_or':
threads_pthread.c:(.text+0xf6): undefined reference to `__atomic_is_lock_free'
/home/bernd/buildroot/br4/output/per-package/libopenssl/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real:
threads_pthread.c:(.text+0x106): undefined reference to `__atomic_fetch_or_8'
/home/bernd/buildroot/br4/output/per-package/libopenssl/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real:
./libcrypto.a(libcrypto-lib-threads_pthread.o): in function
`CRYPTO_atomic_load':
threads_pthread.c:(.text+0x158): undefined reference to `__atomic_is_lock_free'
/home/bernd/buildroot/br4/output/per-package/libopenssl/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real:
threads_pthread.c:(.text+0x162): undefined reference to `__atomic_load_8'
The toolchain contains libatomic
$ find
output/per-package/libopenssl/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot/
| grep atomic
output/per-package/libopenssl/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot/lib/libatomic.la
output/per-package/libopenssl/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot/lib/libatomic.a
Adding -latomic to the openssl configure script fixes the build error.
BR2_TOOLCHAIN_HAS_LIBATOMIC is not enabled:
$ grep ATOMIC .config
BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS=y
BR2_TOOLCHAIN_HAS_ATOMIC=y
BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC=y
BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS=y
# BR2_PACKAGE_LIBATOMIC_OPS is not set
The reason why buildroot does not enable BR2_TOOLCHAIN_HAS_LIBATOMIC is the
binfmt used:
$ grep BINFMT .config
BR2_BINFMT_FLAT=y
BR2_BINFMT_FLAT_ONE=y
# BR2_BINFMT_FLAT_SEP_DATA is not set
which leads to BR2_TOOLCHAIN_HAS_LIBATOMIC not being enabled:
https://git.busybox.net/buildroot/tree/toolchain/Config.in#n851
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2023-07-25 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 18:41 bugzilla [this message]
2023-07-25 18:43 ` [Buildroot] [Bug 15709] Building BR2_PACKAGE_LIBOPENSSL_BIN=y broken with defconfig bootlin-armv7m-uclibc bugzilla
2024-06-15 15:11 ` bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-15709-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@uclibc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.