rederick29 / void-packages

The Void source packages collection
https://voidlinux.org
Other
1 stars 0 forks source link

Cant't build #1

Closed Jipok closed 1 year ago

Jipok commented 1 year ago
./xbps-src pkg HIP-sdk
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> HIP-sdk-5.6.0_1: removing autodeps, please wait...
=> HIP-sdk-5.6.0_1: building with [meta] for x86_64...
   [runtime] HIPIFY-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCR-Runtime-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCT-Thunk-Interface-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCm-CompilerSupport-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCm-OpenCL-Runtime-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCm-composable_kernel-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] hipBLAS-5.6.0_1: not found
   [runtime] hipCUB-5.6.0_1: not found
   [runtime] hipFFT-5.6.0_1: not found
   [runtime] hipSOLVER-5.6.0_1: not found
   [runtime] hipSPARSE-5.6.0_1: not found
   [runtime] hipamd-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] rccl-5.6.0_1: not found
   [runtime] rocBLAS-5.6.0_1: not found
   [runtime] rocFFT-5.6.0_1: not found
   [runtime] rocMLIR-5.6.0_1: not found
   [runtime] rocPRIM-5.6.0_1: not found
   [runtime] rocRAND-5.6.0_1: not found
   [runtime] rocSOLVER-5.6.0_1: not found
   [runtime] rocSPARSE-5.6.0_1: not found
   [runtime] rocThrust-5.6.0_1: not found
   [runtime] rocm-llvm-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] rocm_smi_lib-5.6.0_1: not found
   [runtime] rocminfo-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] roctracer-5.6.0_1: not found
   [runtime] rocprofiler-5.6.0_1: not found
   [runtime] rocprofiler-v2-5.6.0_1: not found
   [runtime] ROCclr-5.6.0_1: found (/host/binpkgs/rocm)
   [runtime] ROCdbgapi-5.6.0_1: not found
   [runtime] ROCgdb-5.6.0_1: not found
   [runtime] hsa-amd-aqlprofile-bin-5.6.0_1: not found
   [runtime] rocALUTION-5.6.0_1: not found
   [runtime] MIOpen-5.6.0_1: not found
   [runtime] MIOpenGEMM-5.5.0_1: not found
   [runtime] rocm-llvm-openmp-5.6.0_1: found (/host/binpkgs/rocm)
=> hipBLAS-5.6.0_1: the following build options are set:
   gfx1010:  (ON)
   gfx1011:  (ON)
   gfx1012:  (ON)
   gfx1030:  (ON)
   gfx1031:  (ON)
   gfx1100:  (ON)
   gfx1101:  (ON)
   gfx1102:  (ON)
   gfx803:  (ON)
   gfx900:  (ON)
   gfx906:  (ON)
   gfx908:  (ON)
   gfx90a:  (ON)
