Open mattmcadoo opened 6 months ago
Github butchered the formatting of trying to keep in all in code block...
I should probably make all the llvm build stuff optional. My main reason for forcing it is the lack of compiler flag support explicitly for the HIP compiler vs C++. An alternative could be to judiciously filter the flags or just make sure all the packages properly support HIPFLAGS.
Without "llvm":
` * Package: sci-libs/rocSPARSE-6.0.2:0/6.0
emerge --info '=sci-libs/rocSPARSE-6.0.2::rocm-bleeding-edge'
,emerge -pqv '=sci-libs/rocSPARSE-6.0.2::rocm-bleeding-edge'
.With "llvm" on line 9 of sci-libs/rocSPARSE/rocSPARSE-6.0.2.ebuild:
` * Package: sci-libs/rocSPARSE-6.0.2:0/6.0
Build directory (BUILD_DIR): "/var/tmp/portage/sci-libs/rocSPARSE-6.0.2/work/rocSPARSE-rocm-6.0.2_build" cmake -C /var/tmp/portage/sci-libs/rocSPARSE-6.0.2/work/rocSPARSE-rocm-6.0.2_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=On -DAMDGPU_TARGETS=gfx90a:xnack+;gfx906:xnack-;gfx908:xnack-;gfx1030;gfx803;gfx900;gfx1010;gfx1011;gfx1012;gfx1031;gfx902;gfx1100;gfx1101;gfx1102; -DBUILD_CLIENTS_SAMPLES=OFF -DCMAKE_INSTALL_INCLUDEDIR=include -DBUILD_CLIENTS_TESTS=OFF -DBUILD_CLIENTS_BENCHMARKS=OFF -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=NO -DROCM_SYMLINK_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-libs/rocSPARSE-6.0.2/work/rocSPARSE-rocm-6.0.2_build/gentoo_toolchain.cmake /var/tmp/portage/sci-libs/rocSPARSE-6.0.2/work/rocSPARSE-rocm-6.0.2 loading initial cache file /var/tmp/portage/sci-libs/rocSPARSE-6.0.2/work/rocSPARSE-rocm-6.0.2_build/gentoo_common_config.cmake -- The CXX compiler identification is Clang 17.0.6 -- The Fortran compiler identification is unknown -- The C compiler identification is Clang 18.1.3 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/hipcc - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:54 (project): The CMAKE_Fortran_COMPILER:
/usr/lib/llvm/18/bin/flang
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
-- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/lib/llvm/18/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Configuring incomplete, errors occurred!
emerge --info '=sci-libs/rocSPARSE-6.0.2::rocm-bleeding-edge'
,emerge -pqv '=sci-libs/rocSPARSE-6.0.2::rocm-bleeding-edge'
.Getting the same kind of failure with: dev-util/roctracer/roctracer-6.0.2.ebuild sci-libs/rocBLAS/rocBLAS-5.7.1.ebuild
There's probably more but these are the prerequisites.