#41 Argument explosion when building Kea
Closed 9 months ago by orbea. Opened 3 years ago by rossburton.

With Libtool:

../../../aarch64-poky-linux-libtool  --tag=CXX   --mode=link aarch64-poky-linux-g++  -mcpu=neoverse-n1+crc+crypto -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot -Wall-Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -O2 -pipe -g -feliminate-c/lib/dhcp_ddns/libkea-dhcp_ddns.la ../../../src/lib/stats/libkea-stats.la ../../../src/lib/config/libkea-cfgclient.la ../../../src/lib/dhcp/libkea-dhcp++.la    ../../../src/lib/database/libkea-database.la ../../../src/lib/asiolink/libkea-asiolink.la ../../../src/lib/cc/libkea-cc.la ../../../src/lib/dns/libkea-dns++.la ../../../src/lib/process/libkea-process.la ../../../src/lib/cryptolink/libkea-cryptolink.la ../../../src/lib/hooks/libkea-hooks.la ../../../src/lib/log/libkea-log.la ../../../src/lib/util/libkea-util.la ../../../src/lib/exceptions/libkea-exceptions.la -L/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot/usr/lib -llog4cplus -L/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot/usr/lib -lcrypto -lboost_system -lboost_system -ldl

aarch64-poky-linux-libtool: link: aarch64-poky-linux-g++ -mcpu=neoverse-n1+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-s
ecurity -Werror=format-security --sysroot=/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot -Wall -Wextra -Wnon-virtual-dtor -W
write-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -O2 -pipe -g -feliminate-unused-debug-types -fmacro-pr
efix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0=/usr/src/debug/kea/1.8.2-r0 -fdebug-prefix-map=/yocto/ross/build/tmp/work/neoversen
1-poky-linux/kea/1.8.2-r0=/usr/src/debug/kea/1.8.2-r0 -fdebug-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot= -fd
ebug-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=
gnu -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/kea-dhcp4 main.o  ./.libs/libdhcp4.a ../../../src/lib/cfgrpt/.libs/libcfgrpt.a ../../../src/l
ib/dhcpsrv/.libs/libkea-dhcpsrv.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/eval/.libs/libkea-eval.so /yocto/ross/build
/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/dhcp_ddns/.libs/libkea-dhcp_ddns.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-
r0/build/src/lib/process/.libs/libkea-process.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/stats/.libs/libkea-stats.so .
./../../src/lib/eval/.libs/libkea-eval.so ../../../src/lib/dhcp_ddns/.libs/libkea-dhcp_ddns.so ../../../src/lib/stats/.libs/libkea-stats.so ../../../src/l
ib/config/.libs/libkea-cfgclient.so ../../../src/lib/dhcp/.libs/libkea-dhcp++.so ../../../src/lib/database/.libs/libkea-database.so ../../../src/lib/asiolink/.libs/libkea-asiolink.so ../../../src/lib/cc/.libs/libkea-cc.so ../../../src/lib/dns/.libs/libkea-dns++.so ../../../src/lib/process/.libs/libkea-process.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/config/.libs/libkea-cfgclient.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/dhcp/.libs/libkea-dhcp++.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/dns/.libs/lib
kea-dns++.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/cryptolink/.libs/libkea-cryptolink.so /yocto/ross/build/tmp/work/
neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/database/.libs/libkea-database.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src
/lib/hooks/.libs/libkea-hooks.so ../../../src/lib/cryptolink/.libs/libkea-cryptolink.so ../../../src/lib/hooks/.libs/libkea-hooks.so /yocto/ross/build/tmp
/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/cc/.libs/libkea-cc.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/a
siolink/.libs/libkea-asiolink.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/log/.libs/libkea-log.so ../../../src/lib/log/
.libs/libkea-log.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/util/.libs/libkea-util.so ../../../src/lib/util/.libs/libk
ea-util.so /yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/build/src/lib/exceptions/.libs/libkea-exceptions.so ../../../src/lib/exceptions/.
libs/libkea-exceptions.so -lpthread -L/yocto/ross/build/tmp/work/neoversen1-poky-linux/kea/1.8.2-r0/recipe-sysroot/usr/lib -llog4cplus -lcrypto -lboost_system -ldl -pthread

But with slibtool, the invocation is obviously the same, but the actual call to the compiler is somewhat longer:

rlibtool: link: x86_64-poky-linux-g++ main.o .libs/libdhcp4.a ../../../src/lib/cfgrpt/.libs/libcfgrpt.a -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0/recipe-sysroot -Wall -Wextra -Wnon-virtual-dtor -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -pthread -Wno-missing-field-initializers -fPIC -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0=/usr/src/debug/kea/1.8.2-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0=/usr/src/debug/kea/1.8.2-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -lpthread -L.libs -ldl -lpthread -L../../../src/lib/dhcpsrv/.libs -lkea-dhcpsrv -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/.libs -lkea-eval -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/.libs -lkea-dhcp++ -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/asiolink/.libs -lkea-asiolink -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/asiolink/../../../src/lib/exceptions/.libs -lkea-exceptions -lpthread -ldl -lboost_system -ldl -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/.libs -lkea-dns++ -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/../../../src/lib/cryptolink/.libs -lkea-cryptolink -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/../../../src/lib/cryptolink/../../../src/lib/exceptions/.libs -lkea-exceptions -ldl -L/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0/recipe-sysroot/usr/lib -lcrypto -ldl -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/../../../src/lib/util/.libs -lkea-util -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/../../../src/lib/util/../../../src/lib/exceptions/.libs -lkea-exceptions -ldl -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/dns/../../../src/lib/exceptions/.libs -lcrypto -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/cryptolink/.libs -lkea-cryptolink -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/cryptolink/../../../src/lib/exceptions/.libs -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/hooks/.libs -lkea-hooks -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/hooks/../../../src/lib/cc/.libs -lkea-cc -lpthread -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/hooks/../../../src/lib/cc/../../../src/lib/asiolink/.libs -lkea-asiolink -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/hooks/../../../src/lib/cc/../../../src/lib/asiolink/../../../src/lib/exceptions/.libs -lkea-exceptions -ldl -lboost_system -L../../../src/lib/dhcpsrv/../../../src/lib/eval/../../../src/lib/dhcp/../../../src/lib/hooks/../../../src/lib/cc/../../../src/lib/util/.libs -lkea-util  [ ... ] -o .libs/kea-dhcp4

x86_64-poky-linux-g++: fatal error: cannot execute '/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/kea/1.8.2-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/10.2.0/collect2': execv: Argument list too long

Fixed on my end as of commit c5c351d.

Metadata Update from @orbea:
- Issue status updated to: Closed (was: Open)

9 months ago

Login to comment on this ticket.

Metadata