Bug 14323 - libglib-2.0.so: file not recognized
Summary: libglib-2.0.so: file not recognized
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-03-24 17:13 UTC by Oleksiy Obitotskyy
Modified: 2021-03-25 15:03 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksiy Obitotskyy 2021-03-24 17:13:23 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/3256

| /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so: file not recognized: file format not recognized
| collect2: error: ld returned 1 exit status
| linking of temporary binary failed: Command '['arm-poky-linux-gnueabi-gcc', '-mfpu=neon', '-mfloat-abi=hard', '-mcpu=cortex-a8', '-fstack-protector-strong', '-O2', '-D_FORTIFY_SOURCE=2', '-Wformat', '-Wformat-security', '-Werror=format-security', '--sysroot=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot', '-o', '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/build/tmp-introspect4xywimi_/GdkPixbuf-2.0', '-O2', '-pipe', '-g', '-feliminate-unused-debug-types', '-fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0=/usr/src/debug/gdk-pixbuf/2.40.0-r0', '-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0=/usr/src/debug/gdk-pixbuf/2.40.0-r0', '-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot=', '-fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native=', '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/build/tmp-introspect4xywimi_/GdkPixbuf-2.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L./gdk-pixbuf', '-L/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib', '-Wl,-rpath,/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib', '-lgdk_pixbuf-2.0', '-lm', '-lglib-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgio-2.0', '-lgirepository-1.0', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-Wl,-O1', '-Wl,--hash-style=gnu', '-Wl,--as-needed', '-Wl,-z,relro,-z,now']' returned non-zero exit status 1.
Comment 1 Oleksiy Obitotskyy 2021-03-24 17:29:32 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/62/builds/3233

/home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/build/tmp-introspecttv1wp2sc/Atk-1.0: error while loading shared libraries: /home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so.0: ELF file data encoding not big-endian
If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help.
(typically like this: GIR_EXTRA_LIBS_PATH="${B}/something/.libs" )
Command '['/home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/recipe-sysroot/usr/bin/g-ir-scanner-qemuwrapper', '/home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/build/tmp-introspecttv1wp2sc/Atk-1.0', '--introspect-dump=/home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/build/tmp-introspecttv1wp2sc/functions.txt,/home/pokybuild/yocto-worker/edgerouter/build/build/tmp/work/mips64-poky-linux/atk/2.36.0-r0/build/tmp-introspecttv1wp2sc/dump.xml']' returned non-zero exit status 1.
Comment 2 Oleksiy Obitotskyy 2021-03-24 18:11:53 UTC
Slightly different error:

https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/3241

/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot/usr/bin/g-ir-scanner-wrapper --no-libtool --namespace=Atk --nsversion=1.0 --warn-all --output atk/Atk-1.0.gir --quiet --c-include=atk/atk.h -DATK_COMPILATION -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/atk-2.36.0/atk -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/build/atk -I./. -I../atk-2.36.0/. -I./atk -I../atk-2.36.0/atk --filelist=/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/build/atk/libatk-1.0.so.0.23609.1.p/Atk_1.0_gir_filelist --include=GObject-2.0 --symbol-prefix=atk --identifier-prefix=Atk --pkg-export=atk --cflags-begin -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -I./. -I../atk-2.36.0/. -I./atk -I../atk-2.36.0/atk -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot/usr/include/glib-2.0 -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot/usr/lib/glib-2.0/include -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/gobject-introspection-1.0 -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/glib-2.0 -I/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/glib-2.0/include --cflags-end --add-include-path=/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/share/gir-1.0 -L./atk --library atk-1.0 --extra-library=glib-2.0 --extra-library=gobject-2.0 -L/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib --extra-library=girepository-1.0 --sources-top-dirs /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/atk-2.36.0/subprojects/ --sources-top-dirs /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/build/subprojects/
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: libpthread.so.0, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: libc.so.6, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: libdl.so.2, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libgirepository-1.0.so, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: libm.so.6, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libgirepository-1.0.so, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: libresolv.so.2, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libgio-2.0.so, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: warning: librt.so.1, needed by /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/./libmount.so.1, not found (try using -rpath or -rpath-link)
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so: undefined reference to `strtoull_l@GLIBC_2.3.3'
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so: undefined reference to `fallocate64@GLIBC_2.10'
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libgio-2.0.so: undefined reference to `getsockname@GLIBC_2.2.5'
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libglib-2.0.so: undefined reference to `__fxstat64@GLIBC_2.2.5'
/home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/10.2.0/ld: /home/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/core2-64-poky-linux-musl/atk/2.36.0-r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib/libgio-2.0.so: undefined reference to `getgrgid_r@GLIBC_2.2.5'
Comment 3 Ross Burton 2021-03-25 15:03:41 UTC
master-next specific, my patches were dropped.