Yocto problem building glibc in Colibri i.MX8X image

tmp/work/aarch64-poky-linux/glibc/2.27-r0/build-aarch64-poky-linux/elf/ld.so -Wl,--no-as-needed -Wl,--end-group
/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/build-aarch64-poky-linux/nptl/libpthread_nonshared.a(pthread_atfork.oS): In function `__pthread_atfork':
/usr/src/debug/glibc/2.27-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle'
/usr/src/debug/glibc/2.27-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle'
/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-poky-linux.gcc-cross-initial-aarch64/gcc/aarch64-poky-linux/7.3.0/ld: /media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/build-aarch64-poky-linux/rt/librt.so: hidden symbol `__dso_handle' isn't defined
/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-poky-linux.gcc-cross-initial-aarch64/gcc/aarch64-poky-linux/7.3.0/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
../Makerules:599: recipe for target '/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/build-aarch64-poky-linux/rt/librt.so' failed
make[2]: *** [/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/build-aarch64-poky-linux/rt/librt.so] Error 1
make[2]: Leaving directory '/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/git/rt'
Makefile:235: recipe for target 'rt/others' failed
make[1]: *** [rt/others] Error 2
make[1]: Leaving directory '/media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/git'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /media/sistlajr/2tb_hd/imx/build/tmp/work/aarch64-poky-linux/glibc/2.27-r0/temp/log.do_compile.29560)

Hello @sistlajr and Welcome to the Toradex Community!

Concerning your Issue, could you provide the following details:

  1. What commands did you entered to launch the compilation?
  2. Did you install the prerequisites?
  3. Could you provide the details about your host (hardware and linux distribution )?

Thanks and best regards
Jaski