<div dir="ltr">I tried building the trunk again with the release Clang 8.0.0, but it fails still.<div><br></div><div>Is there a PowerPC build log we can look at somewhere else?  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 1, 2019 at 10:32 PM Gheorghe-Teod Bercea <<a href="mailto:Gheorghe-Teod.Bercea@ibm.com">Gheorghe-Teod.Bercea@ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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 <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>></font><br><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif"><a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a></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"
<<a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank">openmp-dev-bounces@lists.llvm.org</a>></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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br></font></tt><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><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>

</blockquote></div>