[yocto] yocto build cross toolchain issue

Chandra Mishra (chanmish) chanmish at cisco.com
Tue Jul 5 02:20:47 PDT 2016


Hi,

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

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

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

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

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

<SDK BUILD PATH>/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,
[http://www.cisco.com/c/dam/assets/email-signature-tool/logo_01.png?ct=1443872971831]

Chandra Mishra
ENGINEER.DIAGNOSTIC ENGINEERING

chanmish at cisco.com
Phone: +91 80 4429 1490

Cisco Systems, Inc.
Cessna Business Park, Kadubeesanahalli Varthur Hobli, Sarjapur Marathalli ORR
BANGALORE
560 087
India
cisco.com<http://www.cisco.com/>



[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif]Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
Please click here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for Company Registration Information.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160705/05405eca/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 10691 bytes
Desc: image002.png
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160705/05405eca/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1458 bytes
Desc: image004.png
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160705/05405eca/attachment-0001.png>


More information about the yocto mailing list