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


Monsees, Steven C (US)
 

Khem:

Do I need to re-assign CC/CXX/CPP to point to CLANGCC, etc. in my environment-setup-coreI7-64-poky-linux script ?

I thought I read somewhere that gcc was always the default compiler under the SDK, no ?

Thanks,
Steve

-----Original Message-----
From: Khem Raj [mailto:raj.khem@...]
Sent: Thursday, September 10, 2020 1:19 PM
To: Monsees, Steven C (US) <steven.monsees@...>
Cc: yocto@...
Subject: Re: [yocto] #sdk #yocto Appears SDK searching host for files that are only present on target side

*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.


its looking for tools in sdk dir, which is normal. I wonder if your apps cmake files should be using CC or CLANGCC to do linking.

On Wed, Sep 9, 2020 at 8:58 AM Monsees, Steven C (US) via lists.yoctoproject.org <steven.monsees=baesystems.com@...> 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/us
r/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/us
r/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/us
r/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/us
r/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/us
r/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/us
r/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/us
r/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/us
r/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/us
r/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>



Thanks,

Steve





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