Re: [meta-security][PATCH] trousers: Fix the problem that do_package fails when multilib is enabled.
merged
toggle quoted messageShow quoted text
thanks
On 9/7/20 10:28 PM, zhengruoqin wrote:
The following error will occur when multilib is enabled:
|
|
Re: [meta-security][PATCH] sssd: Make manpages buildable
merged
toggle quoted messageShow quoted text
thanks
On 8/25/20 5:01 AM, Jonatan Pålsson wrote:
Some XML related fixes are needed to make the sssd manpages buildable
|
|
Re: [meta-security][PATCH 0/6] Some small dm-verity improvements
On 9/7/20 10:17 AM, Niko Mauno wrote:
This set of patches addresses some small issues in dm-verity rootfsI have used the above and added it to the gitlab-ci. And the following command line was used to test the changes with qemu:Thanks for the example. I should help in creating a selfttest. series merged. -armin
|
|
Re: [meta-security][PATCH 0/6] Some small dm-verity improvements
On 9/7/20 10:35 AM, Bartosz Golaszewski wrote:
On Mon, Sep 7, 2020 at 7:17 PM Niko Mauno <niko.mauno@...> wrote:I suspect It didn't register. In the end it did have a silver lining asThis set of patches addresses some small issues in dm-verity rootfsHi Niko, it was work that could be leveraged. This is on the core values of open sources. - armin
|
|
Install headers to /usr/include/
majid.nasiry65@...
Hi
I have a recipe for a library. It install .so files correctly but headers not installed. It can install files any where except /usr/inclue/ directory. Where is my mistake? Thanks.
|
|
[meta-security][PATCH] packagegroup-core-security: dont include suricata on riscv or ppc
Signed-off-by: Armin Kuster <akuster808@...>
--- recipes-core/packagegroup/packagegroup-core-security.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb index c6342fd..6aa0d6c 100644 --- a/recipes-core/packagegroup/packagegroup-core-security.bb +++ b/recipes-core/packagegroup/packagegroup-core-security.bb @@ -55,7 +55,7 @@ SUMMARY_packagegroup-security-ids = "Security Intrusion Detection systems" RDEPENDS_packagegroup-security-ids = " \ tripwire \ samhain-standalone \ - suricata \ + ${@bb.utils.contains_any("TUNE_FEATURES", "ppc7400 riscv32 riscv64", "", " suricata",d)} \ " SUMMARY_packagegroup-security-mac = "Security Mandatory Access Control systems" -- 2.17.1
|
|
Re: vwdial
Zoltan Kerenyi Nagy
Ok, I will do that. Could you please tell me where am I supposed to remove from the exclusion list? :-)
On 2020. Sep 11., Fri at 18:57, Khem Raj <raj.khem@...> wrote: On Fri, Sep 11, 2020 at 1:54 AM Zoltan Kerenyi Nagy
|
|
Re: vwdial
On Fri, Sep 11, 2020 at 1:54 AM Zoltan Kerenyi Nagy
<kerenyi.nagy.zoltan@...> wrote: its telling the problem clearly above. So remove it from the exclusion list and then see what needs to be fixed NOTE: Runtime target 'wvdial' is unbuildable, removing...
|
|
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 > > > > > >
|
|
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@... [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:
|
|
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@...] 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:
|
|
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@...] Sent: Friday, September 11, 2020 3:32 AM 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. 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@... 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@...> wrote:
|
|
Re: vwdial
Maciej Pijanowski
On 11.09.2020 10:43, Zoltan Kerenyi
Nagy wrote:
You should keep list on the copy while responding. It looks like
you have some old Yocto revision
-- Maciej Pijanowski Embedded Systems Engineer GPG: 9963C36AAC3B2B46 https://3mdeb.com | @3mdeb_com
|
|
vwdial
Zoltan Kerenyi Nagy
I changed the vwdial recipy file for what I've found on openembedded. I think now the error is only with wvstreams NOTE: Resolving any missing task queue dependencies ERROR: Nothing PROVIDES 'wvstreams' (but /home/kerenyiz/oe-core/build/../stuff/meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb DEPENDS on or otherwise requires it) ERROR: wvstreams was skipped: Recipe is blacklisted: BROKEN: fails to build with gcc-6 - the recipe will be removed on 2017-09-01 unless the issue is fixed NOTE: Runtime target 'wvdial' is unbuildable, removing... Missing or unbuildable dependency chain was: ['wvdial', 'wvstreams'] ERROR: Required build target 'core-image-barix-sdk' has no buildable providers. Missing or unbuildable dependency chain was: ['core-image-barix-sdk', 'wvdial', 'wvstreams']
|
|
Re: #yocto - mongodb files missing
#yocto
srijan.nandi@...
Thank you, Vincent.
I was finally able to make a .bbappend file and here is what I have made. FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://mongod \
file://mongod.service \
file://mongod.conf \
"
inherit systemd useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "${PN}"
USERADD_PARAM_${PN} = " \
--system --no-create-home \
--shell /bin/false \
-g ${PN} \
${PN}"
SYSTEMD_SERVICE_${PN} = "mongod.service"
SYSTEMD_AUTO_ENABLE = "enable"
do_install_append() {
install -d ${D}${sysconfdir}
install -d ${D}${localstatedir} ${D}${localstatedir}/log ${D}${localstatedir}/log/mongodb
chown -R mongodb:mongodb ${D}${localstatedir}/log/mongodb
install -d ${D}${sysconfdir}/sysconfig
install -c -m 0644 ${WORKDIR}/mongod.conf ${D}${sysconfdir}
chown mongodb:mongodb ${D}${sysconfdir}/mongod.conf
install -c -m 0644 ${WORKDIR}/mongod ${D}${sysconfdir}/sysconfig
chown mongodb:mongodb ${D}${sysconfdir}/sysconfig/mongod
install -d ${D}${localstatedir} ${D}${localstatedir}/lib ${D}${localstatedir}/lib/mongodb
chown -R mongodb:mongodb ${D}${localstatedir}/lib/mongodb
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${systemd_system_unitdir}
install -c -m 0644 ${WORKDIR}/mongod.service ${D}${systemd_system_unitdir}
fi
} Thanks and Regards, -=Srijan Nandi
|
|
Re: #yocto - mongodb files missing
#yocto
Vincent Prince
Hi,
toggle quoted messageShow quoted text
Here's an example of mongodb_%.bbappend file: ----------------------------------------------------------------------------- FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://mongod.conf file://mongod.service" inherit systemd do_install_append() { # config install -d ${D}${sysconfdir} install -m 0644 ${WORKDIR}/mongod.conf ${D}${sysconfdir}/ # systemd install -d ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/mongod.service ${D}${systemd_unitdir}/system/ } SYSTEMD_SERVICE_${PN} = "mongod.service" ----------------------------------------------------------------------------- And create a folder meta-x/recipes-dbs/mongodb/files with mongod.service and mongod.conf in it. Best Regards, Vincent
Le mar. 21 juil. 2020 à 12:11, <srijan.nandi@...> a écrit :
|
|
[meta-security][PATCH] ibmtpm2tss: add recipe
Jens Rehsack <rehsack@...>
From: Jens Rehsack <sno@...>
Add recipe for companion of IBM Software TPM 2.0 - IBM's TPM 2.0 TSS. It's a user space TSS for TPM 2.0. Signed-off-by: Jens Rehsack <sno@...> --- ...efile.am-expand-wildcards-in-prereqs.patch | 125 ++++++++++++++++++ .../ibmtpm2tss/ibmtpm2tss_1.5.0.bb | 27 ++++ 2 files changed, 152 insertions(+) create mode 100644 meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch create mode 100644 meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb diff --git a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch new file mode 100644 index 0000000..8b13fb6 --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss/0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch @@ -0,0 +1,125 @@ +From 26091b7830d84a12308442b238652ee9475d407b Mon Sep 17 00:00:00 2001 +From: Jens Rehsack <sno@...> +Date: Fri, 11 Sep 2020 07:46:41 +0200 +Subject: [PATCH] utils{,12}/Makefile.am: expand wildcards in prereqs + +Expand wildcards of required sources to avoid errors like: +make[2]: *** No rule to make target 'man/man1/*.1', needed by 'all-am'. Stop. +make[2]: *** Waiting for unfinished jobs.... + +Upstream-Status: Submitted + +Signed-off-by: Jens Rehsack <sno@...> +--- + utils/Makefile.am | 75 +++++++++++++++++++++++++++++++++++++++++++-- + utils12/Makefile.am | 8 ++++- + 2 files changed, 79 insertions(+), 4 deletions(-) + +diff --git a/utils/Makefile.am b/utils/Makefile.am +index 1e51fe3..170a26e 100644 +--- a/utils/Makefile.am ++++ b/utils/Makefile.am +@@ -81,9 +81,78 @@ libibmtssutils_la_LIBADD = libibmtss.la $(LIBCRYPTO_LIBS) + + noinst_HEADERS = CommandAttributes.h imalib.h tssdev.h ntc2lib.h tssntc.h Commands_fp.h objecttemplates.h tssproperties.h cryptoutils.h Platform.h tssauth.h tsssocket.h ekutils.h eventlib.h tssccattributes.h + # install every header in ibmtss +-nobase_include_HEADERS = ibmtss/*.h +- +-notrans_man_MANS = man/man1/*.1 ++nobase_include_HEADERS = ibmtss/ActivateCredential_fp.h ibmtss/ActivateIdentity_fp.h ibmtss/BaseTypes.h \ ++ ibmtss/CertifyCreation_fp.h ibmtss/Certify_fp.h ibmtss/CertifyX509_fp.h ibmtss/ChangeEPS_fp.h \ ++ ibmtss/ChangePPS_fp.h ibmtss/ClearControl_fp.h ibmtss/Clear_fp.h ibmtss/ClockRateAdjust_fp.h \ ++ ibmtss/ClockSet_fp.h ibmtss/Commit_fp.h ibmtss/ContextLoad_fp.h ibmtss/ContextSave_fp.h \ ++ ibmtss/CreateEndorsementKeyPair_fp.h ibmtss/Create_fp.h ibmtss/CreateLoaded_fp.h \ ++ ibmtss/CreatePrimary_fp.h ibmtss/CreateWrapKey_fp.h ibmtss/DictionaryAttackLockReset_fp.h \ ++ ibmtss/DictionaryAttackParameters_fp.h ibmtss/Duplicate_fp.h ibmtss/ECC_Parameters_fp.h \ ++ ibmtss/ECDH_KeyGen_fp.h ibmtss/ECDH_ZGen_fp.h ibmtss/EC_Ephemeral_fp.h ibmtss/EncryptDecrypt2_fp.h \ ++ ibmtss/EncryptDecrypt_fp.h ibmtss/EventSequenceComplete_fp.h ibmtss/EvictControl_fp.h ibmtss/Extend_fp.h \ ++ ibmtss/FlushContext_fp.h ibmtss/FlushSpecific_fp.h ibmtss/GetCapability12_fp.h ibmtss/GetCapability_fp.h \ ++ ibmtss/GetCommandAuditDigest_fp.h ibmtss/GetRandom_fp.h ibmtss/GetSessionAuditDigest_fp.h \ ++ ibmtss/GetTestResult_fp.h ibmtss/GetTime_fp.h ibmtss/Hash_fp.h ibmtss/HashSequenceStart_fp.h \ ++ ibmtss/HierarchyChangeAuth_fp.h ibmtss/HierarchyControl_fp.h ibmtss/HMAC_fp.h ibmtss/HMAC_Start_fp.h \ ++ ibmtss/Implementation.h ibmtss/Import_fp.h ibmtss/IncrementalSelfTest_fp.h ibmtss/LoadExternal_fp.h \ ++ ibmtss/Load_fp.h ibmtss/LoadKey2_fp.h ibmtss/MakeCredential_fp.h ibmtss/MakeIdentity_fp.h ibmtss/NTC_fp.h \ ++ ibmtss/NV_Certify_fp.h ibmtss/NV_ChangeAuth_fp.h ibmtss/NV_DefineSpace12_fp.h ibmtss/NV_DefineSpace_fp.h \ ++ ibmtss/NV_Extend_fp.h ibmtss/NV_GlobalWriteLock_fp.h ibmtss/NV_Increment_fp.h ibmtss/NV_Read_fp.h \ ++ ibmtss/NV_ReadLock_fp.h ibmtss/NV_ReadPublic_fp.h ibmtss/NV_ReadValueAuth_fp.h ibmtss/NV_ReadValue_fp.h \ ++ ibmtss/NV_SetBits_fp.h ibmtss/NV_UndefineSpace_fp.h ibmtss/NV_UndefineSpaceSpecial_fp.h ibmtss/NV_Write_fp.h \ ++ ibmtss/NV_WriteLock_fp.h ibmtss/NV_WriteValueAuth_fp.h ibmtss/NV_WriteValue_fp.h ibmtss/ObjectChangeAuth_fp.h \ ++ ibmtss/OIAP_fp.h ibmtss/OSAP_fp.h ibmtss/OwnerReadInternalPub_fp.h ibmtss/OwnerSetDisable_fp.h \ ++ ibmtss/Parameters12.h ibmtss/Parameters.h ibmtss/PCR_Allocate_fp.h ibmtss/PCR_Event_fp.h ibmtss/PCR_Extend_fp.h \ ++ ibmtss/PcrRead12_fp.h ibmtss/PCR_Read_fp.h ibmtss/PCR_Reset12_fp.h ibmtss/PCR_Reset_fp.h ibmtss/PCR_SetAuthPolicy_fp.h \ ++ ibmtss/PCR_SetAuthValue_fp.h ibmtss/PolicyAuthorize_fp.h ibmtss/PolicyAuthorizeNV_fp.h ibmtss/PolicyAuthValue_fp.h \ ++ ibmtss/PolicyCommandCode_fp.h ibmtss/PolicyCounterTimer_fp.h ibmtss/PolicyCpHash_fp.h ibmtss/PolicyDuplicationSelect_fp.h \ ++ ibmtss/PolicyGetDigest_fp.h ibmtss/PolicyLocality_fp.h ibmtss/PolicyNameHash_fp.h ibmtss/PolicyNV_fp.h \ ++ ibmtss/PolicyNvWritten_fp.h ibmtss/PolicyOR_fp.h ibmtss/PolicyPassword_fp.h ibmtss/PolicyPCR_fp.h \ ++ ibmtss/PolicyPhysicalPresence_fp.h ibmtss/PolicyRestart_fp.h ibmtss/PolicySecret_fp.h ibmtss/PolicySigned_fp.h \ ++ ibmtss/PolicyTemplate_fp.h ibmtss/PolicyTicket_fp.h ibmtss/PP_Commands_fp.h ibmtss/Quote2_fp.h ibmtss/Quote_fp.h \ ++ ibmtss/ReadClock_fp.h ibmtss/ReadPubek_fp.h ibmtss/ReadPublic_fp.h ibmtss/Rewrap_fp.h ibmtss/RSA_Decrypt_fp.h \ ++ ibmtss/RSA_Encrypt_fp.h ibmtss/SelfTest_fp.h ibmtss/SequenceComplete_fp.h ibmtss/SequenceUpdate_fp.h \ ++ ibmtss/SetAlgorithmSet_fp.h ibmtss/SetCommandCodeAuditStatus_fp.h ibmtss/SetPrimaryPolicy_fp.h ibmtss/Shutdown_fp.h \ ++ ibmtss/Sign12_fp.h ibmtss/Sign_fp.h ibmtss/StartAuthSession_fp.h ibmtss/Startup12_fp.h ibmtss/Startup_fp.h \ ++ ibmtss/StirRandom_fp.h ibmtss/TakeOwnership_fp.h ibmtss/TestParms_fp.h ibmtss/TPMB.h ibmtss/TpmBuildSwitches.h \ ++ ibmtss/tpmconstants12.h ibmtss/tpmstructures12.h ibmtss/tpmtypes12.h ibmtss/TPM_Types.h ibmtss/tsscrypto.h \ ++ ibmtss/tsscryptoh.h ibmtss/tsserror12.h ibmtss/tsserror.h ibmtss/tssfile.h ibmtss/tss.h ibmtss/tssmarshal12.h \ ++ ibmtss/tssmarshal.h ibmtss/tssprintcmd.h ibmtss/tssprint.h ibmtss/tssresponsecode.h ibmtss/tsstransmit.h \ ++ ibmtss/tssutils.h ibmtss/Unmarshal12_fp.h ibmtss/Unmarshal_fp.h ibmtss/Unseal_fp.h ibmtss/VerifySignature_fp.h \ ++ ibmtss/ZGen_2Phase_fp.h ++ ++notrans_man_MANS = man/man1/tssactivatecredential.1 man/man1/tsscertify.1 man/man1/tsscertifycreation.1 \ ++ man/man1/tsscertifyx509.1 man/man1/tsschangeeps.1 man/man1/tsschangepps.1 man/man1/tssclear.1 \ ++ man/man1/tssclearcontrol.1 man/man1/tssclockrateadjust.1 man/man1/tssclockset.1 man/man1/tsscommit.1 \ ++ man/man1/tsscontextload.1 man/man1/tsscontextsave.1 man/man1/tsscreate.1 man/man1/tsscreateek.1 \ ++ man/man1/tsscreateekcert.1 man/man1/tsscreateloaded.1 man/man1/tsscreateprimary.1 \ ++ man/man1/tssdictionaryattacklockreset.1 man/man1/tssdictionaryattackparameters.1 man/man1/tssduplicate.1 \ ++ man/man1/tsseccparameters.1 man/man1/tssecephemeral.1 man/man1/tssencryptdecrypt.1 man/man1/tsseventextend.1 \ ++ man/man1/tsseventsequencecomplete.1 man/man1/tssevictcontrol.1 man/man1/tssflushcontext.1 man/man1/tssgetcapability.1 \ ++ man/man1/tssgetcommandauditdigest.1 man/man1/tssgetcryptolibrary.1 man/man1/tssgetrandom.1 \ ++ man/man1/tssgetsessionauditdigest.1 man/man1/tssgettestresult.1 man/man1/tssgettime.1 man/man1/tsshash.1 \ ++ man/man1/tsshashsequencestart.1 man/man1/tsshierarchychangeauth.1 man/man1/tsshierarchycontrol.1 \ ++ man/man1/tsshmac.1 man/man1/tsshmacstart.1 man/man1/tssimaextend.1 man/man1/tssimport.1 man/man1/tssimportpem.1 \ ++ man/man1/tssload.1 man/man1/tssloadexternal.1 man/man1/tssmakecredential.1 man/man1/tssntc2getconfig.1 \ ++ man/man1/tssntc2lockconfig.1 man/man1/tssntc2preconfig.1 man/man1/tssnvcertify.1 man/man1/tssnvchangeauth.1 \ ++ man/man1/tssnvdefinespace.1 man/man1/tssnvextend.1 man/man1/tssnvglobalwritelock.1 man/man1/tssnvincrement.1 \ ++ man/man1/tssnvread.1 man/man1/tssnvreadlock.1 man/man1/tssnvreadpublic.1 man/man1/tssnvsetbits.1 \ ++ man/man1/tssnvundefinespace.1 man/man1/tssnvundefinespacespecial.1 man/man1/tssnvwrite.1 man/man1/tssnvwritelock.1 \ ++ man/man1/tssobjectchangeauth.1 man/man1/tsspcrallocate.1 man/man1/tsspcrevent.1 man/man1/tsspcrextend.1 \ ++ man/man1/tsspcrread.1 man/man1/tsspcrreset.1 man/man1/tsspolicyauthorize.1 man/man1/tsspolicyauthorizenv.1 \ ++ man/man1/tsspolicyauthvalue.1 man/man1/tsspolicycommandcode.1 man/man1/tsspolicycountertimer.1 \ ++ man/man1/tsspolicycphash.1 man/man1/tsspolicyduplicationselect.1 man/man1/tsspolicygetdigest.1 \ ++ man/man1/tsspolicymaker.1 man/man1/tsspolicymakerpcr.1 man/man1/tsspolicynamehash.1 man/man1/tsspolicynv.1 \ ++ man/man1/tsspolicynvwritten.1 man/man1/tsspolicyor.1 man/man1/tsspolicypassword.1 man/man1/tsspolicypcr.1 \ ++ man/man1/tsspolicyrestart.1 man/man1/tsspolicysecret.1 man/man1/tsspolicysigned.1 man/man1/tsspolicytemplate.1 \ ++ man/man1/tsspolicyticket.1 man/man1/tsspowerup.1 man/man1/tssprintattr.1 man/man1/tsspublicname.1 \ ++ man/man1/tssquote.1 man/man1/tssreadclock.1 man/man1/tssreadpublic.1 man/man1/tssreturncode.1 \ ++ man/man1/tssrewrap.1 man/man1/tssrsadecrypt.1 man/man1/tssrsaencrypt.1 man/man1/tsssequencecomplete.1 \ ++ man/man1/tsssequenceupdate.1 man/man1/tsssetcommandcodeauditstatus.1 man/man1/tsssetprimarypolicy.1 \ ++ man/man1/tssshutdown.1 man/man1/tsssign.1 man/man1/tsssignapp.1 man/man1/tssstartauthsession.1 \ ++ man/man1/tssstartup.1 man/man1/tssstirrandom.1 man/man1/tsstimepacket.1 man/man1/tsstpm2pem.1 \ ++ man/man1/tsstpmcmd.1 man/man1/tsstpmpublic2eccpoint.1 man/man1/tssunseal.1 man/man1/tssverifysignature.1 \ ++ man/man1/tsswriteapp.1 man/man1/tsszgen2phase.1 + + if CONFIG_TPM20 + noinst_HEADERS += tss20.h tssauth20.h ibmtss/tssprintcmd.h +diff --git a/utils12/Makefile.am b/utils12/Makefile.am +index a01f47c..e9fe61e 100644 +--- a/utils12/Makefile.am ++++ b/utils12/Makefile.am +@@ -9,7 +9,13 @@ libibmtssutils12_la_CFLAGS = -I$(top_srcdir)/utils + # result: [current-age].age.revision + libibmtssutils12_la_LDFLAGS = -version-info @TSSLIB_VERSION_INFO@ ../utils/libibmtss.la + +-notrans_man_MANS = man/man1/*.1 ++notrans_man_MANS = man/man1/tss1activateidentity.1 man/man1/tss1createekcert.1 man/man1/tss1createendorsementkeypair.1 \ ++ man/man1/tss1createwrapkey.1 man/man1/tss1eventextend.1 man/man1/tss1extend.1 man/man1/tss1flushspecific.1 \ ++ man/man1/tss1getcapability.1 man/man1/tss1imaextend.1 man/man1/tss1loadkey2.1 man/man1/tss1makeekblob.1 \ ++ man/man1/tss1makeidentity.1 man/man1/tss1nvdefinespace.1 man/man1/tss1nvreadvalue.1 man/man1/tss1nvreadvalueauth.1 \ ++ man/man1/tss1nvwritevalue.1 man/man1/tss1nvwritevalueauth.1 man/man1/tss1oiap.1 man/man1/tss1osap.1 \ ++ man/man1/tss1ownerreadinternalpub.1 man/man1/tss1ownersetdisable.1 man/man1/tss1pcrread.1 man/man1/tss1quote2.1 \ ++ man/man1/tss1sign.1 man/man1/tss1startup.1 man/man1/tss1takeownership.1 man/man1/tss1tpminit.1 + noinst_HEADERS = ekutils12.h + + bin_PROGRAMS = activateidentity createendorsementkeypair createwrapkey extend flushspecific getcapability loadkey2 makeidentity nvdefinespace nvreadvalueauth nvreadvalue nvwritevalueauth nvwritevalue oiap osap ownerreadinternalpub ownersetdisable pcrread quote2 sign startup takeownership tpminit createekcert makeekblob eventextend imaextend +-- +2.17.1 + diff --git a/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb new file mode 100644 index 0000000..18ad7eb --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmtpm2tss/ibmtpm2tss_1.5.0.bb @@ -0,0 +1,27 @@ +SUMMARY = "IBM's Software TPM 2.0 TSS" +DESCRIPTION = "This is a user space TSS for TPM 2.0. It implements the \ +functionality equivalent to (but not API compatible with) the TCG TSS \ +working group's ESAPI, SAPI, and TCTI API's (and perhaps more) but with a \ +hopefully simpler interface. \ +It comes with over 110 'TPM tools' samples that can be used for scripted \ +apps, rapid prototyping, education, and debugging. \ +It also comes with a web based TPM interface, suitable for a demo to an \ +audience that is unfamiliar with TCG technology. It is also useful for \ +basic TPM management." +HOMEPAGE = "http://ibmswtpm.sourceforge.net/ibmtss2.html" +LICENSE = "BSD" +SECTION = "securty/tpm" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1e023f61454ac828b4aa1bc4293f7d5f" + +DEPENDS = "openssl ibmswtpm2" + +inherit autotools pkgconfig + +SRCREV = "aa6c6ec83793ba21782033c03439977c26d3cc87" +SRC_URI = " git://git.code.sf.net/p/ibmtpm20tss/tss;nobranch=1 \ + file://0001-utils-12-Makefile.am-expand-wildcards-in-prereqs.patch \ + " + +EXTRA_OECONF = "--disable-tpm-1.2" + +S = "${WORKDIR}/git" -- 2.17.1
|
|
[meta-security][PATCH v2] ibmswtpm2: update to 1637
Jens Rehsack <rehsack@...>
From: Jens Rehsack <sno@...>
Update ibmswtpm2 from 1628 to 1637. Build 1637 Includes: * Increase NV memory size to match PC Client RSA 3072 requirements * Add and fix ACT support * Update Visual Studio files to 2019. Signed-off-by: Jens Rehsack <sno@...> --- .../ibmswtpm2/files/fix-wrong-cast.patch | 27 ++++++++++ .../ibmswtpm2/files/remove_optimization.patch | 26 ---------- .../ibmswtpm2/files/tune-makefile.patch | 50 +++++++++++++++++++ .../recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb | 26 ---------- .../recipes-tpm2/ibmswtpm2/ibmswtpm2_1637.bb | 39 +++++++++++++++ 5 files changed, 116 insertions(+), 52 deletions(-) create mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/files/fix-wrong-cast.patch delete mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch create mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/files/tune-makefile.patch delete mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb create mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1637.bb diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/files/fix-wrong-cast.patch b/meta-tpm/recipes-tpm2/ibmswtpm2/files/fix-wrong-cast.patch new file mode 100644 index 0000000..f2938e0 --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmswtpm2/files/fix-wrong-cast.patch @@ -0,0 +1,27 @@ +Fix strict aliasing issue of gcc10 + +fixes: + +TpmFail.c: In function 'TpmLogFailure': +TpmFail.c:217:23: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] + 217 | s_failFunction = *(UINT32 *)&function; /* kgold */ + | ^~~~~~~~~~~~~~~~~~~ +cc1: all warnings being treated as errors + +Upstream-Status: Submitted + +Signed-off-by: Jens Rehsack <sno@...> + +Index: src/TpmFail.c +=================================================================== +--- src.orig/TpmFail.c 2020-09-10 15:43:57.085063875 +0200 ++++ src/TpmFail.c 2020-09-10 15:48:35.563302634 +0200 +@@ -214,7 +214,7 @@ + // On a 64-bit machine, this may truncate the address of the string + // of the function name where the error occurred. + #if FAIL_TRACE +- s_failFunction = *(UINT32 *)&function; /* kgold */ ++ memcpy(&s_failFunction, function, sizeof(uint32_t)); /* kgold */ + s_failLine = line; + #else + s_failFunction = 0; diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch b/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch deleted file mode 100644 index 2919e2e..0000000 --- a/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch +++ /dev/null @@ -1,26 +0,0 @@ -Allow recipe to overide optimization. - -fixes: - -397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) -| | ^~~~~~~ -| cc1: all warnings being treated as errors - - -Upstream-Status: OE specific - -Signed-off-by: Armin Kuster <akuster808@...> - -Index: src/makefile -=================================================================== ---- src.orig/makefile -+++ src/makefile -@@ -43,7 +43,7 @@ CC = /usr/bin/gcc - CCFLAGS = -Wall \ - -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ - -Werror -Wsign-compare \ -- -c -ggdb -O0 \ -+ -c -ggdb -O \ - -DTPM_POSIX \ - -D_POSIX_ \ - -DTPM_NUVOTON diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/files/tune-makefile.patch b/meta-tpm/recipes-tpm2/ibmswtpm2/files/tune-makefile.patch new file mode 100644 index 0000000..eebddb9 --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmswtpm2/files/tune-makefile.patch @@ -0,0 +1,50 @@ +1) Allow recipe to overide optimization. + +fixes: + +397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) +| | ^~~~~~~ +| cc1: all warnings being treated as errors + +2) Allow recipe to override OE related compile-/link-flags + +fixes: + +ERROR: QA Issue: File /usr/bin/tpm_server in package ibmswtpm2 doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] + +Upstream-Status: OE specific + +Signed-off-by: Jens Rehsack <sno@...> + +Index: src/makefile +=================================================================== +--- src.orig/makefile ++++ src/makefile +@@ -38,12 +38,10 @@ + ################################################################################# + + +-CC = /usr/bin/gcc +- + CCFLAGS = -Wall \ + -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ + -Werror -Wsign-compare \ +- -c -ggdb -O0 \ ++ -c -ggdb -O \ + -DTPM_POSIX \ + -D_POSIX_ \ + -DTPM_NUVOTON +@@ -79,11 +77,11 @@ + .PRECIOUS: %.o + + tpm_server: $(OBJFILES) +- $(CC) $(OBJFILES) $(LNFLAGS) -o tpm_server ++ $(CCLD) $(OBJFILES) $(LDFLAGS) $(LNFLAGS) -o tpm_server + + clean: + rm -f *.o tpm_server *~ + + %.o: %.c +- $(CC) $(CCFLAGS) $< -o $@ ++ $(CC) $(CCFLAGS) $(CFLAGS) $< -o $@ + diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb deleted file mode 100644 index 3373a30..0000000 --- a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "IBM's Software TPM 2.0" -LICENSE = "BSD" -SECTION = "securty/tpm" -LIC_FILES_CHKSUM = "file://../LICENSE;md5=1e023f61454ac828b4aa1bc4293f7d5f" - -DEPENDS = "openssl" - -SRC_URI = "https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm${PV}.tar.gz \ - file://remove_optimization.patch \ - " -SRC_URI[md5sum] = "bfd3eca2411915f24de628b9ec36f259" -SRC_URI[sha256sum] = "a8e874e7a1ae13a1290d7679d846281f72d0eb6a5e4cfbafca5297dbf4e29ea3" -SRC_URI[sha1sum] = "7c8241a4e97a801eace9f0eea8cdda7c58114f7f" -SRC_URI[sha384sum] = "eec25cc8ba0e3cb27d41ba4fa4c71d8158699953ccb61bb6d440236dcbd8f52b6954eaae9d640a713186e0b99311fd91" -SRC_URI[sha512sum] = "ab47caa4406ba57c0afc6fadae304fc9ef5e3e125be0f2fb1955a419cf93cd5e9176e103f0b566825abc16cca00b795f98d2b407f0a2bf7b141ef4b025d907d0" - -S = "${WORKDIR}/src" - -do_compile () { - make CC='${CC}' -} - -do_install () { - install -d ${D}/${bindir} - install -m 0755 tpm_server ${D}/${bindir} -} diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1637.bb b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1637.bb new file mode 100644 index 0000000..32afd37 --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1637.bb @@ -0,0 +1,39 @@ +SUMMARY = "IBM's Software TPM 2.0" +DESCRIPTION = "The software TPM 2.0 is targeted toward application development, \ +education, and virtualization. \ +\ +The intent is that an application can be developed using the software TPM. \ +The application should then run using a hardware TPM without changes. \ +Advantages of this approach: \ +* In contrast to a hardware TPM, it runs on many platforms and it's generally faster. \ +* Application software errors are easily reversed by simply removing the TPM state and starting over. \ +* Difficult crypto errors are quickly debugged by looking inside the TPM." +HOMEPAGE = "http://ibmswtpm.sourceforge.net/ibmswtpm2.html" +LICENSE = "BSD" +SECTION = "securty/tpm" +LIC_FILES_CHKSUM = "file://../LICENSE;md5=1e023f61454ac828b4aa1bc4293f7d5f" + +DEPENDS = "openssl" + +SRC_URI = "https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm${PV}.tar.gz \ + file://tune-makefile.patch \ + file://fix-wrong-cast.patch \ + " +SRC_URI[md5sum] = "43b217d87056e9155633925eb6ef749c" +SRC_URI[sha256sum] = "dd3a4c3f7724243bc9ebcd5c39bbf87b82c696d1c1241cb8e5883534f6e2e327" +SRC_URI[sha1sum] = "ab4b94079e57a86996991e8a2b749ce063e4ad3e" +SRC_URI[sha384sum] = "bbef16a934853ce78cba7ddc766aa9d7ef3cde3430a322b1be772bf3ad4bd6d413ae9c4de21bc1a4879d17dfe2aadc1d" +SRC_URI[sha512sum] = "007aa415cccf19a2bcf789c426727dc4032dcb04cc9d11eedc231d2add708c1134d3d5ee5cfbe7de68307c95fff7a30bd306fbd8d53c198a5ef348440440a6ed" + +S = "${WORKDIR}/src" + +CFLAGS += "-Wno-error=maybe-uninitialized" + +do_compile () { + make CC='${CC}' +} + +do_install () { + install -d ${D}/${bindir} + install -m 0755 tpm_server ${D}/${bindir} +} -- 2.17.1
|
|
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@... 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@...> wrote:
|
|
Re: vwdial
Maciej Pijanowski
On 11.09.2020 07:36, Zoltan Kerenyi
Nagy wrote:
Yes, you got the recipe name wrong. It's wvdial
-- Maciej Pijanowski Embedded Systems Engineer GPG: 9963C36AAC3B2B46 https://3mdeb.com | @3mdeb_com
|
|