-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Labels
Description
Hello,
When I use CodeQL to create database, I got following error:
% codeql database create tdb --language=java
Initializing database at /Users/admin/Documents/codeql-home/repo/xxx/java-db.
Running build command: [/Users/admin/Documents/codeql-home/codeql/java/tools/autobuild.sh]
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] Build directory is .
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] [autobuild] > mvn clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] [ERROR] Spawned process exited abnormally (code 134; tried to run: [mvn, clean, package, -f, pom.xml, -B, -V, -e, -Dfindbugs.skip, -Dcheckstyle.skip, -Dpmd.skip=true, -Denforcer.skip, -Dmaven.javadoc.skip, -DskipTests, -Dmaven.test.skip.exec, -Dlicense.skip=true, -Drat.skip=true])
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] [autobuild] dyld: could not load inserted library '/Users/admin/Documents/codeql-home/codeql/tools/osx64/libtrace.dylib' because no suitable image found. Did find:
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] [autobuild] /Users/admin/Documents/codeql-home/codeql/tools/osx64/libtrace.dylib: no matching architecture in universal wrapper
[2022-01-26 21:17:40] [build-stdout] [2022-01-26 21:17:40] [autobuild] /Users/admin/Documents/codeql-home/codeql/tools/osx64/libtrace.dylib: stat() failed with errno=1
[2022-01-26 21:17:40] [ERROR] Spawned process exited abnormally (code 134; tried to run: [/Users/admin/Documents/codeql-home/codeql/tools/osx64/preload_tracer, /Users/admin/Documents/codeql-home/codeql/java/tools/autobuild.sh])
A fatal error occurred: Exit status 134 from command: [/Users/admin/Documents/codeql-home/codeql/java/tools/autobuild.sh]Version:
- codeql-cli: 2.7.6 (> 2.7.3 Tracing fails for Java builds on Mac M1 #101 )
- java: 17.0.1
- mvn: 3.8.4
- macOS: Big Sur (11.6) on M1, 2020
I changed CodeQL to Ubuntu ARM64 virtual machine (Using UTM), then the error changed to: java: Exec format error
And then I use an old macbook, finally success.
So I think the problem is M1. Can I do something to resolve this problem?