[OE-core] Face some linker errors recently

Andreas Müller schnitzeltony at gmail.com
Wed Aug 22 22:17:07 UTC 2018


Hi,

to test my patches, I moved my layers from sumo to recent master and
see similar linker (=gold) errors in different recipes. Up to now
there are:

meta-qt5-extra/kwallet:
FAILED: bin/libkwalletbackend5.so.5.49.0
: && <...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++
-fPIC -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7  --sysroot=<...>/recipe-sysroot  -O2 -pipe -g
-feliminate-unused-debug-types
-fdebug-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/kwallet/5.49.0-r0=/usr/src/debug/kwallet/5.49.0-r0
-fdebug-prefix-map=<...>/recipe-sysroot=
-fdebug-prefix-map=<...>/recipe-sysroot-native=
-fvisibility-inlines-hidden  -march=armv7ve -mthumb -mfpu=neon-vfpv4
-mfloat-abi=hard -mcpu=cortex-a7  --sysroot=<...>/recipe-sysroot
-std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra
-Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long
-Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual
-Werror=return-type -Wvla -Wdate-time -fdiagnostics-color=always
-pedantic -Wsuggest-override -Wlogical-op
-Wzero-as-null-pointer-constant  -Wl,--no-undefined
-Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -shared
-Wl,-soname,libkwalletbackend5.so.5 -o
bin/libkwalletbackend5.so.5.49.0
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/blockcipher.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/blowfish.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/cbc.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/sha1.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/kwalletentry.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/kwalletbackend.cc.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/backendpersisthandler.cpp.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/kwalletbackend_debug.cpp.o
src/runtime/kwalletd/backend/CMakeFiles/kwalletbackend5.dir/kwalletbackend5_autogen/mocs_compilation.cpp.o
 <...>/recipe-sysroot/usr/lib/libKF5WidgetsAddons.so.5.49.0
<...>/recipe-sysroot/usr/lib/libKF5Notifications.so.5.49.0
<...>/recipe-sysroot/usr/lib/libKF5I18n.so.5.49.0 -lgcrypt
<...>/recipe-sysroot/usr/lib//libgpgmepp.so
<...>/recipe-sysroot/usr/lib/libKF5CoreAddons.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5DBus.so.5.11.1
<...>/recipe-sysroot/usr/lib/libQt5Widgets.so.5.11.1
<...>/recipe-sysroot/usr/lib/libQt5Gui.so.5.11.1
<...>/recipe-sysroot/usr/lib/libQt5Core.so.5.11.1 -lpthread -lgpgme
-lassuan && :
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld:
warning: discarding version information for
__pthread_key_create at GLIBC_2.4, defined in unused shared library
<...>/recipe-sysroot/usr/lib/libpthread.so (linked with --as-needed)
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld:
error: treating warnings as errors
collect2: error: ld returned 1 exit status


meta-qt5-extra/kio-extras:
FAILED: thumbnail/svgthumbnail.so
: && <...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++
-fPIC -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7  --sysroot=<...>/recipe-sysroot  -O2 -pipe -g
-feliminate-unused-debug-types
-fdebug-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/kio-extras/18.04.2-r0=/usr/src/debug/kio-extras/18.04.2-r0
-fdebug-prefix-map=<...>/recipe-sysroot=
-fdebug-prefix-map=<...>/recipe-sysroot-native=
-fvisibility-inlines-hidden  -march=armv7ve -mthumb -mfpu=neon-vfpv4
-mfloat-abi=hard -mcpu=cortex-a7  --sysroot=<...>/recipe-sysroot
-std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra
-Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long
-Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual
-Werror=return-type -Wvla -Wdate-time -fdiagnostics-color=always
-Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -shared  -o
thumbnail/svgthumbnail.so
thumbnail/CMakeFiles/svgthumbnail.dir/svgcreator.cpp.o
thumbnail/CMakeFiles/svgthumbnail.dir/svgthumbnail_autogen/mocs_compilation.cpp.o
 <...>/recipe-sysroot/usr/lib/libKF5KIOWidgets.so.5.49.0
<...>/recipe-sysroot/usr/lib/libKF5KIOCore.so.5.49.0
<...>/recipe-sysroot/usr/lib/libKF5Service.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5Network.so.5.11.1
<...>/recipe-sysroot/usr/lib/libQt5Concurrent.so.5.11.1
<...>/recipe-sysroot/usr/lib/libKF5JobWidgets.so.5.49.0
<...>/recipe-sysroot/usr/lib/libKF5Completion.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5Svg.so.5.11.1
<...>/recipe-sysroot/usr/lib/libKF5WidgetsAddons.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5Widgets.so.5.11.1
<...>/recipe-sysroot/usr/lib/libKF5CoreAddons.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5DBus.so.5.11.1
<...>/recipe-sysroot/usr/lib/libKF5ConfigCore.so.5.49.0
<...>/recipe-sysroot/usr/lib/libQt5Gui.so.5.11.1
<...>/recipe-sysroot/usr/lib/libQt5Core.so.5.11.1 && :
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld:
warning: discarding version information for __cxa_finalize at GLIBC_2.4,
defined in unused shared library <...>/recipe-sysroot/lib/libc.so.6
(linked with --as-needed)
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld:
error: treating warnings as errors
collect2: error: ld returned 1 exit status


meta-browser/chromium-x11:
FAILED: libVkICD_mock_icd.so libVkICD_mock_icd.so.TOC
python "../../build/toolchain/gcc_solink_wrapper.py"
--readelf="arm-angstrom-linux-gnueabi-readelf"
--nm="arm-angstrom-linux-gnueabi-nm" --sofile="./libVkICD_mock_icd.so"
--tocfile="./libVkICD_mock_icd.so.TOC"
--output="./libVkICD_mock_icd.so"  -- arm-angstrom-linux-gnueabi-g++
-march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 --sysroot=<...>/recipe-sysroot -shared
-Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack
-Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -B
-Wl,--icf=all -Wl,-O2 -Wl,--gc-sections -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -o "./libVkICD_mock_icd.so"
-Wl,-soname="libVkICD_mock_icd.so" @"./libVkICD_mock_icd.so.rsp"
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld.gold:
warning: discarding version information for
__pthread_key_create at GLIBC_2.4, defined in unused shared library
<...>/recipe-sysroot/usr/lib/libpthread.so (linked with --as-needed)
<...>/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/8.2.0/ld.gold:
error: treating warnings as errors
collect2: error: ld returned 1 exit status

OK I could add

LDFLAGS_append = " -Wl,--no-fatal-warnings"

but that just works around. Does anybody have an idea what's going
wrong with these recipes?

Cheers

Andreas



More information about the Openembedded-core mailing list