=> hipBLAS-5.6.0_1: building with [cmake] (dependency of HIP-sdk) for x86_64...
   [host] rocm-llvm-5.6.0_1: found (/host/binpkgs/rocm)
   [host] hipamd-5.6.0_1: found (/host/binpkgs/rocm)
   [host] gcc-fortran-12.2.0_3: found (https://repo-default.voidlinux.org/current)
   [host] cmake-bootstrap-3.27.3_1: found (https://repo-default.voidlinux.org/current/bootstrap)
   [host] ninja-1.11.1_3: found (https://repo-default.voidlinux.org/current)
   [target] rocm-cmake-5.6.0_1: found (/host/binpkgs/rocm)
   [target] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs/rocm)
   [target] rocBLAS-5.6.0_1: not found
   [target] rocSOLVER-5.6.0_1: not found
   [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs/rocm)
=> rocBLAS-5.6.0_1: the following build options are set:
   gfx1010:  (ON)
   gfx1011:  (ON)
   gfx1012:  (ON)
   gfx1030:  (ON)
   gfx1031:  (ON)
   gfx1100:  (ON)
   gfx1101:  (ON)
   gfx1102:  (ON)
   gfx803:  (ON)
   gfx900:  (ON)
   gfx906:  (ON)
   gfx908:  (ON)
   gfx90a:  (ON)
=> rocBLAS-5.6.0_1: building with [cmake] (dependency of hipBLAS) for x86_64...
   [host] hipamd-5.6.0_1: found (/host/binpkgs/rocm)
   [host] rocm-llvm-5.6.0_1: found (/host/binpkgs/rocm)
   [host] perl-5.36.1_1: found (https://repo-default.voidlinux.org/current)
   [host] python3-3.11.5_1: found (https://repo-default.voidlinux.org/current)
   [host] cmake-bootstrap-3.27.3_1: found (https://repo-default.voidlinux.org/current/bootstrap)
   [host] ninja-1.11.1_3: found (https://repo-default.voidlinux.org/current)
   [target] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs/rocm)
   [target] ROCm-CompilerSupport-5.6.0_1: found (/host/binpkgs/rocm)
   [target] msgpack-cxx-4.1.1_1: found (https://repo-default.voidlinux.org/current)
   [target] msgpack-devel-4.0.0_1: found (https://repo-default.voidlinux.org/current)
   [target] python3-msgpack-1.0.5_1: found (https://repo-default.voidlinux.org/current)
   [target] python3-yaml-6.0_2: found (https://repo-default.voidlinux.org/current)
   [target] python3-joblib-1.0.1_3: found (https://repo-default.voidlinux.org/current)
   [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs/rocm)
=> rocBLAS-5.6.0_1: installing host dependencies: hipamd-5.6.0_1 rocm-llvm-5.6.0_1 perl-5.36.1_1 python3-3.11.5_1 cmake-bootstrap-3.27.3_1 ninja-1.11.1_3 ...
=> rocBLAS-5.6.0_1: installing target dependencies: ROCm-Device-Libs-5.6.0_1 ROCm-CompilerSupport-5.6.0_1 msgpack-cxx-4.1.1_1 msgpack-devel-4.0.0_1 python3-msgpack-1.0.5_1 python3-yaml-6.0_2 python3-joblib-1.0.1_3 ...
=> rocBLAS-5.6.0_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> rocBLAS-5.6.0_1: running pre-configure hook: 01-override-config ...
=> rocBLAS-5.6.0_1: running pre-configure hook: 02-script-wrapper ...
=> rocBLAS-5.6.0_1: running do_configure ...
CMake Warning:
  Ignoring extra path from command line:

   "/builddir/rocBLAS-5.6.0/"

-- Use hip-clang to build for amdgpu backend
CMake Error at CMakeLists.txt:67 (message):
  error: downloading

      'https://github.com/RadeonOpenCompute/rocm-cmake/archive/master.zip' failed
      status_code: 1
      status_string: "Unsupported protocol"
      log: Protocol "https" not supported or disabled in libcurl

  Closing connection -1

-- Configuring incomplete, errors occurred!
=> ERROR: rocBLAS-5.6.0_1: do_configure: 'CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake ${cmake_args} ${configure_args} ${LIBS:+-DCMAKE_C_STANDARD_LIBRARIES="$LIBS"} ${LIBS:+-DCMAKE_CXX_STANDARD_LIBRARIES="$LIBS"} ${wrksrc}/${build_wrksrc}' exited with 1
=> ERROR:   in do_configure() at common/build-style/cmake.sh:76

This seems like a simple mistake. But I don’t understand how the void build system works at all and I can’t understand what I need to fix.

Do you have any plans to publish a binary version of the package (that you compiled)? Building this garbage from AMD is not an easy task.

rederick29 commented 1 year ago

@Jipok Could you try pulling the latest commit and see if that fixes it? I'm not sure how I didn't run into this before.

Also, I really recommend setting XBPS_PKG_OPTIONS in the etc/conf file in the repo to reduce the time you spend building and the resources needed to build:

XBPS_PKG_OPTIONS=~gfx803,~gfx900,~gfx906,~gfx908,~gfx90a,~gfx1010,~gfx1011,~gfx1012,~gfx1030,~gfx1031,~gfx1100,~gfx1101,~gfx1102

Just remove the '~' (tilde) from the GPU architecture(s) you wish to build for, i.e., to build for a gfx900 device you would need:

XBPS_PKG_OPTIONS=~gfx803,gfx900,~gfx906,~gfx908,~gfx90a,~gfx1010,~gfx1011,~gfx1012,~gfx1030,~gfx1031,~gfx1100,~gfx1101,~gfx1102

More information on the etc/conf file here: https://github.com/void-linux/void-packages#configuration

I'm happy to help with any other issues if you encounter any more.

Jipok commented 1 year ago

I got:

log ``` => xbps-src: updating repositories for host (x86_64)... [*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ... => xbps-src: updating software in / masterdir... => xbps-src: cleaning up / masterdir... => HIP-sdk-5.6.0_1: removing autodeps, please wait... => HIP-sdk-5.6.0_1: building with [meta] for x86_64... [runtime] HIPIFY-5.6.0_1: found (/host/binpkgs) [runtime] ROCR-Runtime-5.6.0_1: found (/host/binpkgs) [runtime] ROCT-Thunk-Interface-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-CompilerSupport-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-OpenCL-Runtime-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-composable_kernel-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs) [runtime] hipBLAS-5.6.0_1: not found [runtime] hipCUB-5.6.0_1: not found [runtime] hipFFT-5.6.0_1: not found [runtime] hipSOLVER-5.6.0_1: not found [runtime] hipSPARSE-5.6.0_1: not found [runtime] hipamd-5.6.0_1: found (/host/binpkgs) [runtime] rccl-5.6.0_1: not found [runtime] rocBLAS-5.6.0_1: not found [runtime] rocFFT-5.6.0_1: not found [runtime] rocMLIR-5.6.0_1: not found [runtime] rocPRIM-5.6.0_1: not found [runtime] rocRAND-5.6.0_1: not found [runtime] rocSOLVER-5.6.0_1: not found [runtime] rocSPARSE-5.6.0_1: not found [runtime] rocThrust-5.6.0_1: not found [runtime] rocm-llvm-5.6.0_1: found (/host/binpkgs) [runtime] rocm_smi_lib-5.6.0_1: not found [runtime] rocminfo-5.6.0_1: found (/host/binpkgs) [runtime] roctracer-5.6.0_1: not found [runtime] rocprofiler-5.6.0_1: not found [runtime] rocprofiler-v2-5.6.0_1: not found [runtime] ROCclr-5.6.0_1: found (/host/binpkgs) [runtime] ROCdbgapi-5.6.0_1: not found [runtime] ROCgdb-5.6.0_1: not found [runtime] hsa-amd-aqlprofile-bin-5.6.0_1: not found [runtime] rocALUTION-5.6.0_1: not found [runtime] MIOpen-5.6.0_1: not found [runtime] MIOpenGEMM-5.5.0_1: not found [runtime] rocm-llvm-openmp-5.6.0_1: found (/host/binpkgs) => hipBLAS-5.6.0_1: the following build options are set: gfx1030: (ON) gfx1010: (OFF) gfx1011: (OFF) gfx1012: (OFF) gfx1031: (OFF) gfx1100: (OFF) gfx1101: (OFF) gfx1102: (OFF) gfx803: (OFF) gfx900: (OFF) gfx906: (OFF) gfx908: (OFF) gfx90a: (OFF) => hipBLAS-5.6.0_1: building with [cmake] (dependency of HIP-sdk) for x86_64... [host] rocm-llvm-5.6.0_1: found (/host/binpkgs) [host] hipamd-5.6.0_1: found (/host/binpkgs) [host] gcc-fortran-12.2.0_3: found (https://repo-default.voidlinux.org/current) [host] cmake-bootstrap-3.27.3_1: found (https://repo-default.voidlinux.org/current/bootstrap) [host] ninja-1.11.1_3: found (https://repo-default.voidlinux.org/current) [target] rocm-cmake-5.6.0_1: found (/host/binpkgs) [target] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs) [target] rocBLAS-5.6.0_1: not found [target] rocSOLVER-5.6.0_1: not found [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs) => rocBLAS-5.6.0_1: the following build options are set: gfx1030: (ON) gfx1010: (OFF) gfx1011: (OFF) gfx1012: (OFF) gfx1031: (OFF) gfx1100: (OFF) gfx1101: (OFF) gfx1102: (OFF) gfx803: (OFF) gfx900: (OFF) gfx906: (OFF) gfx908: (OFF) gfx90a: (OFF) => rocBLAS-5.6.0_1: building with [cmake] (dependency of hipBLAS) for x86_64... [host] hipamd-5.6.0_1: found (/host/binpkgs) [host] rocm-llvm-5.6.0_1: found (/host/binpkgs) [host] perl-5.36.1_1: found (https://repo-default.voidlinux.org/current) [host] python3-3.11.5_1: found (https://repo-default.voidlinux.org/current) [host] cmake-bootstrap-3.27.3_1: found (https://repo-default.voidlinux.org/current/bootstrap) [host] ninja-1.11.1_3: found (https://repo-default.voidlinux.org/current) [target] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs) [target] ROCm-CompilerSupport-5.6.0_1: found (/host/binpkgs) [target] msgpack-cxx-4.1.1_1: found (https://repo-default.voidlinux.org/current) [target] msgpack-devel-4.0.0_1: found (https://repo-default.voidlinux.org/current) [target] python3-msgpack-1.0.5_1: found (https://repo-default.voidlinux.org/current) [target] python3-yaml-6.0_2: found (/host/binpkgs) [target] python3-joblib-1.0.1_3: found (https://repo-default.voidlinux.org/current) [target] rocm-cmake-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs) => rocBLAS-5.6.0_1: installing host dependencies: hipamd-5.6.0_1 rocm-llvm-5.6.0_1 perl-5.36.1_1 python3-3.11.5_1 cmake-bootstrap-3.27.3_1 ninja-1.11.1_3 ... => rocBLAS-5.6.0_1: installing target dependencies: ROCm-Device-Libs-5.6.0_1 ROCm-CompilerSupport-5.6.0_1 msgpack-cxx-4.1.1_1 msgpack-devel-4.0.0_1 python3-msgpack-1.0.5_1 python3-yaml-6.0_2 python3-joblib-1.0.1_3 rocm-cmake-5.6.0_1 ... => rocBLAS-5.6.0_1: skipping check (XBPS_CHECK_PKGS is disabled) ... => rocBLAS-5.6.0_1: running pre-pkg hook: 03-rewrite-python-shebang ... => rocBLAS-5.6.0_1: running pre-pkg hook: 04-generate-runtime-deps ... SONAME: libamdhip64.so.5 <-> hipamd>=5.5.0_1 SONAME: libstdc++.so.6 <-> libstdc++>=4.4.0_1 SONAME: libm.so.6 <-> glibc>=2.36_1 SONAME: libgcc_s.so.1 <-> libgcc>=4.4.0_1 SONAME: libc.so.6 <-> glibc>=2.36_1 SONAME: ld-linux-x86-64.so.2 <-> glibc>=2.36_1 => rocBLAS-5.6.0_1: running pre-pkg hook: 90-set-timestamps ... => rocBLAS-5.6.0_1: setting mtimes to Fri Sep 1 05:59:44 PM UTC 2023 => rocBLAS-5.6.0_1: running pre-pkg hook: 99-pkglint-subpkgs ... => rocBLAS-5.6.0_1: running pre-pkg hook: 99-pkglint ... => ERROR: rocBLAS-5.6.0_1: SONAME bump detected: librocblas.so.0 -> librocblas.so.3 => ERROR: rocBLAS-5.6.0_1: please update common/shlibs with this line: "librocblas.so.3 rocBLAS-5.6.0_1" => ERROR: rocBLAS-5.6.0_1: all reverse dependencies should also be revbumped to be rebuilt against librocblas.so.3: => ERROR: rocBLAS-5.6.0_1: cannot continue with installation! => ERROR: rocBLAS-5.6.0_1: pre-pkg_99-pkglint: 'grep -E "${_pattern}" $mapshlibs' exited with 1 => ERROR: in hook() at common/hooks/pre-pkg/99-pkglint.sh:173 => ERROR: in run_func() at common/xbps-src/shutils/common.sh:21 => ERROR: in run_pkg_hooks() at common/xbps-src/shutils/common.sh:262 => ERROR: in main() at common/xbps-src/libexec/xbps-src-prepkg.sh:47 ```

But fixed by deleting line "librocblas.so.3 rocBLAS-5.5.0_1". M.b. something from previous build attempt.

Jipok commented 1 year ago
./xbps-src pkg HIP-sdk ``` => xbps-src: updating repositories for host (x86_64)... [*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ... [*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ... => xbps-src: updating software in / masterdir... => xbps-src: cleaning up / masterdir... => HIP-sdk-5.6.0_1: removing autodeps, please wait... => HIP-sdk-5.6.0_1: building with [meta] for x86_64... [runtime] HIPIFY-5.6.0_1: found (/host/binpkgs) [runtime] ROCR-Runtime-5.6.0_1: found (/host/binpkgs) [runtime] ROCT-Thunk-Interface-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-CompilerSupport-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-OpenCL-Runtime-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-composable_kernel-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs) [runtime] hipBLAS-5.6.0_1: found (/host/binpkgs) [runtime] hipCUB-5.6.0_1: found (/host/binpkgs) [runtime] hipFFT-5.6.0_1: found (/host/binpkgs) [runtime] hipSOLVER-5.6.0_1: found (/host/binpkgs) [runtime] hipSPARSE-5.6.0_1: not found [runtime] hipamd-5.6.0_1: found (/host/binpkgs) [runtime] rccl-5.6.0_1: not found [runtime] rocBLAS-5.6.0_1: found (/host/binpkgs) [runtime] rocFFT-5.6.0_1: found (/host/binpkgs) [runtime] rocMLIR-5.6.0_1: not found [runtime] rocPRIM-5.6.0_1: found (/host/binpkgs) [runtime] rocRAND-5.6.0_1: not found [runtime] rocSOLVER-5.6.0_1: found (/host/binpkgs) [runtime] rocSPARSE-5.6.0_1: found (/host/binpkgs) [runtime] rocThrust-5.6.0_1: not found [runtime] rocm-llvm-5.6.0_1: found (/host/binpkgs) [runtime] rocm_smi_lib-5.6.0_1: not found [runtime] rocminfo-5.6.0_1: found (/host/binpkgs) [runtime] roctracer-5.6.0_1: not found [runtime] rocprofiler-5.6.0_1: not found [runtime] rocprofiler-v2-5.6.0_1: not found [runtime] ROCclr-5.6.0_1: found (/host/binpkgs) [runtime] ROCdbgapi-5.6.0_1: not found [runtime] ROCgdb-5.6.0_1: not found [runtime] hsa-amd-aqlprofile-bin-5.6.0_1: not found [runtime] rocALUTION-5.6.0_1: not found [runtime] MIOpen-5.6.0_1: not found [runtime] MIOpenGEMM-5.5.0_1: not found [runtime] rocm-llvm-openmp-5.6.0_1: found (/host/binpkgs) => hipSPARSE-5.6.0_1: the following build options are set: gfx1030: (ON) gfx1010: (OFF) gfx1011: (OFF) gfx1012: (OFF) gfx1031: (OFF) gfx1100: (OFF) gfx1101: (OFF) gfx1102: (OFF) gfx803: (OFF) gfx900: (OFF) gfx906: (OFF) gfx908: (OFF) gfx90a: (OFF) => hipSPARSE-5.6.0_1: building with [cmake] (dependency of HIP-sdk) for x86_64... [host] rocm-llvm-5.6.0_1: found (/host/binpkgs) [host] hipamd-5.6.0_1: found (/host/binpkgs) [host] gcc-fortran-12.2.0_3: found (https://repo-default.voidlinux.org/current) [host] cmake-bootstrap-3.27.3_1: found (https://repo-default.voidlinux.org/current/bootstrap) [host] ninja-1.11.1_3: found (https://repo-default.voidlinux.org/current) [target] rocm-cmake-5.6.0_1: found (/host/binpkgs) [target] ROCm-Device-Libs-5.6.0_1: found (/host/binpkgs) [target] rocSPARSE-5.6.0_1: found (/host/binpkgs) [runtime] ROCm-core-5.6.0_1: found (/host/binpkgs) => hipSPARSE-5.6.0_1: installing host dependencies: rocm-llvm-5.6.0_1 hipamd-5.6.0_1 gcc-fortran-12.2.0_3 cmake-bootstrap-3.27.3_1 ninja-1.11.1_3 ... => hipSPARSE-5.6.0_1: installing target dependencies: rocm-cmake-5.6.0_1 ROCm-Device-Libs-5.6.0_1 rocSPARSE-5.6.0_1 ... => hipSPARSE-5.6.0_1: running pre-build hook: 02-script-wrapper ... => hipSPARSE-5.6.0_1: running do_build ... [1/49] Building Fortran preprocessed clients/samples/CMakeFiles/example_fortran_csrsm2.dir/example_fortran_csrsm2.f90-pp.f90 [2/49] Building Fortran preprocessed clients/samples/CMakeFiles/example_fortran_bsrilu02.dir/example_fortran_bsrilu02.f90-pp.f90 [3/49] Building Fortran preprocessed clients/samples/CMakeFiles/example_fortran_csrilu02.dir/example_fortran_csrilu02.f90-pp.f90 [4/49] Building Fortran preprocessed clients/samples/CMakeFiles/example_fortran_dotci.dir/example_fortran_dotci.f90-pp.f90 [5/49] Building Fortran object clients/samples/CMakeFiles/example_fortran_csric02.dir/example_fortran_csric02.f90.o FAILED: clients/samples/CMakeFiles/example_fortran_csric02.dir/example_fortran_csric02.f90.o /usr/bin/gfortran -I/builddir/hipSPARSE-5.6.0/clients/samples -I/builddir/hipSPARSE-5.6.0/clients/samples/../include -I/builddir/hipSPARSE-5.6.0/library/include -I/builddir/hipSPARSE-5.6.0/build/include/hipsparse -I/builddir/hipSPARSE-5.6.0/build/include -I/opt/rocm/include -fstack-clash-protection -mtune=generic -O2 -pipe -O3 -DNDEBUG -O3 -Jclients/samples -fpreprocessed -c clients/samples/CMakeFiles/example_fortran_csric02.dir/example_fortran_csric02.f90-pp.f90 -o clients/samples/CMakeFiles/example_fortran_csric02.dir/example_fortran_csric02.f90.o /builddir/hipSPARSE-5.6.0/clients/samples/example_fortran_csric02.f90:54:9: 54 | use hipsparse | 1 Fatal Error: Cannot open module file 'hipsparse.mod' for reading at (1): No such file or directory compilation terminated. [6/49] Building Fortran object clients/samples/CMakeFiles/example_fortran_bsric02.dir/example_fortran_bsric02.f90.o FAILED: clients/samples/CMakeFiles/example_fortran_bsric02.dir/example_fortran_bsric02.f90.o /usr/bin/gfortran -I/builddir/hipSPARSE-5.6.0/clients/samples -I/builddir/hipSPARSE-5.6.0/clients/samples/../include -I/builddir/hipSPARSE-5.6.0/library/include -I/builddir/hipSPARSE-5.6.0/build/include/hipsparse -I/builddir/hipSPARSE-5.6.0/build/include -I/opt/rocm/include -fstack-clash-protection -mtune=generic -O2 -pipe -O3 -DNDEBUG -O3 -Jclients/samples -fpreprocessed -c clients/samples/CMakeFiles/example_fortran_bsric02.dir/example_fortran_bsric02.f90-pp.f90 -o clients/samples/CMakeFiles/example_fortran_bsric02.dir/example_fortran_bsric02.f90.o /builddir/hipSPARSE-5.6.0/clients/samples/example_fortran_bsric02.f90:54:9: 54 | use hipsparse | 1 Fatal Error: Cannot open module file 'hipsparse.mod' for reading at (1): No such file or directory compilation terminated. [7/49] Building Fortran object clients/samples/CMakeFiles/example_fortran_csrsv2.dir/example_fortran_csrsv2.f90.o FAILED: clients/samples/CMakeFiles/example_fortran_csrsv2.dir/example_fortran_csrsv2.f90.o /usr/bin/gfortran -I/builddir/hipSPARSE-5.6.0/clients/samples -I/builddir/hipSPARSE-5.6.0/clients/samples/../include -I/builddir/hipSPARSE-5.6.0/library/include -I/builddir/hipSPARSE-5.6.0/build/include/hipsparse -I/builddir/hipSPARSE-5.6.0/build/include -I/opt/rocm/include -fstack-clash-protection -mtune=generic -O2 -pipe -O3 -DNDEBUG -O3 -Jclients/samples -fpreprocessed -c clients/samples/CMakeFiles/example_fortran_csrsv2.dir/example_fortran_csrsv2.f90-pp.f90 -o clients/samples/CMakeFiles/example_fortran_csrsv2.dir/example_fortran_csrsv2.f90.o /builddir/hipSPARSE-5.6.0/clients/samples/example_fortran_csrsv2.f90:54:9: 54 | use hipsparse | 1 Fatal Error: Cannot open module file 'hipsparse.mod' for reading at (1): No such file or directory compilation terminated. [8/49] Building Fortran object clients/samples/CMakeFiles/example_fortran_auxiliary.dir/example_fortran_auxiliary.f90.o FAILED: clients/samples/CMakeFiles/example_fortran_auxiliary.dir/example_fortran_auxiliary.f90.o /usr/bin/gfortran -I/builddir/hipSPARSE-5.6.0/clients/samples -I/builddir/hipSPARSE-5.6.0/clients/samples/../include -I/builddir/hipSPARSE-5.6.0/library/include -I/builddir/hipSPARSE-5.6.0/build/include/hipsparse -I/builddir/hipSPARSE-5.6.0/build/include -I/opt/rocm/include -fstack-clash-protection -mtune=generic -O2 -pipe -O3 -DNDEBUG -O3 -Jclients/samples -fpreprocessed -c clients/samples/CMakeFiles/example_fortran_auxiliary.dir/example_fortran_auxiliary.f90-pp.f90 -o clients/samples/CMakeFiles/example_fortran_auxiliary.dir/example_fortran_auxiliary.f90.o /builddir/hipSPARSE-5.6.0/clients/samples/example_fortran_auxiliary.f90:53:9: 53 | use hipsparse | 1 Fatal Error: Cannot open module file 'hipsparse.mod' for reading at (1): No such file or directory compilation terminated. [9/49] Generating Fortran dyndep file clients/samples/CMakeFiles/example_fortran_csrilu02.dir/Fortran.dd [10/49] Generating Fortran dyndep file clients/samples/CMakeFiles/example_fortran_csrsm2.dir/Fortran.dd [11/49] Generating Fortran dyndep file clients/samples/CMakeFiles/example_fortran_bsrilu02.dir/Fortran.dd [12/49] Generating Fortran dyndep file clients/samples/CMakeFiles/example_fortran_dotci.dir/Fortran.dd [13/49] Building Fortran preprocessed clients/samples/CMakeFiles/example_fortran_roti.dir/example_fortran_roti.f90-pp.f90 [14/49] Linking CXX shared library library/libhipsparse.so.0.1 Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. [15/49] Building Fortran object library/CMakeFiles/hipsparse_fortran.dir/src/hipsparse.f90.o [16/49] Building CXX object clients/samples/CMakeFiles/example_fortran_bsrilu02.dir/__/common/utility.cpp.o Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. [17/49] Building CXX object clients/samples/CMakeFiles/example_fortran_dotci.dir/__/common/utility.cpp.o Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. [18/49] Building CXX object clients/samples/CMakeFiles/example_fortran_roti.dir/__/common/utility.cpp.o Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. [19/49] Building CXX object clients/samples/CMakeFiles/example_fortran_csrilu02.dir/__/common/utility.cpp.o Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. [20/49] Building CXX object clients/samples/CMakeFiles/example_fortran_csrsm2.dir/__/common/utility.cpp.o Can't exec "/opt/rocm/bin/rocm_agent_enumerator": No such file or directory at /opt/rocm/bin//hipcc.pl line 487. Use of uninitialized value $targetsStr in substitution (s///) at /opt/rocm/bin//hipcc.pl line 488. Use of uninitialized value $targetsStr in split at /opt/rocm/bin//hipcc.pl line 494. ninja: build stopped: subcommand failed. => ERROR: hipSPARSE-5.6.0_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 1 => ERROR: in do_build() at common/build-style/cmake.sh:94 ```
Jipok commented 1 year ago

Well, I skipped this package and installed hipBLAS and MIOpenGEMM for myself. That was enough for building llama.cpp.

rederick29 commented 1 year ago

Regarding your issue with building hipSPARSE, I'm not entirely sure what the issue is. I can reproduce it on my system, however, running ./xbps-src pkg hipSPARSE a few times in a row seems to eventually get it working. There was also an unrelated typo in the template for this package which I have now fixed.

Jipok commented 1 year ago

however, running ./xbps-src pkg hipSPARSE a few times in a row seems to eventually get it working

Any technology that is sufficiently complicated is indistinguishable from magic. Complexity does not denote advancement.