sjnewbury / rocm-bleeding-edge

Completely unofficial Gentoo ROCm support
GNU General Public License v3.0
9 stars 2 forks source link

Error while attempting to emerge sci-libs/composable_kernel-6.0.2 #2

Closed xelibrion closed 6 months ago

xelibrion commented 6 months ago

Hey @sjnewbury, thanks for working on this!

Curious if you've managed to install composable_kernel + miopen? I'm getting this error from llvm-ranlib, it seems like ar utility should be used instead - would you know if this error originates composable_kernel cmake scripts? Have you encountered this before?

[581/630] : && /usr/bin/cmake -E rm -f lib/libutility.a && /usr/lib/llvm/17/bin/llvm-ranlib qc lib/libutility.a  library/src/utility/CMakeFiles/utility.dir/device_memory.cpp.o library/src/utility/CMakeFiles/utility.dir/host_tensor.cpp.o library/src/utility/CMakeFiles/utility.dir/convolution_parameter.cpp.o && /usr/lib/llvm/17/bin/llvm-ranlib lib/libutility.a && :
FAILED: lib/libutility.a
: && /usr/bin/cmake -E rm -f lib/libutility.a && /usr/lib/llvm/17/bin/llvm-ranlib qc lib/libutility.a  library/src/utility/CMakeFiles/utility.dir/device_memory.cpp.o library/src/utility/CMakeFiles/utility.dir/host_tensor.cpp.o library/src/utility/CMakeFiles/utility.dir/convolution_parameter.cpp.o && /usr/lib/llvm/17/bin/llvm-ranlib lib/libutility.a && :
/usr/lib/llvm/17/bin/llvm-ranlib: error: unable to load 'qc': No such file or directory
xelibrion commented 6 months ago

Actually, found a culprit here https://github.com/sjnewbury/rocm-bleeding-edge/blob/master/sci-libs/composable_kernel/composable_kernel-6.0.2.ebuild#L39