Skip to content

python3 %DPCPP_HOME%\llvm\buildbot\compile.py failed in ubuntu arm64 #13319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adi-lb-phoenix opened this issue Apr 8, 2024 · 4 comments
Closed
Labels
bug Something isn't working Need info Some clarifications are needed from the reporter Stale

Comments

@adi-lb-phoenix
Copy link

adi-lb-phoenix commented Apr 8, 2024

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
| ^~~~~~~~~
2 errors generated.
gmake[3]: *** [tools/libdevice/CMakeFiles/imf_fallback_bf16_spv.dir/build.make:77: lib/libsycl-fallback-imf-bf16.spv] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:106775: tools/libdevice/CMakeFiles/imf_fallback_bf16_spv.dir/all] Error 2
gmake[2]: *** Waiting for unfinished jobs....
[ 96%] Built target sycl-preview_object
[ 98%] Built target sycl_object
gmake[1]: *** [CMakeFiles/Makefile2:100044: tools/sycl/CMakeFiles/deploy-sycl-toolchain.dir/rule] Error 2
gmake: *** [Makefile:21900: deploy-sycl-toolchain] Error 2
Traceback (most recent call last):
File "/home/phoenix/sycl_workspace/llvm/buildbot/compile.py", line 71, in
ret = main()
File "/home/phoenix/sycl_workspace/llvm/buildbot/compile.py", line 67, in main
return do_compile(args)
File "/home/phoenix/sycl_workspace/llvm/buildbot/compile.py", line 42, in do_compile
subprocess.check_call(cmake_cmd, cwd=abs_obj_dir)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '/home/phoenix/sycl_workspace/llvm/build', '--', 'deploy-sycl-toolchain', '-j', '3']' returned non-zero exit status 2.

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 
@adi-lb-phoenix adi-lb-phoenix added the bug Something isn't working label Apr 8, 2024
@adi-lb-phoenix adi-lb-phoenix changed the title python %DPCPP_HOME%\llvm\buildbot\compile.py failed in ubuntu arm64 python3 %DPCPP_HOME%\llvm\buildbot\compile.py failed in ubuntu arm64 Apr 9, 2024
@steffenlarsen
Copy link
Contributor

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.

@dm-vodopyanov dm-vodopyanov added the Need info Some clarifications are needed from the reporter label Jul 10, 2024
@dm-vodopyanov
Copy link
Contributor

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?

Copy link
Contributor

github-actions bot commented Jan 7, 2025

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.

@github-actions github-actions bot added the Stale label Jan 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

This issue was closed because it has been stalled for 30 days with no activity. Please, re-open if the issue still exists.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Need info Some clarifications are needed from the reporter Stale
Projects
None yet
Development

No branches or pull requests

3 participants