Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns

Yocto build cross toolchain issue.

CMisr
Beginner
1,430 Views

Hi ,

We build cross toolchain for corei7-64 arch based processor and getting build issue with the toolchain. Toolchain reports below error while linking some static libraries,

-Wl,--end-group -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -static -lnsl -lpthread -lm -lrt

/sysroots/corei7-64-poky-linux/usr/lib/../lib/librt.a(shm_open.o): In function `shm_open':

/build/tmp/work/corei7-64-poky-linux/glibc/2.22-r0/git/rt/../sysdeps/posix/shm_open.c:35: undefined reference to `__shm_directory'

/sysroots/corei7-64-poky-linux/usr/lib/../lib/librt.a(shm_unlink.o): In function `shm_unlink':

/build/tmp/work/corei7-64-poky-linux/glibc/2.22-r0/git/rt/../sysdeps/posix/shm_unlink.c:35: undefined reference to `__shm_directory'

collect2: error: ld returned 1 exit status

What could be the possible reason for above errors.

Regards,

0 Kudos
1 Reply
CarlosAM_INTEL
Moderator
434 Views

Hello ChandraShekhar,

Thank you for contacting the Intel Embedded Community.

In order to help you with your consultations based on the information stated in the https://software.intel.com/en-us/articles/open-source-yocto Intel® Software Open Source – Yocto Project website and https://software.intel.com/sites/default/files/Intel_Yocto_Embedded-Brief_web_9-2012.pdf Intel Yocto Embedded Brief document, your consultations of this kind should be addressed to the https://software.intel.com/en-us/forum Intel Developer Zone Forum or https://www.yoctoproject.org/tools-resources/community Yocto Project Community.

We hope that this information may help you to solve this inconvenience.

Best Regards,

Carlos_A.

0 Kudos
Reply