justxi / rocm

Ebuilds to install ROCM on Gentoo Linux
38 stars 23 forks source link

A new fresh 2.8.0 install just failed #91

Closed Lucretia closed 5 years ago

Lucretia commented 5 years ago

Hi,

I just uninstalled 2.7.x and tried to install 2.8.0, but failed here because even though the env var is in /etc/env.d/ dir, it is not picked up by emerge.

See, even after uninstalling 2.7.x, this is set:

# env |grep HCC
HCC_HOME=/usr/lib/hcc/2.7

Setting the var myself, fixes the build.

The end of the build log:

-- HIP Platform: hcc
-- HIP Compiler: hcc
CMake Error at CMakeLists.txt:128 (message):
  Don't know where to find HCC.  Please specify abolute path using -DHCC_HOME

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/sys-devel/hip-2.8.0/work/hip-2.8.0_build/CMakeFiles/CMakeOutput.log".
 * ERROR: sys-devel/hip-2.8.0::rocm failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2040:  Called cmake-utils_src_configure
 *   environment, line  875:  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 '=sys-devel/hip-2.8.0::rocm'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/hip-2.8.0::rocm'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/hip-2.8.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/hip-2.8.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/hip-2.8.0/work/hip-2.8.0_build'
 * S: '/var/tmp/portage/sys-devel/hip-2.8.0/work/HIP-roc-2.8.0'

>>> Failed to emerge sys-devel/hip-2.8.0, Log file:

>>>  '/var/tmp/portage/sys-devel/hip-2.8.0/temp/build.log'

 * Messages for package dev-libs/roct-thunk-interface-2.8.0:

 *   CONFIG_HMM_MIRROR:  is not set when it should be.
 *   CONFIG_ZONE_DEVICE:         is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.

 * Messages for package sys-devel/hcc-2.8.0:

 * git-r3: http protocol is completely unsecure and may render the ebuild
 * easily susceptible to MITM attacks (even if used only as fallback). Please
 * use https instead.
 * [URI: http://github.com/RadeonOpenCompute/ROCm-Device-Libs.git]
 * HCC is marked depracated, see:
 * https://github.com/RadeonOpenCompute/hcc#deprecation-notice

 * Messages for package sys-devel/hip-2.8.0:

 * ERROR: sys-devel/hip-2.8.0::rocm failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2040:  Called cmake-utils_src_configure
 *   environment, line  875:  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 '=sys-devel/hip-2.8.0::rocm'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/hip-2.8.0::rocm'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/hip-2.8.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/hip-2.8.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/hip-2.8.0/work/hip-2.8.0_build'
 * S: '/var/tmp/portage/sys-devel/hip-2.8.0/work/HIP-roc-2.8.0'

 * GNU info directory index is up-to-date.
justxi commented 5 years ago

May the env files need to be reloaded, after installing hcc? I try to check it.

justxi commented 5 years ago

I just emerged all ROCm 2.9 related packages and I don´t have such an issue. Did you make any progress?

justxi commented 5 years ago

I close this issue due to inactivity.