cmake .. -DHIP_PLATFORM=hcc -DHCC_HOME=/opt/rocm/hcc/ -DHSA_PATH=/opt/rocm -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/rocm/hip/ -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm/ -DCPACK_GENERATOR=DEB -DCMAKE_CXX_FLAGS=-v -DHSA_AMDGPU_GPU_TARGET=gfx803,gfx900
Re-run cmake no build system arguments
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is Clang 8.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/rocm/bin/hcc
-- Check for working CXX compiler: /opt/rocm/bin/hcc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HIP Platform: hcc
-- HIP Compiler: hcc
-- Looking for HCC in: /opt/rocm/hcc/. Found version: 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383
-- Looking for HSA runtime in: /opt/rocm
-- HIP will be installed in: /opt/rocm/hip
-- Testing targets will not be available. To enable them please ensure that the HIP installation directory is writeable. Use -DCMAKE_INSTALL_PREFIX to specify a suitable location
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
/opt/rocm/hcc//bin/../include
/home/ubuntu/rocm/ubuntu/HIP/include
/opt/rocm/include
/usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0
/usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0
/usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward
/usr/local/include
/opt/rocm/hcc/lib/clang/8.0.0/include
/usr/include/aarch64-linux-gnu
/usr/include
End of search list.
"/opt/rocm/hcc//bin/hc-kernel-assemble" /tmp/hip_memory-4a1ee6.s CMakeFiles/hip_hcc.dir/src/hip_memory.cpp.o
clang-8: error: clang frontend command failed with exit code 70 (use -v to see invocation)
HCC clang version 8.0.0 (git@gitee.com:binutils/hcc-clang-upgrade.git 6ec3c61e09fbb60373eaf5a40021eb862363ba2c) (git@gitee.com:binutils/llvm.git d5938b6c383ee68cf93d4508e48836d6118517e2) (based on HCC 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383 )
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/hcc//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:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/hip_memory-765b59.cpp
clang-8: note: diagnostic msg: /tmp/hip_memory-b1300a.cpp
clang-8: note: diagnostic msg: /tmp/hip_memory-765b59.sh
clang-8: note: diagnostic msg:
ubuntu@linux:~$ uname -a Linux linux 4.15.0-51-generic #55ubuntu3-Ubuntu SMP Sat Jul 6 03:48:13 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@linux:~$ cat /etc/os-release NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
ubuntu@linux:~$ hcc -v HCC clang version 8.0.0 (git@gitee.com:binutils/hcc-clang-upgrade.git 6ec3c61e09fbb60373eaf5a40021eb862363ba2c) (git@gitee.com:binutils/llvm.git d5938b6c383ee68cf93d4508e48836d6118517e2) (based on HCC 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383 ) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/bin Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/7 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/7.4.0 Found candidate GCC installation: /usr/lib/gcc/aarch64-linux-gnu/8 Selected GCC installation: /usr/lib/gcc/aarch64-linux-gnu/7.4.0 Candidate multilib: .; Selected multilib: .; lib/Driver/ToolChains/Gnu.cpp Found HCC installation: /opt/rocm/bin/..
ubuntu@linux: $ cd ~/rocm/Experimental_ROC/distro_install_scripts/Ubuntu/Ubuntu_18.04/src_install/component_scripts ubuntu@linux:~/rocm/Experimental_ROC/distro_install_scripts/Ubuntu/Ubuntu_18.04/src_install/component_scripts$ ./01_10_hip.sh
cmake .. -DHIP_PLATFORM=hcc -DHCC_HOME=/opt/rocm/hcc/ -DHSA_PATH=/opt/rocm -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/rocm/hip/ -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm/ -DCPACK_GENERATOR=DEB -DCMAKE_CXX_FLAGS=-v -DHSA_AMDGPU_GPU_TARGET=gfx803,gfx900 Re-run cmake no build system arguments -- The C compiler identification is GNU 7.4.0 -- The CXX compiler identification is Clang 8.0.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /opt/rocm/bin/hcc -- Check for working CXX compiler: /opt/rocm/bin/hcc -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- HIP Platform: hcc -- HIP Compiler: hcc -- Looking for HCC in: /opt/rocm/hcc/. Found version: 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383 -- Looking for HSA runtime in: /opt/rocm -- HIP will be installed in: /opt/rocm/hip -- Testing targets will not be available. To enable them please ensure that the HIP installation directory is writeable. Use -DCMAKE_INSTALL_PREFIX to specify a suitable location -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:
CPACK_GENERATOR CPACK_PACKAGING_INSTALL_PREFIX HSA_AMDGPU_GPU_TARGET
-- Build files have been written to: /home/ubuntu/rocm/ubuntu/HIP/build ++ lastcmd='cmake .. -DHIP_PLATFORM=hcc -DHCC_HOME=${ROCM_INPUT_DIR}/hcc/ -DHSA_PATH=${ROCM_INPUT_DIR} -DCMAKE_BUILD_TYPE=${ROCM_CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${ROCM_OUTPUT_DIR}/hip/ -DCPACK_PACKAGING_INSTALL_PREFIX=${ROCM_OUTPUT_DIR}/ -DCPACK_GENERATOR=DEB -DCMAKE_CXX_FLAGS="-v" -DHSA_AMDGPU_GPU_TARGET="gfx803,gfx900"' ++ curcmd=make
include "..." search starts here:
include <...> search starts here:
/opt/rocm/hcc//bin/../include /home/ubuntu/rocm/ubuntu/HIP/include /opt/rocm/include /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0 /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward /usr/local/include /opt/rocm/hcc/lib/clang/8.0.0/include /usr/include/aarch64-linux-gnu /usr/include End of search list. fatal error: error in backend: lib/Target/AArch64/AArch64ISelLowering.cpp : Unsupported calling convention. CC=76 "/opt/rocm/hcc/bin/clang-8" -cc1 -DKALMAR_HC=1 -DHCC_HC=1 -famp-is-device -fno-builtin -fno-common -O2 -triple amdgcn--amdhsa-hcc -aux-triple aarch64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name hip_memory.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -fuse-init-array -v -coverage-notes-file /home/ubuntu/rocm/ubuntu/HIP/build/CMakeFiles/hip_hcc.dir/src/hip_memory.cpp.gcno -resource-dir /opt/rocm/hcc/lib/clang/8.0.0 -I/opt/rocm/hcc//bin/../include -I/opt/rocm/hcc//bin/../hcc/include -D hip_hcc_EXPORTS -I /home/ubuntu/rocm/ubuntu/HIP/include -D HIP_VERSION_MAJOR=1 -D HIP_VERSION_MINOR=5 -D HIP_VERSION_PATCH=19285 -I /opt/rocm/hcc//include -I /opt/rocm/include -D NDEBUG -internal-isystem /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 -internal-isystem /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward -internal-isystem /usr/local/include -internal-isystem /opt/rocm/hcc/lib/clang/8.0.0/include -internal-externc-isystem /usr/include/aarch64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -std=c++amp -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /home/ubuntu/rocm/ubuntu/HIP/build -ferror-limit 19 -fmessage-length 149 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -famp -fhsa-ext -o /tmp/hip_memory-4a1ee6.s -x hc-kernel /home/ubuntu/rocm/ubuntu/HIP/src/hip_memory.cpp -fgpu-rdc -emit-llvm-bc clang -cc1 version 8.0.0 based upon HCC 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383 default target aarch64-unknown-linux-gnu ignoring nonexistent directory "/opt/rocm/hcc//bin/../hcc/include" ignoring nonexistent directory "/include" ignoring duplicate directory "/opt/rocm/hcc//bin/../include" ignoring duplicate directory "/usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0" ignoring duplicate directory "/usr/local/include" ignoring duplicate directory "/opt/rocm/hcc/lib/clang/8.0.0/include" ignoring duplicate directory "/usr/include"
include "..." search starts here:
include <...> search starts here:
/opt/rocm/hcc//bin/../include /home/ubuntu/rocm/ubuntu/HIP/include /opt/rocm/include /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/aarch64-linux-gnu/c++/7.4.0 /usr/lib/gcc/aarch64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward /usr/local/include /opt/rocm/hcc/lib/clang/8.0.0/include /usr/include/aarch64-linux-gnu /usr/include End of search list. "/opt/rocm/hcc//bin/hc-kernel-assemble" /tmp/hip_memory-4a1ee6.s CMakeFiles/hip_hcc.dir/src/hip_memory.cpp.o clang-8: error: clang frontend command failed with exit code 70 (use -v to see invocation) HCC clang version 8.0.0 (git@gitee.com:binutils/hcc-clang-upgrade.git 6ec3c61e09fbb60373eaf5a40021eb862363ba2c) (git@gitee.com:binutils/llvm.git d5938b6c383ee68cf93d4508e48836d6118517e2) (based on HCC 1.3.19301-d099b6b5-6ec3c61e09-d5938b6c383 ) Target: aarch64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rocm/hcc//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:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-8: note: diagnostic msg: /tmp/hip_memory-765b59.cpp clang-8: note: diagnostic msg: /tmp/hip_memory-b1300a.cpp clang-8: note: diagnostic msg: /tmp/hip_memory-765b59.sh clang-8: note: diagnostic msg:
CMakeFiles/hip_hcc.dir/build.make:254: recipe for target 'CMakeFiles/hip_hcc.dir/src/hip_memory.cpp.o' failed make[2]: [CMakeFiles/hip_hcc.dir/src/hip_memory.cpp.o] Error 70 make[2]: Leaving directory '/home/ubuntu/rocm/ubuntu/HIP/build' CMakeFiles/Makefile2:135: recipe for target 'CMakeFiles/hip_hcc.dir/all' failed make[1]: [CMakeFiles/hip_hcc.dir/all] Error 2 make[1]: Leaving directory '/home/ubuntu/rocm/ubuntu/HIP/build' Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 ++ lastcmd=make