Slackbot
11/24/2023, 9:06 AMdeepy
11/24/2023, 10:44 AMsysctl sysctl.proc_translated in your terminal do you get the same result?Andrea Di Menna
11/24/2023, 10:46 AM% sysctl sysctl.proc_translated
sysctl.proc_translated: 0deepy
11/24/2023, 10:49 AMSystem.getProperty("os.arch") to your debugging plugin?Andrea Di Menna
11/24/2023, 10:55 AM> Configure project :
sysctl.proc_translated: 1
aarch64deepy
11/24/2023, 11:47 AMpstree -p <pid> on the Java process and see which parent is the first to run with rosetta?
You can get the list of processes through fuser /usr/libexec/rosetta/runtimedeepy
11/24/2023, 11:51 AMAndrea Di Menna
11/24/2023, 2:24 PM% jps
49298 Jps
49231 GradleDaemon
but 49231 is not listed under fuser /usr/libexec/rosetta/runtimeAndrea Di Menna
11/24/2023, 2:25 PMgitlab-runner executable though is run with rosetta…could that be the issue?Vampire
11/24/2023, 2:45 PMJAVA_HOME environment variable is set, because if it is set, that is what is used, not the one in PATH.
You can also run with --version or --show-version to display which Java is used to run Gradle.deepy
11/24/2023, 2:47 PMVampire
11/24/2023, 2:49 PMAndrea Di Menna
11/24/2023, 2:51 PMfile $(which /usr/bin/java)
/usr/bin/java: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/java (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/java (for architecture arm64e): Mach-O 64-bit executable arm64eAndrea Di Menna
11/24/2023, 2:51 PMJAVA_HOME set
% echo $JAVA_HOMEAndrea Di Menna
11/24/2023, 2:53 PM% ./gradlew --version
------------------------------------------------------------
Gradle 8.4
------------------------------------------------------------
Build time: 2023-10-04 20:52:13 UTC
Revision: e9251e572c9bd1d01e503a0dfdf43aedaeecdc3f
Kotlin: 1.9.10
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.7 (Eclipse Adoptium 17.0.7+7)
OS: Mac OS X 13.5.2 aarch64Vampire
11/24/2023, 2:55 PMtheexecutable though is run with rosetta…could that be the issue?gitlab-runner
Andrea Di Menna
11/24/2023, 2:59 PM