Hi Giordon I think there is something else going on. Can you check /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/build/CMakeFiles/CMakeError.log
and see what error message is being spit out by clang when its trying to compile the sample file to detect c++11 On Thu, Jul 12, 2018 at 1:57 PM Giordon Stark <kra...@gmail.com> wrote: > > Hi Khem, > > I added clang, removed llvm-native -- and now I get an llvm error -- > supposedly because the llvm being used with yocto may be too old(?). > > kratsg@dc:/local/d4/gstark/poky/build$ bitbake root > Loading cache: 100% > |########################################################################################################################################################################| > Time: 0:00:00 > Loaded 3854 entries from dependency cache. > Parsing recipes: 100% > |######################################################################################################################################################################| > Time: 0:00:03 > Parsing of 2600 .bb files complete (2598 cached, 2 parsed). 3853 targets, 163 > skipped, 0 masked, 0 errors. > NOTE: Resolving any missing task queue dependencies > > Build Configuration: > BB_VERSION = "1.36.0" > BUILD_SYS = "x86_64-linux" > NATIVELSBSTRING = "universal" > TARGET_SYS = "arm-poky-linux-gnueabi" > MACHINE = "zc702-zynq7" > DISTRO = "poky" > DISTRO_VERSION = "2.4.2" > TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard > cortexa9" > TARGET_FPU = "hard" > meta > meta-poky > meta-yocto-bsp = "rocko:cca8bde9d700d68c5f36d7d4c47c048526aedfc0" > meta-xilinx-bsp = "rocko:7935ef724cd7359ed97e6ae3d90ebc8f07dd7e1f" > meta-oe > meta-python = "rocko:dacfa2b1920e285531bec55cd2f08743390aaf57" > meta = "rocko:7dccdf82d49fb11cb2a7cb205ae08311e5d43291" > meta-clang = "rocko:a4c0cd28de9c3d5823be43150a76d221b08896d6" > meta-l1calo = "update/ROOT:0cfb5bfd77ec9bb9fb9afbf4271786842a5dff8f" > workspace = "rocko:cca8bde9d700d68c5f36d7d4c47c048526aedfc0" > > Initialising tasks: 100% > |###################################################################################################################################################################| > Time: 0:00:03 > NOTE: Executing SetScene Tasks > NOTE: Executing RunQueue Tasks > ERROR: root-6.14.00-r0 do_configure: Function failed: do_configure (log file > is located at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/temp/log.do_configure.2984) > ERROR: Logfile of failure stored in: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/temp/log.do_configure.2984 > Log data follows: > | DEBUG: Executing shell function do_configure > | -- The C compiler identification is Clang 5.0.1 > | -- The CXX compiler identification is Clang 5.0.1 > | -- Check for working C compiler: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-clang > | -- Check for working C compiler: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-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: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-clang++ > | -- Check for working CXX compiler: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-clang++ > -- works > | -- Detecting CXX compiler ABI info > | -- Detecting CXX compiler ABI info - done > | -- Detecting CXX compile features > | -- Detecting CXX compile features - done > | -- ROOT default compression algorithm is lz4 > | -- Vc does not support arm. Support for Vc disabled. > | -- Found Clang. Major version 5, minor version 0 > | -- Performing Test HAS_CXX11 > | -- Performing Test HAS_CXX11 - Success > | -- 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 > | -- Found a 64bit system > | -- Found CLANG compiler > | -- Performing Test GLIBCXX_USE_CXX11_ABI > | -- Performing Test GLIBCXX_USE_CXX11_ABI - Failed > | -- ROOT Platform: linux > | -- ROOT Architecture: linuxx8664gcc > | -- Build Type: RelWithDebInfo > | -- Compiler Flags: -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard > -mcpu=cortex-a9 -mlittle-endian -D__extern_always_inline=inline > -no-integrated-as -Wno-error=unused-command-line-argument -Qunused-arguments > --sysroot=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot > -O2 -pipe -g -feliminate-unused-debug-types > -fdebug-prefix-map=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0=/usr/src/debug/root/6.14.00-r0 > > -fdebug-prefix-map=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native= > > -fdebug-prefix-map=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot= > -fvisibility-inlines-hidden -march=armv7-a -marm -mfpu=neon > -mfloat-abi=hard -mcpu=cortex-a9 -mlittle-endian > -D__extern_always_inline=inline -no-integrated-as > -Wno-error=unused-command-line-argument -Qunused-arguments --sysro ot=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -std=c++11 > | -- Looking for ZLib > | -- Found ZLIB: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libz.so > (found version "1.2.11") > | -- Looking for Freetype > | -- Found Freetype: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libfreetype.so > (found version "2.8.0") > | -- Looking for PCRE > | -- Found PCRE: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Looking for LZMA > | -- Found LZMA includes at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Found LZMA library at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/liblzma.so > | -- Looking for xxHash > | -- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) > | -- xxHash not found. Switching on builtin_xxhash option > | -- Looking for LZ4 > | -- Found LZ4: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/liblz4.so > (found version "1.7.5") > | -- Looking for X11 > | -- Looking for XOpenDisplay in > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libX11.so;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXext.so > | -- Looking for XOpenDisplay in > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libX11.so;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXext.so > - not found > | -- Looking for dnet_ntoa in dnet > | -- Looking for dnet_ntoa in dnet - not found > | -- Looking for dnet_ntoa in dnet_stub > | -- Looking for dnet_ntoa in dnet_stub - not found > | -- Looking for gethostbyname > | -- Looking for gethostbyname - not found > | -- Looking for gethostbyname in nsl > | -- Looking for gethostbyname in nsl - not found > | -- Looking for gethostbyname in bsd > | -- Looking for gethostbyname in bsd - not found > | -- Looking for connect > | -- Looking for connect - not found > | -- Looking for connect in socket > | -- Looking for connect in socket - not found > | -- Looking for remove > | -- Looking for remove - not found > | -- Looking for remove in posix > | -- Looking for remove in posix - not found > | -- Looking for shmat > | -- Looking for shmat - not found > | -- Looking for shmat in ipc > | -- Looking for shmat in ipc - not found > | -- Looking for IceConnectionNumber in ICE > | -- Looking for IceConnectionNumber in ICE - not found > | -- Found X11: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libX11.so > | -- X11_INCLUDE_DIR: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- X11_LIBRARIES: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libX11.so;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXext.so > | -- X11_Xpm_INCLUDE_PATH: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- X11_Xpm_LIB: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXpm.so > | -- X11_Xft_INCLUDE_PATH: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- X11_Xft_LIB: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXft.so > | -- X11_Xext_INCLUDE_PATH: > | -- X11_Xext_LIB: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXext.so > | -- Looking for GSL > | -- Found GSL: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > (found suitable version "1.15", minimum required is "1.10") > | -- Found PythonInterp: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/python-native/python > (found version "2.7.13") > | -- Found PythonLibs: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libpython2.7.so > (found version "2.7.13") > | -- Looking for OpenGL > | -- Found OpenGL: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libGL.so > | -- Looking for GLEW > | -- Found GLEW: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Looking for gl2ps > | -- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) > | -- gl2ps not found. Switching on builtin_gl2ps option > | -- Looking for LibXml2 > | -- Found LibXml2: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libxml2.so > (found version "2.9.4") > | -- Found OpenSSL: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libcrypto.so > (found version "1.0.2n") > | -- Looking for Castor > | -- Could NOT find CASTOR (missing: CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR) > | -- Castor not found. Switching off castor option > | -- Looking for MySQL > | -- Could NOT find MYSQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) > | -- MySQL not found. Switching off mysql option > | -- Looking for Oracle > | -- Oracle not found. > | -- Oracle: You can specify includes: > -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client > | -- currently found includes: > | -- Oracle: You can specify libs: > -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib > | -- currently found libs: > ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND > | -- Oracle not found. Switching off oracle option > | -- Looking for PostgreSQL > | -- Could NOT find PostgreSQL (missing: POSTGRESQL_INCLUDE_DIR > POSTGRESQL_LIBRARY) > | -- PostgreSQL not found. Switching off pgsql option > | -- Looking for SQLite > | -- Found PkgConfig: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/pkg-config > (found version "0.29.2") > | -- Found Sqlite: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Looking for Pythia6 > | -- Pythia6 not found. Switching off pythia6 option > | -- Looking for Pythia8 > | -- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY) > | -- Pythia8 not found. Switching off pythia8 option > | -- Looking for FFTW3 > | -- Found fftw3 includes at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Found fftw3 library at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libfftw3.so > | -- Looking for CFITSIO > | -- Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY) > | -- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build > the library internally' > | -- For the time being switching off 'fitsio' option > | -- Looking for XROOTD > | -- Found Xrootd version num: 4.8.3 (setting -DROOTXRDVERS=400080003) > | -- libXrdMain not found: xproofd will be a wrapper around > xrootd > | -- include_dirs: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include/xrootd;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include/xrootd/private > | -- libraries: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXrdUtils.so;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXrdClient.so;/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/lib/libXrdCl.so > | -- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR > GFAL_LIBRARY) > | -- GFAL library not found. Set variable GFAL_DIR to point to your gfal > installation > | and the variable SRM_IFCE_DIR to the srm_ifce > installation > | -- For the time being switching OFF 'gfal' option > | -- Checking for module 'davix>=0.6.4' > | -- No package 'davix' found > | -- Looking for uuid_generate_random in uuid > | -- Looking for uuid_generate_random in uuid - not found > | -- Found uuid: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot/usr/include > | -- Davix not found, switching ON 'builtin_davix' option. > | -- Looking for clock_gettime > | -- Looking for clock_gettime - not found > | -- Looking for clock_gettime in rt > | -- Looking for clock_gettime in rt - not found > | -- Looking for TBB > | -- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY) > | -- TBB not found. Switching on builtin_tbb option > | -- Performing Test CXX_HAS_mno_rtm > | -- Performing Test CXX_HAS_mno_rtm - Failed > | -- Looking for BLAS for optional parts of TMVA > | -- A library with BLAS API not found. Please specify library location. > | -- Using GSL CBLAS for optional parts of TMVA > | -- Enabled support for: builtin_davix builtin_ftgl builtin_gl2ps > builtin_clang builtin_tbb builtin_xxhash cling cxx11 davix exceptions > explicitlink fftw3 gdml genvector http imt mathmore minuit2 opengl pch python > roofit shared sqlite ssl thread tmva tmva-cpu x11 xft xml xrootd > | -- Found LLVM_CONFIG as > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/bin/llvm-config > | -- Linker detection: GNU ld > | CMake Warning at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/lib/cmake/llvm/HandleLLVMOptions.cmake:185 > (message): > | -fPIC is not supported. > | Call Stack (most recent call first): > | > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/lib/cmake/llvm/HandleLLVMOptions.cmake:213 > (add_flag_or_print_warning) > | interpreter/CMakeLists.txt:285 (include) > | > | > | CMake Error at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/recipe-sysroot-native/usr/lib/cmake/llvm/HandleLLVMOptions.cmake:402 > (message): > | LLVM requires C++11 support but the '-std=c++11' flag isn't supported. > | Call Stack (most recent call first): > | interpreter/CMakeLists.txt:285 (include) > | > | > | -- Configuring incomplete, errors occurred! > | See also > "/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/build/CMakeFiles/CMakeOutput.log". > | See also > "/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/build/CMakeFiles/CMakeError.log". > | WARNING: > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/temp/run.do_configure.2984:1 > exit 1 from 'cmake $oecmake_sitefile > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/root-6.14.00 > -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin > -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec > -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc > -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com > -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib > -DCMAKE_INSTALL_INCLUDEDIR:PATH=include > -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DCMAKE_INSTALL_SO_NO_EXE=0 > -DCMAKE_TOOLCHAIN_FILE=/local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/toolchain.cmake > -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 -Drootfit=ON > -Dminuit2=ON -Dpython=ON -Dssl=ON -Dxrootd=ON -Dbuiltin_freetype=OFF > -Dbuiltin_llvm=OFF -Dbuiltin_glew=OFF -Dastiff=OFF -Da simage=OFF -Dbuiltin_afterimage=OFF -Dalien=OFF -Dvdt=OFF ${PACKAGECONFIG_CONFARGS} -Wno-dev' > | ERROR: Function failed: do_configure (log file is located at > /local/d4/gstark/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/root/6.14.00-r0/temp/log.do_configure.2984) > ERROR: Task > (/local/d4/gstark/meta-l1calo/recipes-core/root/root_6.14.00.bb:do_configure) > failed with exit code '1' > > > On Wed, Jul 11, 2018 at 3:35 PM Khem Raj <raj.k...@gmail.com> wrote: >> >> Hi Giordon >> >> On Tue, Jul 10, 2018 at 10:36 AM Giordon Stark <kra...@gmail.com> wrote: >> > >> > Hi all, >> > >> > | >> > /local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/root/6.14.00-r0/recipe-sysroot-native/usr/lib/libLLVMSupport.a: >> > error adding symbols: File in wrong format >> > | clang-5.0: error: linker command failed with exit code 1 (use -v to see >> > invocation) >> > | >> > interpreter/llvm/src/tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/build.make:95: >> > recipe for target 'interpreter/llvm/src/bin/clang-tblgen' failed >> > | make[2]: *** [interpreter/llvm/src/bin/clang-tblgen] Error 1 >> > | make[2]: Leaving directory >> > '/local/d4/gstark/poky/build/tmp/work/aarch64-poky-linux/root/6.14.00-r0/build' >> > | CMakeFiles/Makefile2:791: recipe for target >> > 'interpreter/llvm/src/tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/all' >> > failed >> > | make[1]: *** >> > [interpreter/llvm/src/tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/all] >> > Error 2 >> > | make[1]: *** Waiting for unfinished jobs.... >> > >> > Here's the full log: >> > https://gist.github.com/3403addf74b5e902adec93b75fb0e138 >> > >> > Any ideas how to get a more verbose invocation if needed? I suspect the >> > error is due to some pre-built libraries being shipped in this recipe, but >> > I'm not sure what's causing the error in the first place. >> > >> >> it seems to be linking with native llvm libraries which might not be >> intended. >> >> > Note: I am using meta-clang. The recipe I'm using looks like: >> > >> > SUMMARY = "Numerical data analysis framework (OO)" >> > DESCRIPTION = "Object oriented framework for large scale data analysis" >> > HOMEPAGE = "http://root.cern.ch" >> > LICENSE = "LGPLv2.1" >> > LIC_FILES_CHKSUM = "file://LICENSE;md5=5ec773ab82cbea1f17ec5b98e8ce60cf" >> > SRC_URI = "https://root.cern.ch/download/root_v${PV}.source.tar.gz" >> > >> > S = "${WORKDIR}/${BPN}-${PV}" >> > >> > TOOLCHAIN = "clang" >> > #TARGET_CXXFLAGS_append_toolchain-clang = " -stdlib=libc++ " >> > >> > DEPENDS += "llvm-native libpcre lz4 libx11 libxpm libxft gsl fftw >> > libatomic-ops freetype glew xrootd" >> > >> >> it seems you really need llvm for target in dependencies so please >> remove llvm-native from DEPENDS >> and add clang to it. >> >> > inherit cmake pkgconfig pythonnative >> > >> > >> > do_configure_prepend(){ >> > export FC=${GFORTRAN} >> > } >> > >> > EXTRA_OECMAKE = "\ >> > -Drootfit=ON \ >> > -Dminuit2=ON \ >> > -Dpython=ON \ >> > -Dssl=ON \ >> > -Dxrootd=ON \ >> > -Dbuiltin_freetype=OFF \ >> > -Dbuiltin_llvm=OFF \ >> > -Dbuiltin_glew=OFF \ >> > -Dastiff=OFF \ >> > -Dasimage=OFF \ >> > -Dbuiltin_afterimage=OFF \ >> > -Dalien=OFF \ >> > -Dvdt=OFF \ >> > " >> > >> > -- >> > Giordon Stark >> > -- >> > _______________________________________________ >> > yocto mailing list >> > yocto@yoctoproject.org >> > https://lists.yoctoproject.org/listinfo/yocto > > -- > Giordon Stark -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto