llvm
llvm copied to clipboard
python3 %DPCPP_HOME%\llvm\buildbot\compile.py failed in ubuntu arm64
Describe the bug
Thank you for building and maintaining this repo as it will help me in learning parallel programming . I followed the guide of installing dpc++ from https://intel.github.io/llvm-docs/GetStartedGuide.html#create-dpc-workspace I have run this in a ubuntu arm_64 machine installed in UTM (https://mac.getutm.app/) which is installed in a macbook pro m1 with chip Apple M1 and macOS ventura 13.1
here is some more info about the ubuntu virtual machine
uname -a
Linux phoenix 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 19:16:50 UTC 2 aarch64 aarch64 aarch64 GNU/Linux ```
the following code execute with no issues
export DPCPP_HOME=~/sycl_workspace
mkdir $DPCPP_HOME
cd $DPCPP_HOME
git clone https://github.com/intel/llvm -b sycl
the next command executed with no issues .
~/sycl_workspace$ python $DPCPP_HOME/llvm/buildbot/configure.py --cmake-gen "Unix Makefiles"
the next command is where I get the error
~/sycl_workspace$ python3 /home/phoenix/sycl_workspace/llvm/buildbot/compile.py -j 3
the error displayed is
error: unknown target triple 'unknown'
In file included from /home/phoenix/sycl_workspace/llvm/build/./lib/libdevice/imf_bf16_fallback.cpp:10:
In file included from /home/phoenix/sycl_workspace/llvm/libdevice/imf/../device_imf.hpp:13:
In file included from /home/phoenix/sycl_workspace/llvm/libdevice/imf/../imf_bf16.hpp:13:
/home/phoenix/sycl_workspace/llvm/libdevice/imf/../imf_impl_utils.hpp:12:10: fatal error: 'cstddef' file not found
12 | #include
I have also run the command :
sudo apt install libstdc++-12-dev
after this I ran the command ,
~/sycl_workspace$ python3 /home/phoenix/sycl_workspace/llvm/buildbot/compile.py -j 3
I happened to get the same error as displayed above
To reproduce
export DPCPP_HOME=~/sycl_workspace
mkdir $DPCPP_HOME
cd $DPCPP_HOME
git clone https://github.com/intel/llvm -b sycl
~/sycl_workspace$ python3 /home/phoenix/sycl_workspace/llvm/buildbot/compile.py -j 3
~/sycl_workspace$ python $DPCPP_HOME/llvm/buildbot/configure.py --cmake-gen "Unix Makefiles"
Environment
uname -a
Linux phoenix 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 19:16:50 UTC 2 aarch64 aarch64 aarch64 GNU/Linux ```
### Additional context
this system is ubuntu 22.04 arm_64 version run in an UMT (https://mac.getutm.app/) virtual machine using virtualization on apple mac book pro m1 with CHIP : Apple M1 and macOS version : Ventura 13.1
Hi @adi-lb-phoenix ! Could you please share which C++ compiler and its version is being use to build the sources? It should appear as CMAKE_CXX_COMPILER in the CMakeCache.txt in the build folder.
Hello @adi-lb-phoenix, is the issue still actual for you? If yes, could you please provide the the info above? If not, can the issue be closed?