← All tasks
javabytedeco/javacpp #347Not a task: not reproduced

JavaCPP fails tests on ARM64

envgap__bytedeco__javacpp-347

01 / FAILURE SIGNATURE

As reported upstream

[ERROR] The following builds failed:
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
f75ae1847e766e31cd5f14bc89db553297243eef
Manifest
src/it/osgi/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

bytedeco/javacpp #347 · read the original issue
Trying to build on ARM64



Note the x86_64 in the error log ...

Native library not found in JAR: org/bytedeco/javacpp/test/osgi/linux-x86_64/libjniCalc.so

Below



Note (2) a quick look around reveals libjniCalc.so on...

./target/integration-test/projects/osgi/target/classes/org/bytedeco/javacpp/test/osgi/linux-arm64/libjniCalc.so



Edited src/it/osgi/pom.xml and changed the path - build worked (hackety, hack, hack(



===== Log =====



[INFO] [INFO] ------------------< org.bytedeco:javacpp-tests-osgi >-------------------

[INFO] [INFO] Building JavaCPP OSGi Tests 1.5.2-SNAPSHOT

[INFO] [INFO] --------------------------------[ jar ]---------------------------------

[INFO] [INFO]

[INFO] [INFO] --- javacpp:1.5.2-SNAPSHOT:build (javacpp.parser) @ javacpp-tests-osgi ---

[INFO] [WARNING] No classes found in package org.bytedeco.javacpp.test.osgi

[INFO] [INFO] Detected platform "linux-arm64"

[INFO] [INFO] Building for platform "linux-arm64"

[INFO] [INFO]

[INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javacpp-tests-osgi ---

[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] [INFO] skip non existing resourceDirectory /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/src/main/resources

[INFO] [INFO]

[INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ javacpp-tests-osgi ---

[INFO] [INFO] Changes detected - recompiling the module!

[INFO] [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

[INFO] [INFO] Compiling 2 source files to /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes

[INFO] [INFO]

[INFO] [INFO] --- javacpp:1.5.2-SNAPSHOT:build (javacpp.compiler) @ javacpp-tests-osgi ---

[INFO] [INFO] Detected platform "linux-arm64"

[INFO] [INFO] Building for platform "linux-arm64"

[INFO] [WARNING] Could not load platform properties for class org.bytedeco.javacpp.test.osgi.JavaCPPOsgiTest

[INFO] [INFO] Generating /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/jnijavacpp.cpp

[INFO] [INFO] Generating /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/org/bytedeco/javacpp/test/osgi/jniCalc.cpp

[INFO] [INFO] Compiling /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/org/bytedeco/javacpp/test/osgi/linux-arm64/libjniCalc.so

[INFO] [INFO] g++ -I/home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/src/main/c -I/usr/lib/jvm/java-8-openjdk-arm64/include -I/usr/lib/jvm/java-8-openjdk-arm64/include/linux /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/org/bytedeco/javacpp/test/osgi/jniCalc.cpp /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/jnijavacpp.cpp -O3 -s -Wl,-rpath,$ORIGIN/ -Wl,-z,noexecstack -Wl,-Bsymbolic -Wall -fPIC -pthread -shared -o libjniCalc.so

[INFO] [INFO] Deleting /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/org/bytedeco/javacpp/test/osgi/jniCalc.cpp

[INFO] [INFO] Deleting /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/target/classes/jnijavacpp.cpp

[INFO] [INFO]

[INFO] [INFO] --- bnd-maven-plugin:4.2.0:bnd-process (default) @ javacpp-tests-osgi ---

[INFO] [ERROR] /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/pom.xml [0:0]: Native library not found in JAR: org/bytedeco/javacpp/test/osgi/linux-x86_64/libjniCalc.so

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] BUILD FAILURE

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] Total time:  11.117 s

[INFO] [INFO] Finished at: 2019-10-03T16:19:18+01:00

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:4.2.0:bnd-process (default) on project javacpp-tests-osgi: Native library not found in JAR: org/bytedeco/javacpp/test/osgi/linux-x86_64/libjniCalc.so -> [Help 1]

[INFO] [ERROR]

[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.

[INFO] [ERROR]

[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:

[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[INFO]   The build exited with code 1. See /home/simon/src/jcpp/master/javacpp/target/integration-test/projects/osgi/build.log for details.

[INFO]           osgi/pom.xml ..................................... FAILED (15.2 s)

[INFO] -------------------------------------------------

[INFO] Build Summary:

[INFO]   Passed: 0, Failed: 1, Errors: 0, Skipped: 0

[INFO] -------------------------------------------------

[ERROR] The following builds failed:

[ERROR] *  osgi/pom.xml

[INFO] -------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  02:07 min

[INFO] Finished at: 2019-10-03T16:19:18+01:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.2.0:run (integration-test) on project javacpp: 1 build failed. See console output above for details. -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]