[Openmp-dev] llvm-project trunk build fails on PowerPC

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed May 1 07:21:03 PDT 2019


I tried building the trunk again with the release Clang 8.0.0, but it fails
still.

Is there a PowerPC build log we can look at somewhere else?

On Wed, May 1, 2019 at 10:32 PM Gheorghe-Teod Bercea <
Gheorghe-Teod.Bercea at ibm.com> wrote:

> Hi Itaru,
>
> I suspect you need to update the compiler you're using to compile the
> BCLIB. It looks like it may be out of date.
>
> Thanks,
>
> --Doru
>
>
>
>
>
> From:        Itaru Kitayama via Openmp-dev <openmp-dev at lists.llvm.org>
> To:        openmp-dev at lists.llvm.org
> Date:        05/01/2019 01:19 AM
> Subject:        [Openmp-dev] llvm-project trunk build fails on PowerPC
> Sent by:        "Openmp-dev" <openmp-dev-bounces at lists.llvm.org>
> ------------------------------
>
>
>
> Hi,
> $ ninja
> [150/2173] Generating VCSRevision.h
> -- Found Git: /usr/bin/git (found version "1.8.3.1")
> [166/2173] Building LLVM bitcode data_sharing.cu-sm_60.bc
> FAILED:
> projects/openmp/libomptarget/deviceRTLs/nvptx/data_sharing.cu-sm_60.bc
> 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/
> *data_sharing.cu* <http://data_sharing.cu>-o data_sharing.cu-sm_60.bc
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/
> *data_sharing.cu:12* <http://data_sharing.cu:12>:
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> In file included from <built-in>:1:
> In file included from
> /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:
> /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
> __MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,
>                                   ^
> 2 warnings and 1 error generated when compiling for sm_60.
> [175/2173] Building LLVM bitcode reduction.cu-sm_60.bc
> FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/reduction.cu-sm_60.bc
> 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/
> *reduction.cu* <http://reduction.cu>-o reduction.cu-sm_60.bc
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/
> *reduction.cu:17* <http://reduction.cu:17>:
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> In file included from <built-in>:1:
> In file included from
> /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:
> /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
> __MAKE_SYNC_SHUFFLES(__shfl_down_sync, __nvvm_shfl_sync_down_i32,
>                                        ^
> 2 warnings and 1 error generated when compiling for sm_60.
> [176/2173] Building LLVM bitcode parallel.cu-sm_60.bc
> FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/parallel.cu-sm_60.bc
> 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/
> *parallel.cu* <http://parallel.cu>-o parallel.cu-sm_60.bc
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/
> *parallel.cu:35* <http://parallel.cu:35>:
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> In file included from <built-in>:1:
> In file included from
> /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:
> /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
> __MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,
>                                   ^
> 2 warnings and 1 error generated when compiling for sm_60.
> [178/2173] Building LLVM bitcode loop.cu-sm_60.bc
> FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/loop.cu-sm_60.bc
> 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/
> *loop.cu* <http://loop.cu>-o loop.cu-sm_60.bc
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/
> *loop.cu:15* <http://loop.cu:15>:
> In file included from
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
> warning: variadic templates are a C++11 extension [-Wc++11-extensions]
> template <typename... Arguments>
>                   ^
> In file included from <built-in>:1:
> In file included from
> /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:
> /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
> __MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,
>                                   ^
> 2 warnings and 1 error generated when compiling for sm_60.
> [198/2173] Building CXX object
> tools/l...llvm-rc.dir/ResourceScriptParser.cpp.o
> ninja: build stopped: subcommand failed.
>
> CMake options I set:
>
> $ 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
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190501/b12a8af0/attachment.html>


More information about the Openmp-dev mailing list