Comments (8)
Please use this for common_clang checkout.
git clone -b ocl-open-40 https://github.com/intel/opencl-clang common_clang
The change is reflected on the README now
from intel-graphics-compiler.
New errors:
`-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:1908 (message):
CMAKE_BUILD_TYPE: Unknown build configuration. The following
configurations are available: Debug;ReleaseInternal;Release.
The "Release" configuration will be used.
This value has meaning only for single-configuration generators (like
Make). It will be ignored for MSVC/XCode.
CMake Warning at CMakeLists.txt:1968 (message):
IGC_OPTION__ARCHITECTURE_TARGET: Target architecture is not specified.
Trying to deduce it from context.
CMake Warning (dev) at CMakeLists.txt:2050 (set):
Cannot set "IGC_LIBRARY_NAME": current scope has no parent.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:2059 (set):
Cannot set "FCL_LIBRARY_NAME": current scope has no parent.
This warning is for project developers. Use -Wno-dev to suppress it.
================================ IGC Project ================================
Build type: Release (single-configuration generator)
Build tools: OFF
LLVM dir:
Output directory:
"/home/burro/catkin_ws/external/workspace/igc/igc-install/Release"
Install root directory:
"/usr/local"
Architecture:
- target: Linux64 (detected: Linux64)
- host: Linux64 (detected: Linux64)
Cross-compilation needed: NO
Cross-compilation set: FALSE
Advanced:
-- - Link BiF resources: ON
-- - Building Windows Universal:
-- =============================================================================
CMake Warning at CMakeLists.txt:2196 (message):
not defined, defaulting to y: UFO_VK
-- [IGC] LLVM targets are not defined. Searching for LLVM.
CMake Warning at CMakeLists.txt:3262 (find_package):
Could not find a configuration file for package "LLVM" that is compatible
with requested version "7.0.0".
The following configuration files were considered but not accepted:
/usr/lib/llvm-9/cmake/LLVMConfig.cmake, version: 9.0.0
/usr/lib/llvm-4.0/cmake/LLVMConfig.cmake, version: 4.0.0
-- [IGC] LLVM compilation from /home/burro/catkin_ws/external/workspace/igc/IGC/../../llvm_patches
-- LLVM_SOURCE_URL = /home/burro/catkin_ws/external/workspace/llvm_patches/../llvm7.0.0_source
-- LLVM_OPTIONS = -DLLVM_TARGETS_TO_BUILD=;-DLLVM_BUILD_TOOLS=true;-DLLVM_INCLUDE_TOOLS=true;-DLLVM_INSTALL_UTILS=false;-DLLVM_INCLUDE_UTILS=false;-DLLVM_BUILD_EXAMPLES=false;-DLLVM_INCLUDE_EXAMPLES=false;-DLLVM_BUILD_TESTS=false;-DLLVM_INCLUDE_TESTS=false;-DLLVM_APPEND_VC_REV=false;-DLLVM_ENABLE_THREADS=true;-DLLVM_ENABLE_CXX1Y=false;-DLLVM_ENABLE_PIC=true;-DLLVM_ENABLE_WARNINGS=true;-DLLVM_ENABLE_PEDANTIC=true;-DLLVM_ENABLE_WERROR=false;-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF;-DLLVM_BUILD_RUNTIME=true;-DLLVM_ENABLE_TERMINFO=false;-DLLVM_ENABLE_EH=true;-DLLVM_ENABLE_RTTI=true;-DLLVM_BUILD_32_BITS=false
-- Copying stock LLVM sources to /home/burro/catkin_ws/external/workspace/build/llvm/build/../src
Apply /home/burro/catkin_ws/external/workspace/llvm_patches/releases/7.0.0/patches_external/fix-pointer-for-lifetime-intrinsic.patch file
patching file lib/Transforms/Scalar/SROA.cpp
-- LLVM_BUILD_TYPE = Release
-- [LLVM] PYTHON_EXECUTABLE = /usr/bin/python2
-- [LLVM] Clearing build system compilation flags
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for histedit.h
-- Looking for histedit.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for linux/magic.h
-- Looking for linux/magic.h - found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- 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
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.3")
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Looking for lseek64
-- Looking for lseek64 - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for GLIBC
-- Looking for GLIBC - found
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - found
-- Looking for CPU_COUNT
-- Looking for CPU_COUNT - found
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Native target X86 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found OCaml: /usr/bin/ocamlfind
-- OCaml bindings disabled, need ctypes >=0.4.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Failed
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Failed
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12")
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- [LLVM] Restoring build system compilation flags
-- SPIRV-Tools: nosetests found - python support code will be tested
-- Precompiled common clang bundle /home/burro/catkin_ws/external/workspace/igc/IGC/../Clang/Prebuilt/linux-ubuntu/Release/64/clang.7z does not exist. Try to compile from sources.
-- Trigger common clang compilation from /home/burro/catkin_ws/external/workspace/common_clang to /home/burro/catkin_ws/external/workspace/igc/igc-install/Release/clang/linux-ubuntu64
-- LLVM_SOURCE_URL = /home/burro/catkin_ws/external/workspace/common_clang/../llvm_source
-- CLANG_SOURCE_URL = /home/burro/catkin_ws/external/workspace/common_clang/../clang_source
-- CCLANG_LIB_NAME = cclang
-- CCLANG_SOURCE_URL = /home/burro/catkin_ws/external/workspace/common_clang/cclang
-- CCLANG_OCL_HEADERS_DIR = /home/burro/catkin_ws/external/workspace/igc/IGC/../third_party/opencl_headers
-- CCLANG_BUILD_TYPE = Release
-- CCLANG_INSTALL_DIR = /home/burro/catkin_ws/external/workspace/build/BiFModule/clang_build/install
-- CCLANG_OPTIONS = -DBUILD_X64:BOOL=ON;-DLLVM_USE_INTEL_JITEVENTS:BOOL=ON;-DLLVM_USE_LINKER:STRING=gold;-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-4.0;-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-4.0;-DLLVM_OPTIMIZED_TABLEGEN=ON;-DLLVM_TARGETS_TO_BUILD='X86';-DCOMMON_CLANG_LIBRARY_NAME:STRING=opencl_clang
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:964 (message):
error: do not know how to extract
'/home/burro/catkin_ws/external/workspace/common_clang/../llvm_source' --
known types are .7z, .tar, .tar.bz2, .tar.gz, .tar.xz, .tbz2, .tgz, .txz
and .zip
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/ExternalProject.cmake:1909 (_ep_write_extractfile_script)
/usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
/home/burro/catkin_ws/external/workspace/common_clang/CMakeLists.txt:235 (ExternalProject_Add)
-- Configuring Intel Gen Assembler (IGA) Component
-- - GED_BRANCH: GED_external
-- - CMAKE_CXX_COMPILER: /usr/bin/c++
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Found FLEX: /usr/bin/flex (found version "2.6.0")
INFOLIT tests not enabled. Missing igc_opt target.
-- Configuring incomplete, errors occurred!
`
from intel-graphics-compiler.
Can you share the HEAD information on folders, i.e. llvm_patches, igc, so we can try to reproduce the issue?
cd llvm_patches; git log --oneline -1
cd igc; git log --oneline -1
from intel-graphics-compiler.
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:964 (message): error: do not know how to extract
'/home/burro/catkin_ws/external/workspace/common_clang/../llvm_source'
Are you sure the /home/burro/catkin_ws/external/workspace/common_clang/../llvm_source
directory exists?
from intel-graphics-compiler.
@fiorano10
Please try this again. Make sure you have both llvm_source and llvm7.1.0_source cloned.
$ git clone -b release_40 https://github.com/llvm-mirror/clang clang_source
$ git clone -b ocl-open-40 https://github.com/intel/opencl-clang common_clang
$ git clone https://github.com/intel/llvm-patches llvm_patches
[If seeing LLVM7.1.0 issue, please do following]
In CMakeLists.txt
Change set(EXPECTED_LLVM_VERSION "7.0.0") to set(EXPECTED_LLVM_VERSION "7.1.0")
$ git clone -b release_40 https://github.com/llvm-mirror/llvm llvm_source
$ git clone -b release_70 https://github.com/llvm-mirror/llvm llvm7.1.0_source
$ git clone https://github.com/intel/intel-graphics-compiler igc
from intel-graphics-compiler.
@fiorano10 We updated our README to support clang7. Please give it a try.
from intel-graphics-compiler.
@fiorano10 Are you still seeing issue with our latest IGC code and README file?
from intel-graphics-compiler.
Did not hear from the user for few weeks. Please open new issue if seeing issue on latest repo and README.
from intel-graphics-compiler.
Related Issues (20)
- JIT results in `CL_OUT_OF_HOST_MEMORY` when using LLVMSPIRVLib.so (as opposed to .a)
- Build errors on ubuntu 23.10 HOT 4
- Documentation link for Intel Graphics Media Accelerator Developer's Guide is broken HOT 1
- Error! Loading of FCL library has failed! Filename: libigdfcl.so.1
- CMake doesn't handle the case when multiple `opencl-c.h` are found
- Internal compiler error when building LLVM along with IGC HOT 3
- celeron n2920 cpu ,can it supported by vulkan or need to build something.its currently on windows 11 and support wsl. HOT 1
- Assertion failure compiling code calling log10f HOT 2
- Assertion failure
- Build broken on Ubuntu noble due to redefining -D_FORTIFY_SOURCE HOT 2
- Does this repo support Arc 770? HOT 1
- G4 verification failure HOT 1
- Undefined reference in ocloc when compiling compute-runtime HOT 3
- Null pointer dereference is not possible due to preconditions. HOT 1
- genx_volatile-attributed globals pointers can indeed be used by bitcast (constant expressions or in instruction form) before being used in genx.vload/vstore.
- Undefined Behavior in a call to TranslateImpl() HOT 2
- cmake error with cmakelists HOT 1
- 1.0.16747.5: not ready for latest LLVM 18.1.5 (it wants two years old 14.0.6) HOT 8
- Lowering test for llvm.bitreverse for 2/4-bit scalars fails on GPU HOT 1
- Building IGC and LLVM from source with `-static-libgcc` and `-static-libstdc++` produces libs of several gigabytes in size
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intel-graphics-compiler.