* [Buildroot] [Bug 15709] New: Building BR2_PACKAGE_LIBOPENSSL_BIN=y broken with defconfig bootlin-armv7m-uclibc
@ 2023-07-25 18:41 bugzilla
2023-07-25 18:43 ` [Buildroot] [Bug 15709] " bugzilla
2024-06-15 15:11 ` bugzilla
0 siblings, 2 replies; 3+ messages in thread
From: bugzilla @ 2023-07-25 18:41 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-15 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25 18:41 [Buildroot] [Bug 15709] New: Building BR2_PACKAGE_LIBOPENSSL_BIN=y broken with defconfig bootlin-armv7m-uclibc bugzilla
2023-07-25 18:43 ` [Buildroot] [Bug 15709] " bugzilla
2024-06-15 15:11 ` bugzilla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox