Re: #sdk #yocto Appears SDK searching host for files that are only present on target side #sdk #yocto


Khem Raj
 

On 9/9/20 8:57 AM, Monsees, Steven C (US) via lists.yoctoproject.org wrote:
 

Looking to understand why the SDK is searching the host/native
(x86_64-pokysdk-linux) side when it should be looking at the target side
(corei7-64-poky-linux) …

 

All the “crt” files are present under the target side.

 

Can someone explain what might be miss-configured ?, or better, point me
to a possible patch ?

 

I have seen some talk on-line about similar issues, but no clear
indication what the issue was, or how it was resolved…

 

I am running Yocto clang 6.0.1, cmake 3.8.2, under “rocko”, my SDK is a
standard SDK, not extensible.

 

11:31 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild>make

Scanning dependencies of target gbeinterp

[  0%] Building CXX object
backend/src/CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o

[  0%] Linking CXX shared library libgbeinterp.so

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find crti.o: No such file or directory

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find crtbeginS.o: No such file or directory

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find -lstdc++

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find -lm

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find -lgcc_s

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find -lc

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find -lgcc_s

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find crtendS.o: No such file or directory

/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/7.3.0/real-ld:
cannot find crtn.o: No such file or directory

collect2: error: ld returned 1 exit status

make[2]: *** [backend/src/libgbeinterp.so] Error 1

make[1]: *** [backend/src/CMakeFiles/gbeinterp.dir/all] Error 2

make: *** [all] Error 2

11:31 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild>

Perhaps you need to use ${CC} and ${CXX} etc. in your makefile, and also
source the SDK environment script in shell, before using it.
 

Thanks,

Steve

 

 



Join {yocto@lists.yoctoproject.org to automatically receive all group messages.