Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant't build #1

Closed
Jipok opened this issue Sep 1, 2023 · 6 comments
Closed

Cant't build #1

Jipok opened this issue Sep 1, 2023 · 6 comments

Comments

@Jipok
Copy link

Jipok commented Sep 1, 2023

./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
Copy link
Owner

@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
Copy link
Author

Jipok commented Sep 2, 2023

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
Copy link
Author

Jipok commented Sep 2, 2023

./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
Copy link
Author

Jipok commented Sep 2, 2023

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

@rederick29
Copy link
Owner

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
Copy link
Author

Jipok commented Sep 2, 2023

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.

@Jipok Jipok closed this as completed Sep 2, 2023
rederick29 pushed a commit that referenced this issue Dec 16, 2023
Fixes void-linux#47514.

Previously, booting with earlyprintk=ttySO showed the cause:

No EFI environment detected.
early console in extract_kernel
input_data: 0x02004094
input_len: 0x00a8b825
output: 0x01000000
output_len: 0x018f19d0
kernel_total_size: 0x01aaf000
needed_size: 0x01aaf000
Physical KASLR using RDTSC...

Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel (entry_offset: 0x00000080).
Poking KASLR using RDTSC...
[    0.593769] kernel BUG at arch/x86/mm/physaddr.c:81!
[    0.594640] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[    0.594772] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.6.4_1 #1
[    0.594865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org 04/01/2014
[    0.595028] EIP: __phys_addr+0x78/0x84
[    0.595450] Code: 75 fc 89 ec 5d e9 cc f8 ab 00 8d b4 26 00 00 00 00 90 0f 0b 8d b6 00 00 00 00 e8 bf 23 29 00 84 c0 74 b8 0f 0b 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b 66 90 3e 8d 74 26 00 3d ff ff ff bf
[    0.595718] EAX: fffff000 EBX: f7318000 ECX: 00000000 EDX: ffffffff
[    0.595768] ESI: 37318000 EDI: f7318000 EBP: cf405f3c ESP: cf405f34
[    0.595815] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00200086
[    0.595876] CR0: 80050033 CR2: ffbff000 CR3: 0f7b4000 CR4: 000000b
[    0.595979] Call Trace:
[    0.596580]  ? show_regs+0x56/0x64
[    0.596663]  ? die+0x34/0x90
[    0.596692]  ? ftrace_dump+0x30c/0x30c
[    0.596723]  ? do_trap+0xcc/0x154
[    0.596748]  ? notify_die+0x56/0x74
[    0.596792]  ? do_error_trap+0x69/0x84
[    0.596821]  ? __phys_addr+0x78/0x84
[    0.596848]  ? exc_overflow+0x54/0x54
[    0.596877]  ? exc_invalid_op+0x5d/0x74
[    0.596905]  ? __phys_addr+0x78/0x84
[    0.596932]  ? handle_exception+0x133/0x133
[    0.596985]  ? exc_overflow+0x54/0x54
[    0.597013]  ? __phys_addr+0x78/0x84
[    0.597042]  ? exc_overflow+0x54/0x54
[    0.597068]  ? __phys_addr+0x78/0x84
[    0.597104]  kfence_init+0xce/0xe4
[    0.597198]  start_kernel+0x4b1/0xba8
[    0.597237]  i386_start_kernel+0x48/0x48
[    0.597266]  startup_32_smp+0x156/0x158
[    0.597393] Modules linked in:
[    0.597835] ---[ end trace 0000000000000000 ]---
[    0.597896] EIP: __phys_addr+0x78/0x84
[    0.597931] Code: 75 fc 89 ec 5d e9 cc f8 ab 00 8d b4 26 00 00 00 00 90 0f 0b 8d b6 00 00 00 00 e8 bf 23 29 00 84 c0 74 b8 0f 0b 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b 66 90 3e 8d 74 26 00 3d ff ff ff bf
[    0.598020] EAX: fffff000 EBX: f7318000 ECX: 00000000 EDX: ffffffff
[    0.598055] ESI: 37318000 EDI: f7318000 EBP: cf405f3c ESP: cf405f34
[    0.598088] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00200086
[    0.598125] CR0: 80050033 CR2: ffbff000 CR3: 0f7b4000 CR4: 000000b
[    0.598271] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.598705] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants