#sdk #yocto Appears SDK searching host for files that are only present on target side #yocto #sdk
Monsees, Steven C (US)
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>
Thanks, Steve
|
|
On 9/9/20 8:57 AM, Monsees, Steven C (US) via lists.yoctoproject.org wrote:
Perhaps you need to use ${CC} and ${CXX} etc. in your makefile, and also source the SDK environment script in shell, before using it.
|
|
Monsees, Steven C (US)
# Append environment subscripts
|
|
its looking for tools in sdk dir, which is normal. I wonder if your
toggle quoted messageShow quoted text
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@lists.yoctoproject.org> wrote:
|
|
Leon Woestenberg
Hello Steven,
toggle quoted messageShow quoted text
you mention you use CMake with the Yocto (standard) SDK. After you sourced the SDK environment script, what is the output of "which cmake" ? Do you use the cmake toolchain configuration file provided by the SDK? (CMAKE_TOOLCHAIN_FILE) In my conf/local.conf I make sure I have a native cmake included in the SDK: # Does not work, will destroy TOOLCHAIN_HOST_TASK #TOOLCHAIN_HOST_TASK += "nativesdk-cmake" # This is a work-around (we need to extra space here because _append will not add it for us). TOOLCHAIN_HOST_TASK_append = " nativesdk-cmake" And this is how I compile an application using SDK and CMake: (source /tmp/oe-sdk-cmake/environment-setup-core2-64-oe-linux-musl && \ cd myapp-cmake && \ mkdir -p build_sdk && \ cd build_sdk && \ cmake -DCMAKE_TOOLCHAIN_FILE=$$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake -DCMAKE_VERBOSE_MAKEFILE=1 . .. && \ make) (I am using gcc, I I will verify this setup if I switch to clang.) Regards, -- Leon Woestenberg leon@sidebranch.com M: +31 6 472 30 372 Sidebranch Embedded Systems Eindhoven, The Netherlands http://www.sidebranch.com On Thu, Sep 10, 2020 at 12:53 PM Monsees, Steven C (US) via lists.yoctoproject.org <steven.monsees=baesystems.com@lists.yoctoproject.org> wrote:
|
|
Monsees, Steven C (US)
Leon:
toggle quoted messageShow quoted text
Thank you for responding, however I am already doing these steps and environment appears to be setting up correctly... my problem seems to when running make after config. I too am using gcc currently, I do not seem to have an issue compiling small simple programs like hello, fibonnaci, etc. There is something going between the SDK/cmake... I am going to try using clanf and see if it behaves the same way today. Thanks again, Steve
-----Original Message-----
From: Leon Woestenberg [mailto:leon@sidebranch.com] Sent: Friday, September 11, 2020 3:32 AM To: Monsees, Steven C (US) <steven.monsees@baesystems.com> Cc: yocto@lists.yoctoproject.org 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. Hello Steven, you mention you use CMake with the Yocto (standard) SDK. After you sourced the SDK environment script, what is the output of "which cmake" ? Do you use the cmake toolchain configuration file provided by the SDK? (CMAKE_TOOLCHAIN_FILE) In my conf/local.conf I make sure I have a native cmake included in the SDK: # Does not work, will destroy TOOLCHAIN_HOST_TASK #TOOLCHAIN_HOST_TASK += "nativesdk-cmake" # This is a work-around (we need to extra space here because _append will not add it for us). TOOLCHAIN_HOST_TASK_append = " nativesdk-cmake" And this is how I compile an application using SDK and CMake: (source /tmp/oe-sdk-cmake/environment-setup-core2-64-oe-linux-musl && \ cd myapp-cmake && \ mkdir -p build_sdk && \ cd build_sdk && \ cmake -DCMAKE_TOOLCHAIN_FILE=$$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake -DCMAKE_VERBOSE_MAKEFILE=1 . .. && \ make) (I am using gcc, I I will verify this setup if I switch to clang.) Regards, -- Leon Woestenberg leon@sidebranch.com M: +31 6 472 30 372 Sidebranch Embedded Systems Eindhoven, The Netherlands http://www.sidebranch.com On Thu, Sep 10, 2020 at 12:53 PM Monsees, Steven C (US) via lists.yoctoproject.org <steven.monsees=baesystems.com@lists.yoctoproject.org> wrote:
|
|
Monsees, Steven C (US)
Khem:
toggle quoted messageShow quoted text
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@gmail.com] Sent: Thursday, September 10, 2020 1:19 PM To: Monsees, Steven C (US) <steven.monsees@baesystems.com> Cc: yocto@lists.yoctoproject.org 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@lists.yoctoproject.org> wrote:
|
|
Monsees, Steven C (US)
Khem:
I setup clang as default compiler under my SDK, and I am seeing the same issue... It appears to be the linker. Is this an environmental setup issue or possibly a problem with the "compiler-rt" component ? Builds output below. Would you be willing to look over my "environment-setup-coreI7-poky-linux" and "OEToolchainConfig.cmake" scripts ? Thanks, Steve 07:32 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild>cmake -DCMAKE_TOOLCHAIN_FILE=/ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/environment-setup.d/OEToolchainConfig.cmake \ -DCMAKE_VERBOSE_MAKEFILE=1 \-- SCM: CMAKE_LIBRARY_PATH=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0 -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CPP_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -v -E -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_ASM_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_FIND_ROOT_PATH=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux;/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux -- SCM: CMAKE_SYSTEM_PROCESSOR=corei7-64 -- SCM: CMAKE_LIBRARY_PATH=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0;/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0 -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CPP_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -v -E -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_ASM_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_FIND_ROOT_PATH=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux;/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux -- SCM: CMAKE_SYSTEM_PROCESSOR=corei7-64 -- The C compiler identification is Clang 6.0.1 -- The CXX compiler identification is Clang 6.0.1 -- Check for working C compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang -- Check for working C compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang++ -- Check for working CXX compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/pkg-config (found version "0.29.2") -- SCM: CMAKE_INSTALL_FULL_LIBDIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib -- SCM: BEIGNET_LIBRARY_ARCHITECTURE= -- SCM: LIB_INSTALL_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib -- SCM: BEIGNET_INSTALL_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet/ -- SCM: ICD_FILE_NAME=intel-beignet.icd -- Building mode: Debug -- SCM: CMAKE_BUILD_TYPE=Debug -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -- LLVM llvm-config found at: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/llvm-config -- find unstable LLVM version 6.0.1 -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -fno-rtti -- SCM: CMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -Wl,--no-undefined -L/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib --sysroot=/disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot -O2 -pipe -Wl,-O1 -- Looking for XOpenDisplay in /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libXext.so -- Looking for XOpenDisplay in /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so -- Looking for XLib - found -- Checking for module 'libdrm' -- Found libdrm, version 2.4.83 -- Looking for DRM - found at /usr 2.4.83 -- Checking for module 'libdrm_intel>=2.4.52' -- Found libdrm_intel, version 2.4.83 -- Looking for DRM Intel - found at /usr 2.4.83 -- Looking for drm_intel_bo_alloc_userptr in drm_intel -- Looking for drm_intel_bo_alloc_userptr in drm_intel - found -- Enable userptr support -- Looking for drm_intel_get_eu_total in drm_intel -- Looking for drm_intel_get_eu_total in drm_intel - found -- Enable EU total query support -- Looking for drm_intel_get_subslice_total in drm_intel -- Looking for drm_intel_get_subslice_total in drm_intel - found -- Enable subslice total query support -- Looking for drm_intel_get_pooled_eu in drm_intel -- Looking for drm_intel_get_pooled_eu in drm_intel - found -- Enable pooled eu query support -- Looking for drm_intel_get_min_eu_in_pool in drm_intel -- Looking for drm_intel_get_min_eu_in_pool in drm_intel - found -- Enable min eu in pool query support -- SCM: DRM_INTEL_INCLUDE_DIRS=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -- Checking for module 'libcmrt' -- No package 'libcmrt' found -- SCM: CMRT_INCLUDE_DIRS= -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Checking for module 'gl' -- Found gl, version 17.1.7 -- Looking for OpenGL - found at /usr -- SCM: OPENGL_INCLUDE_DIRS=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -- Checking for module 'xext' -- Found xext, version 1.3.3 -- Looking for Xext - found at /usr -- SCM: XEXT_INCLUDE_DIRS= -- Checking for module 'xfixes' -- Found xfixes, version 5.0.3 -- Looking for Xfixes - found at /usr -- SCM: XFIXES_INCLUDE_DIRS= -- Checking for module 'egl' -- Found egl, version 17.1.7 -- Looking for EGL - found at /usr -- SCM: EGL_PREFIX=/usr -- SCM: MESA_SOURCE_PREFIX= -- Looking for OCL ICD header file - not found -- Found PythonInterp: /usr/bin/python (found version "2.7.5") -- SCM: CMAKE_MODULE_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/CMake/;/ede/smonsees/yocto/test/beignet-Release_v1.2/backend/cmake -- Building mode: Debug -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -fno-rtti -I/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DGBE_DEBUG_MEMORY=0 -DGBE_COMPILER_AVAILABLE=1 -fvisibility=hidden -- SCM: LLVM_CFLAGS=-I/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -- SCM: GBE_DEBUG_MEMORY_FLAG=-DGBE_DEBUG_MEMORY=0 -- SCM: GBE_COMPILE_UTESTS_FLAG= -- SCM: CMAKE_CURRENT_BINARY_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend -- SCM: include_directories= -- SCM: OCL_BITCODE_BIN=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc -- SCM: OCL_HEADER_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include -- SCM: OCL_PCH_OBJECT=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.pch -- SCM: GBE_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//libgbe.so -- SCM: INTERP_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//libgbeinterp.so -- SCM: LOCAL_OCL_BITCODE_BIN= -- SCM: LOCAL_OCL_HEADER_DIR= -- SCM: LOCAL_OCL_PCH_OBJECT= -- SCM: LOCAL_GBE_OBJECT_DIR= -- SCM: LOCAL_INTERP_OBJECT_DIR= -- SCM: DRM_INTEL_LIBRARIES=drm_intel;drm -- SCM: DRM_LIBRARIES=drm -- SCM: CLANG_LIBRARIES=libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6 -- SCM: LLVM_MODULE_LIBS=-lLLVMCoverage -lLLVMDlltoolDriver -lLLVMLineEditor -lLLVMOrcJIT -lLLVMWindowsManifest -lLLVMFuzzMutate -lLLVMMCJIT -lLLVMCoroutines -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoDWARF -lLLVMMIRParser -lLLVMAsmParser -lLLVMTableGen -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMPowerPCDisassembler -lLLVMPowerPCCodeGen -lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMPowerPCAsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMBPFDisassembler -lLLVMBPFCodeGen -lLLVMBPFAsmParser -lLLVMBPFDesc -lLLVMBPFInfo -lLLVMBPFAsmPrinter -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMARMUtils -lLLVMAArch64Disassembler -lLLVMMCDisassembler -lLLVMAArch64CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMAArch64AsmParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMAArch64Utils -lLLVMObjectYAML -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMLibDriver -lLLVMOption -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -- SCM: LLVM_SYSTEM_LIBS=-lz -lrt -ldl -ltinfo -lpthread -lm -lxml2 -- SCM: CMAKE_THREAD_LIBS_INIT=-lpthread -- SCM: CMAKE_DL_LIBS=dl -- SCM: LLVM_LIBRARY_DIRS=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib -- SCM: LLVM_INCLUDE_DIRS=/ede/smonsees/yocto/testSDK/sysroots/llvm/include -- SCM: LOCAL_OCL_BITCODE_BIN=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc -- SCM: LOCAL_OCL_HEADER_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include/ -- SCM: LOCAL_OCL_PCH_OBJECT=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.local.pch -- SCM: LOCAL_GBE_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libgbe.so -- SCM: LOCAL_INTERP_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libgbeinterp.so -- SCM: GBE_BIN_GENERATER=env;OCL_BITCODE_LIB_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc;OCL_HEADER_FILE_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include/;OCL_PCH_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.local.pch -- Configuring done -- Generating done -- Build files have been written to: /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild 07:33 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 clang version 6.0.1 (git://github.com/llvm-mirror/clang.git f0ac6bbc7e2082f14cbec7fd1241c130f938201a) (git://github.com/llvm-mirror/llvm.git 64c8bcf5355eae932f55de9d245dd7c3be4b652d) Target: x86_64-poky-linux Thread model: posix InstalledDir: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux Found candidate GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib//x86_64-poky-linux/7.3.0 Found candidate GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/gcc/x86_64-poky-linux/7.3.0 Selected GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib//x86_64-poky-linux/7.3.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 "/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/clang-6.0" -cc1 -triple x86_64-poky-linux -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name gbe_bin_interpreter.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -mfpmath sse -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu corei7 -target-feature +sse4.2 -target-feature +sse2 -target-feature +sse3 -target-feature +ssse3 -target-feature +sse4.1 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -v -coverage-notes-file /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.gcno -resource-dir /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1 -D GEN7_SAMPLER_CLAMP_BORDER_WORKAROUND -D LLVM_60 -D gbeinterp_EXPORTS -I /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild -I /ede/smonsees/yocto/test/beignet-Release_v1.2 -I /ede/smonsees/yocto/test/beignet-Release_v1.2/include -I /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -I /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend -I /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/. -I /ede/smonsees/yocto/testSDK/sysroots/llvm/include -I /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D GBE_DEBUG_MEMORY=0 -D GBE_COMPILER_AVAILABLE=1 -D GBE_DEBUG=1 -isysroot /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/c++/v1 -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/local/include -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1/include -internal-externc-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/include -internal-externc-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include -O0 -Wall -Wno-invalid-offsetof -std=c++0x -fdeprecated-macro -fdebug-compilation-dir /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src -ferror-limit 19 -fmessage-length 129 -fvisibility hidden -funroll-loops -fno-rtti -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o -x c++ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp clang -cc1 version 6.0.1 based upon LLVM 6.0.1 default target x86_64-unknown-linux-gnu ignoring nonexistent directory "/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/local/include" ignoring nonexistent directory "/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/include" #include "..." search starts here: #include <...> search starts here: /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild /ede/smonsees/yocto/test/beignet-Release_v1.2 /ede/smonsees/yocto/test/beignet-Release_v1.2/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/. /ede/smonsees/yocto/testSDK/sysroots/llvm/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/c++/v1 /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include End of search list. In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp:23: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/constant.cpp:25: /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/constant.hpp:85:14: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference] return *(Constant *)NULL; ^~~~~~~~~~~~~~~~~ In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp:30: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./backend/program.cpp:26: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/../backend/program.hpp:29: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./backend/context.hpp:23: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/instruction.hpp:28: /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:122:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return 8; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:121:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:120:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_DOUBLE: ^~~~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:119:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return 4; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:118:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:117:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_FLOAT: ^~~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:116:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return 2; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:115:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_HALF: ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:114:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:113:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return 1; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:112:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:111:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:190:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return *data.u64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:189:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: return *data.s64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:188:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return *data.u32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:187:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: return *data.s32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:186:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return *data.u16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:185:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: return *data.s16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:184:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return *data.u8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:183:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: return *data.s8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:182:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: return *data.b; ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:206:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return *data.u64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:205:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: return *data.s64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:204:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return *data.u32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:203:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: return *data.s32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:202:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return *data.u16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:201:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: return *data.s16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:200:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return *data.u8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:199:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: return *data.s8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:198:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: return *data.b; ^~~~~~~~~ 31 warnings generated. [ 0%] Linking CXX shared library libgbeinterp.so clang version 6.0.1 (git://github.com/llvm-mirror/clang.git f0ac6bbc7e2082f14cbec7fd1241c130f938201a) (git://github.com/llvm-mirror/llvm.git 64c8bcf5355eae932f55de9d245dd7c3be4b652d) Target: x86_64-poky-linux Thread model: posix InstalledDir: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux "/ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld" --sysroot=/disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot --hash-style=gnu --no-add-needed --eh-frame-hdr -m elf_x86_64 -shared -o libgbeinterp.so crti.o crtbeginS.o -L/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib -L/ede/smonsees/yocto/testSDK/sysroots/llvm/lib -Bsymbolic --no-undefined -O1 -soname libgbeinterp.so CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o -lc++ -lm /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a -lc /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a crtendS.o crtn.o /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crti.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtbeginS.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lc++ /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lm /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lc /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtendS.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtn.o: No such file or directory clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [backend/src/libgbeinterp.so] Error 1 make[1]: *** [backend/src/CMakeFiles/gbeinterp.dir/all] Error 2 make: *** [all] Error 2 07:33 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild> -----Original Message----- From: yocto@lists.yoctoproject.org [mailto:yocto@lists.yoctoproject.org] On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org Sent: Friday, September 11, 2020 7:10 AM To: Khem Raj <raj.khem@gmail.com> Cc: yocto@lists.yoctoproject.org 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. 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@gmail.com] Sent: Thursday, September 10, 2020 1:19 PM To: Monsees, Steven C (US) <steven.monsees@baesystems.com> Cc: yocto@lists.yoctoproject.org 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@lists.yoctoproject.org> wrote:
|
|
Monsees, Steven C (US)
Khem:
Was there a bug between Clang/cmake in setting up "CMAKE_SHARED_LINKER_FLAGS" ?
If you notice,when I set the default compiler to clang, it sets the –sysroot to my build area… this should be my target sysroot in SDK.
-- SCM: CMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -Wl,--no-undefined -L/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib --sysroot=/disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot -O2 -pipe -Wl,-O1
-----Original Message-----
From: yocto@... [mailto:yocto@...] On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org Sent: Friday, September 11, 2020 7:49 AM To: Khem Raj <raj.khem@...> 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.
Khem:
I setup clang as default compiler under my SDK, and I am seeing the same issue...
It appears to be the linker.
Is this an environmental setup issue or possibly a problem with the "compiler-rt" component ?
Builds output below.
Would you be willing to look over my "environment-setup-coreI7-poky-linux" and "OEToolchainConfig.cmake" scripts ?
Thanks, Steve
07:32 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild>cmake -DCMAKE_TOOLCHAIN_FILE=/ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/environment-setup.d/OEToolchainConfig.cmake \ > -DCMAKE_VERBOSE_MAKEFILE=1 \ > -DCMAKE_BUILD_TYPE="Debug" \ > ./../ -- SCM: CMAKE_LIBRARY_PATH=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0 -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CPP_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -v -E -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_ASM_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_FIND_ROOT_PATH=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux;/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux -- SCM: CMAKE_SYSTEM_PROCESSOR=corei7-64 -- SCM: CMAKE_LIBRARY_PATH=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0;/ede/smonsees/yocto/testSDK/sysroots/llvm/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/x86_64-poky-linux/7.3.0 -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_CPP_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -v -E -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_ASM_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -- SCM: CMAKE_FIND_ROOT_PATH=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux;/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux -- SCM: CMAKE_SYSTEM_PROCESSOR=corei7-64 -- The C compiler identification is Clang 6.0.1 -- The CXX compiler identification is Clang 6.0.1 -- Check for working C compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang -- Check for working C compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang++ -- Check for working CXX compiler: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/pkg-config (found version "0.29.2") -- SCM: CMAKE_INSTALL_FULL_LIBDIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib -- SCM: BEIGNET_LIBRARY_ARCHITECTURE= -- SCM: LIB_INSTALL_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib -- SCM: BEIGNET_INSTALL_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet/ -- SCM: ICD_FILE_NAME=intel-beignet.icd -- Building mode: Debug -- SCM: CMAKE_BUILD_TYPE=Debug -- SCM: CMAKE_C_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -- LLVM llvm-config found at: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/llvm-config -- find unstable LLVM version 6.0.1 -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -fno-rtti -- SCM: CMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -Wl,--no-undefined -L/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib --sysroot=/disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot -O2 -pipe -Wl,-O1 -- Looking for XOpenDisplay in /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libXext.so -- Looking for XOpenDisplay in /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so;/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/libX11.so -- Looking for XLib - found -- Checking for module 'libdrm' -- Found libdrm, version 2.4.83 -- Looking for DRM - found at /usr 2.4.83 -- Checking for module 'libdrm_intel>=2.4.52' -- Found libdrm_intel, version 2.4.83 -- Looking for DRM Intel - found at /usr 2.4.83 -- Looking for drm_intel_bo_alloc_userptr in drm_intel -- Looking for drm_intel_bo_alloc_userptr in drm_intel - found -- Enable userptr support -- Looking for drm_intel_get_eu_total in drm_intel -- Looking for drm_intel_get_eu_total in drm_intel - found -- Enable EU total query support -- Looking for drm_intel_get_subslice_total in drm_intel -- Looking for drm_intel_get_subslice_total in drm_intel - found -- Enable subslice total query support -- Looking for drm_intel_get_pooled_eu in drm_intel -- Looking for drm_intel_get_pooled_eu in drm_intel - found -- Enable pooled eu query support -- Looking for drm_intel_get_min_eu_in_pool in drm_intel -- Looking for drm_intel_get_min_eu_in_pool in drm_intel - found -- Enable min eu in pool query support -- SCM: DRM_INTEL_INCLUDE_DIRS=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -- Checking for module 'libcmrt' -- No package 'libcmrt' found -- SCM: CMRT_INCLUDE_DIRS= -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Checking for module 'gl' -- Found gl, version 17.1.7 -- Looking for OpenGL - found at /usr -- SCM: OPENGL_INCLUDE_DIRS=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -- Checking for module 'xext' -- Found xext, version 1.3.3 -- Looking for Xext - found at /usr -- SCM: XEXT_INCLUDE_DIRS= -- Checking for module 'xfixes' -- Found xfixes, version 5.0.3 -- Looking for Xfixes - found at /usr -- SCM: XFIXES_INCLUDE_DIRS= -- Checking for module 'egl' -- Found egl, version 17.1.7 -- Looking for EGL - found at /usr -- SCM: EGL_PREFIX=/usr -- SCM: MESA_SOURCE_PREFIX= -- Looking for OCL ICD header file - not found -- Found PythonInterp: /usr/bin/python (found version "2.7.5") -- SCM: CMAKE_MODULE_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/CMake/;/ede/smonsees/yocto/test/beignet-Release_v1.2/backend/cmake -- Building mode: Debug -- SCM: CMAKE_CXX_FLAGS= --sysroot=/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -v -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -mlittle-endian -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -std=c++0x -Wno-invalid-offsetof -fno-rtti -I/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DGBE_DEBUG_MEMORY=0 -DGBE_COMPILER_AVAILABLE=1 -fvisibility=hidden -- SCM: LLVM_CFLAGS=-I/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -- SCM: GBE_DEBUG_MEMORY_FLAG=-DGBE_DEBUG_MEMORY=0 -- SCM: GBE_COMPILE_UTESTS_FLAG= -- SCM: CMAKE_CURRENT_BINARY_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend -- SCM: include_directories= -- SCM: OCL_BITCODE_BIN=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc -- SCM: OCL_HEADER_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include -- SCM: OCL_PCH_OBJECT=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.pch -- SCM: GBE_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//libgbe.so -- SCM: INTERP_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//libgbeinterp.so -- SCM: LOCAL_OCL_BITCODE_BIN= -- SCM: LOCAL_OCL_HEADER_DIR= -- SCM: LOCAL_OCL_PCH_OBJECT= -- SCM: LOCAL_GBE_OBJECT_DIR= -- SCM: LOCAL_INTERP_OBJECT_DIR= -- SCM: DRM_INTEL_LIBRARIES=drm_intel;drm -- SCM: DRM_LIBRARIES=drm -- SCM: CLANG_LIBRARIES=libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6;libclang.so.6 -- SCM: LLVM_MODULE_LIBS=-lLLVMCoverage -lLLVMDlltoolDriver -lLLVMLineEditor -lLLVMOrcJIT -lLLVMWindowsManifest -lLLVMFuzzMutate -lLLVMMCJIT -lLLVMCoroutines -lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoDWARF -lLLVMMIRParser -lLLVMAsmParser -lLLVMTableGen -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMPowerPCDisassembler -lLLVMPowerPCCodeGen -lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMPowerPCAsmPrinter -lLLVMMipsDisassembler -lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMBPFDisassembler -lLLVMBPFCodeGen -lLLVMBPFAsmParser -lLLVMBPFDesc -lLLVMBPFInfo -lLLVMBPFAsmPrinter -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMARMUtils -lLLVMAArch64Disassembler -lLLVMMCDisassembler -lLLVMAArch64CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMAArch64AsmParser -lLLVMAArch64Desc -lLLVMAArch64Info -lLLVMAArch64AsmPrinter -lLLVMAArch64Utils -lLLVMObjectYAML -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMLibDriver -lLLVMOption -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMObject -lLLVMMCParser -lLLVMMC -lLLVMBitReader -lLLVMCore -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -- SCM: LLVM_SYSTEM_LIBS=-lz -lrt -ldl -ltinfo -lpthread -lm -lxml2 -- SCM: CMAKE_THREAD_LIBS_INIT=-lpthread -- SCM: CMAKE_DL_LIBS=dl -- SCM: LLVM_LIBRARY_DIRS=/ede/smonsees/yocto/testSDK/sysroots/llvm/lib -- SCM: LLVM_INCLUDE_DIRS=/ede/smonsees/yocto/testSDK/sysroots/llvm/include -- SCM: LOCAL_OCL_BITCODE_BIN=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc -- SCM: LOCAL_OCL_HEADER_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include/ -- SCM: LOCAL_OCL_PCH_OBJECT=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.local.pch -- SCM: LOCAL_GBE_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libgbe.so -- SCM: LOCAL_INTERP_OBJECT_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libgbeinterp.so -- SCM: GBE_BIN_GENERATER=env;OCL_BITCODE_LIB_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.bc;OCL_HEADER_FILE_DIR=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//include/;OCL_PCH_PATH=/ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/libocl//ede/smonsees/yocto/test/beignet-Release_v1.2/mylocal/lib/beignet//beignet.local.pch -- Configuring done -- Generating done -- Build files have been written to: /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild 07:33 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 clang version 6.0.1 (git://github.com/llvm-mirror/clang.git f0ac6bbc7e2082f14cbec7fd1241c130f938201a) (git://github.com/llvm-mirror/llvm.git 64c8bcf5355eae932f55de9d245dd7c3be4b652d) Target: x86_64-poky-linux Thread model: posix InstalledDir: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux Found candidate GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib//x86_64-poky-linux/7.3.0 Found candidate GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib/gcc/x86_64-poky-linux/7.3.0 Selected GCC installation: /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/lib//x86_64-poky-linux/7.3.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 "/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/clang-6.0" -cc1 -triple x86_64-poky-linux -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name gbe_bin_interpreter.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -mfpmath sse -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu corei7 -target-feature +sse4.2 -target-feature +sse2 -target-feature +sse3 -target-feature +ssse3 -target-feature +sse4.1 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -v -coverage-notes-file /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src/CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.gcno -resource-dir /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1 -D GEN7_SAMPLER_CLAMP_BORDER_WORKAROUND -D LLVM_60 -D gbeinterp_EXPORTS -I /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild -I /ede/smonsees/yocto/test/beignet-Release_v1.2 -I /ede/smonsees/yocto/test/beignet-Release_v1.2/include -I /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm -I /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend -I /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/. -I /ede/smonsees/yocto/testSDK/sysroots/llvm/include -I /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D GBE_DEBUG_MEMORY=0 -D GBE_COMPILER_AVAILABLE=1 -D GBE_DEBUG=1 -isysroot /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/c++/v1 -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/local/include -internal-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1/include -internal-externc-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/include -internal-externc-isystem /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include -O0 -Wall -Wno-invalid-offsetof -std=c++0x -fdeprecated-macro -fdebug-compilation-dir /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend/src -ferror-limit 19 -fmessage-length 129 -fvisibility hidden -funroll-loops -fno-rtti -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o -x c++ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp clang -cc1 version 6.0.1 based upon LLVM 6.0.1 default target x86_64-unknown-linux-gnu ignoring nonexistent directory "/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/local/include" ignoring nonexistent directory "/disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/include" #include "..." search starts here: #include <...> search starts here: /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild /ede/smonsees/yocto/test/beignet-Release_v1.2 /ede/smonsees/yocto/test/beignet-Release_v1.2/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/libdrm /ede/smonsees/yocto/test/beignet-Release_v1.2/mybuild/backend /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/. /ede/smonsees/yocto/testSDK/sysroots/llvm/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include/c++/v1 /disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib/clang/6.0.1/include /disk0/scratch/smonsees/yocto/testSDK/sysroots/corei7-64-poky-linux/usr/include End of search list. In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp:23: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/constant.cpp:25: /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/constant.hpp:85:14: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference] return *(Constant *)NULL; ^~~~~~~~~~~~~~~~~ In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/gbe_bin_interpreter.cpp:30: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./backend/program.cpp:26: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/../backend/program.hpp:29: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./backend/context.hpp:23: In file included from /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/instruction.hpp:28: /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:122:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return 8; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:121:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:120:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_DOUBLE: ^~~~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:119:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return 4; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:118:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:117:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_FLOAT: ^~~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:116:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return 2; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:115:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_HALF: ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:114:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:113:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return 1; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:112:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:111:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:190:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return *data.u64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:189:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: return *data.s64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:188:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return *data.u32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:187:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: return *data.s32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:186:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return *data.u16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:185:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: return *data.s16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:184:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return *data.u8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:183:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: return *data.s8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:182:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: return *data.b; ^~~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:206:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U64: return *data.u64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:205:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S64: return *data.s64; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:204:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U32: return *data.u32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:203:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S32: return *data.s32; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:202:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U16: return *data.u16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:201:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S16: return *data.s16; ^~~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:200:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_U8: return *data.u8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:199:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_S8: return *data.s8; ^~~~~~~ /ede/smonsees/yocto/test/beignet-Release_v1.2/backend/src/./ir/immediate.hpp:198:14: warning: comparison of two values with different enumeration types in switch statement ('gbe::ir::ImmType' and 'gbe::ir::Type') [-Wenum-compare-switch] case TYPE_BOOL: return *data.b; ^~~~~~~~~ 31 warnings generated. [ 0%] Linking CXX shared library libgbeinterp.so clang version 6.0.1 (git://github.com/llvm-mirror/clang.git f0ac6bbc7e2082f14cbec7fd1241c130f938201a) (git://github.com/llvm-mirror/llvm.git 64c8bcf5355eae932f55de9d245dd7c3be4b652d) Target: x86_64-poky-linux Thread model: posix InstalledDir: /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux "/ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld" --sysroot=/disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot --hash-style=gnu --no-add-needed --eh-frame-hdr -m elf_x86_64 -shared -o libgbeinterp.so crti.o crtbeginS.o -L/disk0/scratch/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/lib -L/ede/smonsees/yocto/testSDK/sysroots/llvm/lib -Bsymbolic --no-undefined -O1 -soname libgbeinterp.so CMakeFiles/gbeinterp.dir/gbe_bin_interpreter.cpp.o -lc++ -lm /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a -lc /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a crtendS.o crtn.o /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crti.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtbeginS.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lc++ /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lm /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find -lc /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find /disk0/scratch/smonsees/yocto/workspace_2/meta-bae/meta-limws/builds/sbcb-default/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-clang/6.0.1+gitAUTOINC+64c8bcf535_f0ac6bbc7e-r0/recipe-sysroot/usr/lib/clang/6.0.1/lib/linux/libclang_rt.builtins-x86_64.a: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtendS.o: No such file or directory /ede/smonsees/yocto/testSDK/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: cannot find crtn.o: No such file or directory clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [backend/src/libgbeinterp.so] Error 1 make[1]: *** [backend/src/CMakeFiles/gbeinterp.dir/all] Error 2 make: *** [all] Error 2 07:33 smonsees@yix490016 ~/yocto/test/beignet-Release_v1.2/mybuild>
-----Original Message----- From: yocto@... [mailto:yocto@...] On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org Sent: Friday, September 11, 2020 7:10 AM To: Khem Raj <raj.khem@...> 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.
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 > > > > > >
|
|