* Package: dev-util/hip-4.0.0-r1 * Repository: gentoo * Maintainer: sci@gentoo.org candrews@gentoo.org,gentoo@holzke.net * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: fakeroot network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. [master c9348ff4] saving uncommitted changes in /etc prior to emerge run Author: Alessandro-Barbieri 3 files changed, 3 insertions(+) create mode 100644 env.d/99llvm-roc * /etc/portage/package.cflags/cflags -> */*: NOFFLAGS=1 * /etc/portage/package.cflags/cflags -> */*: LDFLAGS-="-Wl,-z,now -Wl,-z,relro" * /etc/portage/package.cflags/cflags -> */*: USE_NONGNU="" +fPIE +fstack-protector-all +D_FORTIFY_SOURCE=2 * /etc/portage/package.cflags/cflags -> */*: NOLDADD=1 * FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg candy cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync metadata-transfer mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr' * CFLAGS='-Os -pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -Wimplicit-function-declaration -Wno-error=implicit-function-declaration' * CXXFLAGS='-Os -pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection' * CPPFLAGS='-D_GLIBCXX_ASSERTIONS' * FFLAGS='-Os -pipe -march=native -fdiagnostics-color=always' * FCFLAGS='-Os -pipe -march=native -fdiagnostics-color=always' * F77FLAGS='-Os -pipe -march=native -fdiagnostics-color=always' * LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--sort-common' * MAKEOPTS='-j12 -l15' * gcc (Gentoo Hardened 10.2.0-r5 p6) 10.2.0 * g++ (Gentoo Hardened 10.2.0-r5 p6) 10.2.0 * LLD 12.0.0 (compatible with GNU linkers) * Linux ALESSAND-F1E8 5.10.4-rt-rt22-x86_64 #3 SMP PREEMPT_RT Sun Apr 18 16:12:36 CEST 2021 x86_64 AMD Ryzen 5 3600 6-Core Processor AuthenticAMD GNU/Linux 0;emerge 18:22:55 2|4 hip (root@ALESSAND-F1E8) kemerge 18:22:55 2|4 hip (root@ALESSAND-F1E8)\ >>> Unpacking source... >>> Unpacking rocm-hip-4.0.0.tar.gz to /var/tmp/portage/dev-util/hip-4.0.0-r1/work >>> Source unpacked in /var/tmp/portage/dev-util/hip-4.0.0-r1/work >>> Preparing source in /var/tmp/portage/dev-util/hip-4.0.0-r1/work/HIP-rocm-4.0.0 ... * Applying hip-3.9.0-DisableTest.patch ... [ ok ] * Applying hip-3.9.0-add-include-directories.patch ... patching file rocclr/CMakeLists.txt Hunk #1 succeeded at 157 with fuzz 1 (offset 18 lines). [ ok ] * Applying hip-3.5.1-config-cmake-in.patch ... patching file hip-config.cmake.in Hunk #1 succeeded at 131 (offset 8 lines). Hunk #2 succeeded at 174 with fuzz 1 (offset 16 lines). [ ok ] * Applying hip-3.5.1-hip_vector_types.patch ... [ ok ] * Applying hip-3.5.1-detect_offload-arch_for_clang-roc.patch ... [ ok ] * Applying hip-3.9.0-lpl_ca-add-include.patch ... [ ok ] * Working in BUILD_DIR: "/var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build" * Hardcoded definition(s) removed in CMakeLists.txt: * set(CMAKE_BUILD_TYPE "Release") * set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Inst * set(CMAKE_INSTALL_PREFIX ${HIP_DEFAULT_INSTALL_PREFIX} CACHE PATH "In * Hardcoded definition(s) removed in samples/2_Cookbook/4_shfl/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/3_shared_memory/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/1_hipEvent/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/13_occupancy/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/11_texture_driver/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/10_inline_asm/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/2_Cookbook/0_MatrixTranspose/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/1_Utils/hipInfo/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/1_Utils/hipDispatchLatency/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/1_Utils/hipCommander/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in samples/1_Utils/hipBusBandwidth/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * prefixing hipcc and its utils... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-util/hip-4.0.0-r1/work/HIP-rocm-4.0.0 ... * strip-flags: CFLAGS: changed '-Os -pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -Wimplicit-function-declaration -Wno-error=implicit-function-declaration' to '-Os -pipe -march=native -fdiagnostics-color=always -Wformat -Wimplicit-function-declaration -Wno-error=implicit-function-declaration' * strip-flags: CXXFLAGS: changed '-Os -pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection' to '-Os -pipe -march=native -fdiagnostics-color=always -Wformat' * Working in BUILD_DIR: "/var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build" cmake -C /var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr/lib/llvm/roc -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/hip -DBUILD_HIPIFY_CLANG=OFF -DHIP_PLATFORM=rocclr -DHIP_RUNTIME=ROCclr -DHIP_COMPILER=clang -DROCM_PATH=/usr -DHSA_PATH=/usr -DUSE_PROF_API=0 -DROCclr_DIR=/usr/include/rocclr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build/gentoo_toolchain.cmake /var/tmp/portage/dev-util/hip-4.0.0-r1/work/HIP-rocm-4.0.0 loading initial cache file /var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build/gentoo_common_config.cmake -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.31.1") fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Using CPACK_DEBIAN_PACKAGE_RELEASE local CPACK_RPM_PACKAGE_RELEASE: local -- HIP Platform: rocclr -- HIP Compiler: clang -- HIP will be installed in: /usr/lib/hip -- ROCM Installation path(ROCM_PATH): /usr -- Looking for HSA runtime in: /usr -- Found PythonInterp: /usr/bin/python (found version "3.9.5") CMake Error at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): By not providing "Findamd_comgr.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "amd_comgr", but CMake did not find one. Could not find a package configuration file provided by "amd_comgr" with any of the following names: amd_comgrConfig.cmake amd_comgr-config.cmake Add the installation prefix of "amd_comgr" to CMAKE_PREFIX_PATH or set "amd_comgr_DIR" to a directory containing one of the above files. If "amd_comgr" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib/cmake/rocclr/ROCclrConfig.cmake:10 (find_dependency) rocclr/CMakeLists.txt:44 (find_package) -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build/CMakeFiles/CMakeOutput.log". * ERROR: dev-util/hip-4.0.0-r1::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 3359: Called cmake_src_configure * environment, line 2104: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of `emerge --info '=dev-util/hip-4.0.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/hip-4.0.0-r1::gentoo'`. * The complete build log is located at '/var/log/portage/build/dev-util/hip-4.0.0-r1:20210518-162251.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/hip-4.0.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/hip-4.0.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/hip-4.0.0-r1/work/hip-4.0.0_build' * S: '/var/tmp/portage/dev-util/hip-4.0.0-r1/work/HIP-rocm-4.0.0'