1 Reply Latest reply on Jul 1, 2016 11:51 AM by Carlos_A

    Yocto build cross toolchain issue.

    ChandraShekhar Community Member

      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                         

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