Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Looks like the JNI/native-lib loader test cases needs some work for arm64, which makes sense.
[INFO] ----------< org.apache.nifi:nifi-framework-nar-loading-utils >---------- [INFO] Building nifi-framework-nar-loading-utils 1.16.0-SNAPSHOT [94/642] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-maven-version) @ nifi-framework-nar-loading-utils --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-java-version) @ nifi-framework-nar-loading-utils --- [INFO] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ nifi-framework-nar-loading-utils --- [INFO] [INFO] --- maven-remote-resources-plugin:1.7.0:process (process-resource-bundles) @ nifi-framework-nar-loading-utils --- [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [INFO] Copying 3 resources from 1 bundle. [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ nifi-framework-nar-loading-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] skip non existing resourceDirectory /Users/kdoran/dev/code/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-nar-loading-utils/src/main/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.9.0:compile (default-compile) @ nifi-framework-nar-loading-utils --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ nifi-framework-nar-loading-utils --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 19 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.9.0:testCompile (default-testCompile) @ nifi-framework-nar-loading-utils --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-compiler-plugin:3.9.0:testCompile (groovy-tests) @ nifi-framework-nar-loading-utils --- [INFO] Changes detected - recompiling the module! [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ nifi-framework-nar-loading-utils --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.101 s <<< FAILURE! - in org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty [ERROR] org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty.testLoadSameLibraryBy2InstanceClassLoadersFromSystemProperty Time elapsed: 0.066 s <<< ERROR! java.lang.UnsatisfiedLinkError: /private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/901ce22d-a226-479b-baa1-b08aace5ec73_6588104464077247053_testjni: dlopen(/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/901ce22d-a226-479b-baa1-b08aace5ec73_6588104464077247053_testjni, 0x0001): tried: '/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/901ce22d-a226-479b-baa1-b08aace5ec73_6588104464077247053_testjni' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/901ce22d-a226-479b-baa1-b08aace5ec73_6588104464077247053_testjni' (no such file) at org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty.testLoadSameLibraryBy2InstanceClassLoadersFromSystemProperty(TestLoadNativeLibViaSystemProperty.java:139) [ERROR] org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty.testLoadSameLibraryByNarClassLoaderFromSystemProperty Time elapsed: 0.021 s <<< ERROR! java.lang.UnsatisfiedLinkError: /private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_without_native_lib-1-1.0.nar-unpacked_7297978890074099742_testjni: dlopen(/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_without_native_lib-1-1.0.nar-unpacked_7297978890074099742_testjni, 0x0001): tried: '/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_without_native_lib-1-1.0.nar-unpacked_7297978890074099742_testjni' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/nifi-nar_without_native_lib-1-1.0.nar-unpacked_7297978890074099742_testjni' (no such file) at org.apache.nifi.nar.TestLoadNativeLibViaSystemProperty.testLoadSameLibraryByNarClassLoaderFromSystemProperty(TestLoadNativeLibViaSystemProperty.java:97) [INFO] Running org.apache.nifi.nar.TestNarLoader [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 s - in org.apache.nifi.nar.TestNarLoader [INFO] Running org.apache.nifi.nar.TestLoadNativeLibFromNar [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.049 s <<< FAILURE! - in org.apache.nifi.nar.TestLoadNativeLibFromNar [ERROR] org.apache.nifi.nar.TestLoadNativeLibFromNar.testLoadSameLibraryFromBy2NarClassLoadersFromNar Time elapsed: 0.025 s <<< ERROR! java.lang.UnsatisfiedLinkError: /private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_with_native_lib-2-1.0.nar-unpacked_2951400871130267612_testjni: dlopen(/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_with_native_lib-2-1.0.nar-unpacked_2951400871130267612_testjni, 0x0001): tried: '/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/nifi-nar_with_native_lib-2-1.0.nar-unpacked_2951400871130267612_testjni' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/nifi-nar_with_native_lib-2-1.0.nar-unpacked_2951400871130267612_testjni' (no such file) at org.apache.nifi.nar.TestLoadNativeLibFromNar.testLoadSameLibraryFromBy2NarClassLoadersFromNar(TestLoadNativeLibFromNar.java:82) [ERROR] org.apache.nifi.nar.TestLoadNativeLibFromNar.testLoadSameLibraryBy2InstanceClassLoadersFromNar Time elapsed: 0.023 s <<< ERROR! java.lang.UnsatisfiedLinkError: /private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/dd96bf4b-07b5-48a9-9d2e-676c6fa7a526_8669337063245139187_testjni: dlopen(/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/dd96bf4b-07b5-48a9-9d2e-676c6fa7a526_8669337063245139187_testjni, 0x0001): tried: '/private/var/folders/dj/1c85sd0d6dvcp1fltmwr5nl40000gn/T/dd96bf4b-07b5-48a9-9d2e-676c6fa7a526_8669337063245139187_testjni' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/dd96bf4b-07b5-48a9-9d2e-676c6fa7a526_8669337063245139187_testjni' (no such file) at org.apache.nifi.nar.TestLoadNativeLibFromNar.testLoadSameLibraryBy2InstanceClassLoadersFromNar(TestLoadNativeLibFromNar.java:124) [INFO] Running org.apache.nifi.nar.TestPropertyBasedNarProviderInitializationContext [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.307 s - in org.apache.nifi.nar.TestPropertyBasedNarProviderInitializationContext [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] TestLoadNativeLibFromNar.testLoadSameLibraryBy2InstanceClassLoadersFromNar:124 » UnsatisfiedLink [ERROR] TestLoadNativeLibFromNar.testLoadSameLibraryFromBy2NarClassLoadersFromNar:82 » UnsatisfiedLink [ERROR] TestLoadNativeLibViaSystemProperty.testLoadSameLibraryBy2InstanceClassLoadersFromSystemProperty:139 » UnsatisfiedLink [ERROR] TestLoadNativeLibViaSystemProperty.testLoadSameLibraryByNarClassLoaderFromSystemProperty:97 » UnsatisfiedLink [INFO] [ERROR] Tests run: 10, Failures: 0, Errors: 4, Skipped: 0
Attachments
Issue Links
- links to