ROCm / HIP

HIP: C++ Heterogeneous-Compute Interface for Portability
https://rocmdocs.amd.com/projects/HIP/
MIT License
3.78k stars 540 forks source link

build HIP from source at ARM64 Ubuntu 18.04 error for Experimental_ROC 2.0.0 01_10_hip.sh #1291

Closed NothingButShadow closed 6 months ago

NothingButShadow commented 5 years ago

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

-- 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

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

ppanchad-amd commented 7 months ago

@NothingButShadow Apologies for the lack of response. Can you please test with latest ROCm 6.1.0 (HIP 6.1)? If resolved, please close ticket. Thanks!