All of lore.kernel.org
 help / color / mirror / Atom feed
* Face some linker errors recently
@ 2018-08-22 22:17 Andreas Müller
  2018-08-22 22:27 ` Andreas Müller
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Müller @ 2018-08-22 22:17 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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@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@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@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


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

* Re: Face some linker errors recently
  2018-08-22 22:17 Face some linker errors recently Andreas Müller
@ 2018-08-22 22:27 ` Andreas Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Müller @ 2018-08-22 22:27 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Aug 23, 2018 at 12:17 AM, Andreas Müller
<schnitzeltony@gmail.com> wrote:
> 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:
>
And

meta-qt5-extra/krita:
<...>/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@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

won't post further - promised :)

Andreas


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

end of thread, other threads:[~2018-08-22 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 22:17 Face some linker errors recently Andreas Müller
2018-08-22 22:27 ` Andreas Müller

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.