clang-omp / clang_trunk

Other
12 stars 11 forks source link

can't install clang-omp on Tegra X1 #31

Open babouFomb opened 7 years ago

babouFomb commented 7 years ago

Hello,

I try to install Clang with OpenMP-4.Xsupport on my Tegra X1. I followed the steps given on: https://parallel-computing.pro/index.php/9-cuda/43-openmp-4-0-on-nvidia-cuda-gpus

I have gcc/g++ 5.4 and 4.8; cmake 3.4.3 installed. My ubuntu version is 16.04 and gcc/g++-5.4 is the default.

Due to the problems of memory space available on the memory of the X1, I mounted a micro SD formatted in ext4 in / mnt / SD.

I passed these flags to cmake for configuration: cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="ARM;AArch64" -DCMAKE_INSTALL_PREFIX=/mnt/SD/openmp/llvm/install ..

During the compilation, I got an error c++: internal compiler error: Killed (program cc1plus) I attached the output of make: clang-openmp-compilation-bug.txt

I thought it might be a problem due to the compiler version, so I put it to 5.4 with export CC = gcc-4.8 and export CXX = g ++ - 4.8, then I removed the contents of my build directory build and restart cmake with the same arguments previously quoted above. But I got the same error message g++-4.8: internal compiler error: Killed (program cc1plus). I attached the output of make for gcc/g++ 4.8 clang-openmp-compilation-bug-gcc-4.8.txt

I can not figure out the source of the problem because I already installed this same clang-omp version on two x86 PCs successfully.

Thanks.

hyviquel commented 7 years ago

Hi, This is an old repository with outdated code, you should try the following one which is basically the preparation of the future version that will be mainlined to LLVM trunk: https://github.com/clang-ykt 😉 Hervé

hyviquel commented 7 years ago

(it might change nothing, but then you should post this issue in the other repository)