I've been trying to pick up where @saitam work in building ROCm for solus. I've mostly had luck but as of yet I haven't been able to find a way around the permission error when building findlib. The current package.yml can be found here and the specific error is below:
+ make -j24 install DESTDIR=/home/build/YPKG/root/findlib/install
mkdir -p "usr/bin"
mkdir -p "usr/share/man"
make install-config
make[1]: Entering directory '/home/build/YPKG/root/findlib/build/findlib-1.8.1'
mkdir -p "`dirname \"/etc/findlib/findlib.conf\"`"
mkdir: cannot create directory ‘/etc/findlib’: Permission denied
make[1]: *** [Makefile:97: install-config] Error 1
make[1]: Leaving directory '/home/build/YPKG/root/findlib/build/findlib-1.8.1'
make: *** [Makefile:22: install] Error 2
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-installSG_JLM']' returned non-zero exit status 2
[Build] install failed
The only thing I was able to find is that permission errors are usually due to running configure without specifying the --prefix option. Attempting to either use the %configure macro or manually adding --prefix as %PREFIX% wasn't working due to the findlib configure being non-standard as far as I could tell. For reference the output of ./configure -h is also posted below:
usage: configure [options]
-bindir path where binaries are installed
-mandir path where manual pages are installed
-sitelib path set the location of the site-specific packages
-config path set the location of the configuration file
-no-custom don't link in custom runtime mode
-system <systype> override system type (esp. mingw and win32)
-with-toolbox also build the toolbox
-no-topfind don't install topfind script into stdlib directory
-no-camlp4 don't install the camlp4 META file
Any assistance would be greatly appreciated! Hopefully if I haven't missed anything on the other libraries I will be ready to try building ROCm-OpenCL-Runtime and test if I can at least get OpenCL tests to run.