Skip to content

Tracing fails for Java builds on Mac M1 #101

Description

@wyu0hop

hello,i try to use "codeql database create ./test_java --language=java" to build database,but it have errors,like:

[2021-12-14 17:20:41] [build-stderr] dyld[4883]: terminating because inserted dylib '/Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/tools/osx64/libtrace.dylib' could not be loaded: tried: '/Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/tools/osx64/libtrace.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libtrace.dylib' (no such file), '/usr/lib/libtrace.dylib' (no such file)
[2021-12-14 17:20:41] [build-stderr] dyld[4883]: tried: '/Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/tools/osx64/libtrace.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libtrace.dylib' (no such file), '/usr/lib/libtrace.dylib' (no such file)
[2021-12-14 17:20:41] [build-stderr] /Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/java/tools/autobuild.sh: line 7:  4883 Abort trap: 6           "${CODEQL_JAVA_HOME}/bin/java" -jar "$CODEQL_EXTRACTOR_JAVA_ROOT/tools/autobuild-fat.jar" autoBuild --no-indexing
[2021-12-14 17:20:41] [ERROR] Spawned process exited abnormally (code 134; tried to run: [/Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/tools/osx64/preload_tracer, /Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/java/tools/autobuild.sh])
A fatal error occurred: Exit status 134 from command: [/Users/xxxxxx/Desktop/learning/codeql/codeql-home/codeql/java/tools/autobuild.sh]

should i rebuild codeql on mac m1?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions