Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ulog compilation issue with buildroot 2022.02.2
@ 2022-06-02 15:31 Nicolas Carrier
  2022-06-03  9:09 ` Nicolas Carrier
  0 siblings, 1 reply; 13+ messages in thread
From: Nicolas Carrier @ 2022-06-02 15:31 UTC (permalink / raw)
  To: Buildroot List; +Cc: Herve Codina, Tim Hammer

Hello!

When using the following minimal config:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_ARM_FPU_NEON=y
BR2_SSP_ALL=y
BR2_FORTIFY_SOURCE_2=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y
BR2_INIT_SYSTEMD=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
BR2_PACKAGE_ULOG=y

the build will fail when trying to build ulog with the following error message:

[...]
xxx C++: libulog <= libulog/ulog.cpp
xxx C: libulog <= libulog/ulog_read.c
xxx C: libulog <= libulog/ulog_write.c
xxx C: libulog <= libulog/ulog_write_android.c
xxx C: libulog <= libulog/ulog_write_bin.c
xxx C: libulog <= libulog/ulog_write_raw.c
SharedLib: libulog => alchemy-out/build/libulog/libulog.so
/home/ncarrier/workspace/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-
gnueabihf/7.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/libpthread.so.0
/home/ncarrier/workspace/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-
gnueabihf/7.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/libpthread_nonshared.a
collect2: error: ld returned 1 exit status
make[1]: Leaving directory '/home/ncarrier/workspace/buildroot/output/build/ulog-
0389d243352255f6182326dccdae3d56dadc078f'
make[1]: ***
[/home/ncarrier/workspace/buildroot/output/host/opt/alchemy/classes/LIBRARY/rules.mk:25: alchemy-
out/build/libulog/libulog.so] Error 1
make: *** [package/pkg-generic.mk:293: /home/ncarrier/workspace/buildroot/output/build/ulog-
0389d243352255f6182326dccdae3d56dadc078f/.stamp_built] Error 2

From this traces, it looks like it is trying to link with /lib/libpthread.so.0, which can't work
since it's the pthread library of the system.


One thing to note is that, when BR2_INIT_SYSTEMD=y is removed from the config above, the build will
succeed.
So it looks like systemd or one of its dependencies, is enabling something which breaks ulog's
build.

Does anyone have an idea of what could possibly go wrong and maybe, of a workaround?
My host machine is a debian 11 amd64.

Thank you by advance :)

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-06-07  7:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2413.1654341347.130377.buildroot@buildroot.org>
2022-06-05  6:05 ` [Buildroot] ulog compilation issue with buildroot 2022.02.2 Andreas Ziegler
2022-06-05  7:06   ` Thomas Petazzoni via buildroot
2022-06-05 11:46     ` Andreas Ziegler
2022-06-05 14:01       ` Romain Naour
2022-06-06 14:27         ` Tim Hammer
2022-06-06 18:09           ` Arnout Vandecappelle
2022-06-07  7:28       ` Nicolas Carrier
2022-06-02 15:31 Nicolas Carrier
2022-06-03  9:09 ` Nicolas Carrier
2022-06-03  9:47   ` Thomas Petazzoni via buildroot
2022-06-03 10:44     ` Nicolas Carrier
2022-06-03 10:51       ` Nicolas Carrier
2022-06-03 12:53         ` Nicolas Carrier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox