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

What is needed to build? #29

Closed
Moelf opened this issue Jul 12, 2020 · 4 comments
Closed

What is needed to build? #29

Moelf opened this issue Jul 12, 2020 · 4 comments
Labels
bug Something isn't working upstream

Comments

@Moelf
Copy link

Moelf commented Jul 12, 2020

Initially I was prompted no HSA lib, so I installed https://aur.archlinux.org/packages/hsa-rocr/, then

(@v1.4) pkg> build AMDGPU
   Building AMDGPU → `~/.julia/packages/AMDGPU/6zgIY/deps/build.log`
┌ Error: Error building `AMDGPU`:
│ [ Info: libhsa-runtime64.so: true
│ ERROR: LoadError: LoadError: could not load library "/opt/rocm/hsa/lib/libhsa-runtime64.so"
│ /home/akako/Downloads/julia-1.4.1/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /opt/rocm/hsa/lib/libhsa-runtime64.so)
│ Stacktrace:
@jpsamaroo
Copy link
Member

Appears to be related to JuliaGL/GLFW.jl#198

Can you try removing Julia's libstdc++.so and see if that fixes it?

@jpsamaroo jpsamaroo added bug Something isn't working upstream labels Jul 12, 2020
@Moelf
Copy link
Author

Moelf commented Jul 12, 2020

umm, that seems to be a step in the right direction but then:

(@v1.4) pkg> build AMDGPU
   Building AMDGPU → `~/.julia/packages/AMDGPU/6zgIY/deps/build.log`
┌ Error: Error building `AMDGPU`:
│ paths = ["/opt/rocm/hsa/lib"]
│ Couldn't find ld.lld.
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

@jpsamaroo
Copy link
Member

That's because you need to have ld.lld installed on your system. It's not built by Julia, so it currently needs to be installed by the user. #27 is the issue to watch for that. If you can install it manually for now, that should get you further and probably get the package loading.

@Moelf
Copy link
Author

Moelf commented Jul 14, 2020

ok, install lld make it build at least, with:

│ Could not find library 'rocblas'.
│ Could not find library 'rocsparse'.
│ Could not find library 'rocalution'.
│ Could not find library 'rocfft'.
│ Could not find library 'rocrand'.
│ Could not find library 'MIOpen'.
│
│ ROCArrays.jl has been built successfully, but there were warnings.
│ Some functionality may be unavailable.

I guess more packages to manually install ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants