<font size=2 face="sans-serif">Hi Itaru,</font><br><br><font size=2 face="sans-serif">I suspect you need to update the compiler
you're using to compile the BCLIB. It looks like it may be out of date.</font><br><br><font size=2 face="sans-serif">Thanks,</font><br><br><font size=2 face="sans-serif">--Doru</font><br><font size=2 face="sans-serif"><br></font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Itaru Kitayama via
Openmp-dev <openmp-dev@lists.llvm.org></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">openmp-dev@lists.llvm.org</font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">05/01/2019 01:19 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[Openmp-dev]
llvm-project trunk build fails on PowerPC</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">"Openmp-dev"
<openmp-dev-bounces@lists.llvm.org></font><br><hr noshade><br><br><br><font size=3>Hi,</font><br><font size=3>$ ninja</font><br><font size=3>[150/2173] Generating VCSRevision.h</font><br><font size=3>-- Found Git: /usr/bin/git (found version "1.8.3.1")</font><br><font size=3>[166/2173] Building LLVM bitcode data_sharing.cu-sm_60.bc</font><br><font size=3>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/data_sharing.cu-sm_60.bc</font><br><font size=3>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://data_sharing.cu"><font size=3 color=blue><u>data_sharing.cu</u></font></a><font size=3>-o data_sharing.cu-sm_60.bc</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://data_sharing.cu:12"><font size=3 color=blue><u>data_sharing.cu:12</u></font></a><font size=3>:</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>In file included from <built-in>:1:</font><br><font size=3>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:</font><br><font size=3>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64</font><br><font size=3>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,</font><br><font size=3>               
                  ^</font><br><font size=3>2 warnings and 1 error generated when compiling for sm_60.</font><br><font size=3>[175/2173] Building LLVM bitcode reduction.cu-sm_60.bc</font><br><font size=3>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/reduction.cu-sm_60.bc</font><br><font size=3>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://reduction.cu"><font size=3 color=blue><u>reduction.cu</u></font></a><font size=3>-o reduction.cu-sm_60.bc</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://reduction.cu:17"><font size=3 color=blue><u>reduction.cu:17</u></font></a><font size=3>:</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>In file included from <built-in>:1:</font><br><font size=3>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:</font><br><font size=3>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:179:40:
error: '__nvvm_shfl_sync_down_i32' needs target feature ptx60|ptx61|ptx63|ptx64</font><br><font size=3>__MAKE_SYNC_SHUFFLES(__shfl_down_sync, __nvvm_shfl_sync_down_i32,</font><br><font size=3>               
                     
 ^</font><br><font size=3>2 warnings and 1 error generated when compiling for sm_60.</font><br><font size=3>[176/2173] Building LLVM bitcode parallel.cu-sm_60.bc</font><br><font size=3>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/parallel.cu-sm_60.bc</font><br><font size=3>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://parallel.cu"><font size=3 color=blue><u>parallel.cu</u></font></a><font size=3>-o parallel.cu-sm_60.bc</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://parallel.cu:35"><font size=3 color=blue><u>parallel.cu:35</u></font></a><font size=3>:</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>In file included from <built-in>:1:</font><br><font size=3>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:</font><br><font size=3>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64</font><br><font size=3>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,</font><br><font size=3>               
                  ^</font><br><font size=3>2 warnings and 1 error generated when compiling for sm_60.</font><br><font size=3>[178/2173] Building LLVM bitcode loop.cu-sm_60.bc</font><br><font size=3>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/loop.cu-sm_60.bc</font><br><font size=3>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://loop.cu"><font size=3 color=blue><u>loop.cu</u></font></a><font size=3>-o loop.cu-sm_60.bc</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://loop.cu:15"><font size=3 color=blue><u>loop.cu:15</u></font></a><font size=3>:</font><br><font size=3>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]</font><br><font size=3>template <typename... Arguments></font><br><font size=3>               
  ^</font><br><font size=3>In file included from <built-in>:1:</font><br><font size=3>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:</font><br><font size=3>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64</font><br><font size=3>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,</font><br><font size=3>               
                  ^</font><br><font size=3>2 warnings and 1 error generated when compiling for sm_60.</font><br><font size=3>[198/2173] Building CXX object tools/l...llvm-rc.dir/ResourceScriptParser.cpp.o</font><br><font size=3>ninja: build stopped: subcommand failed.</font><br><br><font size=3>CMake options I set:</font><br><br><font size=3>$ cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=$PROJECT/pcp0151/opt/clang-trunk -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ -DLLVM_TARGETS_TO_BUILD=PowerPC -DLIBOMP_ENABLE_SHARED=FALSE
-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=TRUE
-DLIBOMP_ENABLE_SHARED=FALSE /tmp/projects/llvm-project</font><br><tt><font size=2>_______________________________________________<br>Openmp-dev mailing list<br>Openmp-dev@lists.llvm.org<br></font></tt><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev"><tt><font size=2>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</font></tt></a><tt><font size=2><br></font></tt><br><br><BR>