I am trying to install an AUR package
I get the following problem, I think it’s a permissions problem.
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.6.4/userguide/gradle_daemon.html
Process command line: /usr/lib/jvm/java-11-openjdk/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/user/.gradle/wrapper/dists/gradle-5.6.4-all/ankdp27end7byghfw1q2sw75f/gradle-5.6.4/lib/gradle-launcher-5.6.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.6.4
Please read the following process output to find out more:
-----------------------
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ClassLoaderRegistry using GlobalScopeServices.createClassLoaderRegistry().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
==> ERROR: A failure occurred in build().
Aborting...
I think there is nothing wrong with the package (bisq), but I tried hardening my system and I think this is one of the problems I ran into because the package needs to be built.
I think it has something to do with my permissions somewhere, also my /var is on a (moderate) restricted partition.
I also think the solution is this:
“Try setting your GRADLE_USER_HOME variable to a folder where you have valid access. Then this error will go away.”
Why do you mount it as an ext4?
My Manjaro has this when looking with mount:
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,size=16369472k,nr_inodes=4092368,mode=755,inode64)
PS: without any config in fstab for this…
Also the output in your pastebin does not show the lines in the OP, and neither the output using the suggested flags to show what it is complaining about exactly.
Without enough info, no one will be able to troubleshoot together with you, or even give helpful feedback…
An AUR package is basically just a recipe to build something, so you should be able to perform all of it’s steps manually via a terminal.
Check it’s PKGBUILD for what it is scripted to do.
Also the output in your pastebin does not show the lines in the OP, and neither the output using the suggested flags to show what it is complaining about exactly.
I pasted the output from pamac after I tried to build it again. this is all the info I have.
I would suggest you to read Creating packages - ArchWiki, to understand how that process works.
After that perform the actions needed according to the PKGBUILD manually.
From there on you should be able to troubleshoot further using the suggested options for the Gradle build, which should give you enough info on why it is failing.
Because as you said the problem you’re facing is because: