[llvm-bugs] [Bug 38702] New: compiler fatal error with offload
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Aug 25 10:11:49 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38702
Bug ID: 38702
Summary: compiler fatal error with offload
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: xw111luoye at gmail.com
CC: llvm-bugs at lists.llvm.org
When compiling miniQMC offload branch.
https://github.com/QMCPACK/miniqmc/tree/OMP_offload
mkdir build_clang_offload; cd build_clang_offload
cmake -DCMAKE_CXX_COMPILER="clang++" -DQMC_MPI=0 -DENABLE_OFFLOAD=1 ..
make
I got the following error. This cpp is pure regular CPU code.
My workaround is just removing -fopenmp-targets=nvptx64-nvidia-cuda
But this is a bug of compiler and needs a fix.
[ 23%] Building CXX object
src/CMakeFiles/qmcutil.dir/Utilities/tinyxml/tinyxml2.cpp.o
cd /sandbox/opt/miniqmc/build_clang_offload/src &&
/sandbox/opt/llvm-clang/clang-offload/bin/clang++ -DADD_ -DH5_USE_16_API
-DHAVE_CONFIG_H -DINLINE_ALL=inline -DUSE_REAL_STRUCT_FACTOR
-Drestrict=__restrict__ -I/sandbox/opt/miniqmc/src
-I/sandbox/opt/miniqmc/build_clang_offload/src
--gcc-toolchain=/soft/apps/packages/gcc/gcc-6.2.0 -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda -fomit-frame-pointer -fstrict-aliasing
-D__forceinline=inline -Wno-deprecated -Wno-unused-value
-Wno-undefined-var-template -O3 -DNDEBUG -ffast-math -std=c++11 -o
CMakeFiles/qmcutil.dir/Utilities/tinyxml/tinyxml2.cpp.o -c
/sandbox/opt/miniqmc/src/Utilities/tinyxml/tinyxml2.cpp
fatal error: error in backend: Cannot select: 0x6474890: ch = vaend 0x6474828,
0x63ff9e8, SrcValue:ch<0x6272d08>
0x63ff9e8: i64,ch = CopyFromReg 0x5ca19f8, Register:i64 %11
0x6410920: i64 = Register %11
In function: _ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.0 (https://github.com/llvm-mirror/clang.git
1bdec838c54117d9befe6dfcd3336a0ba5de9e0d)
(https://github.com/llvm-mirror/llvm.git
7b5db9830a20edbd0ff0e71e91acb654684f4003)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /sandbox/opt/llvm-clang/clang-offload/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-8: note: diagnostic msg: Error generating preprocessed source(s).
make[2]: *** [src/CMakeFiles/qmcutil.dir/Utilities/tinyxml/tinyxml2.cpp.o]
Error 70
make[2]: Leaving directory `/sandbox/opt/miniqmc/build_clang_offload'
make[1]: *** [src/CMakeFiles/qmcutil.dir/all] Error 2
make[1]: Leaving directory `/sandbox/opt/miniqmc/build_clang_offload'
make: *** [all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180825/11a6b3f9/attachment.html>
More information about the llvm-bugs
mailing list