You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Larry White (Jira)" <ji...@apache.org> on 2022/05/06 13:48:00 UTC
[jira] [Created] (ARROW-16493) Documented Java build process for native code fails on Apple M1 hardware
Larry White created ARROW-16493:
-----------------------------------
Summary: Documented Java build process for native code fails on Apple M1 hardware
Key: ARROW-16493
URL: https://issues.apache.org/jira/browse/ARROW-16493
Project: Apache Arrow
Issue Type: Bug
Components: Java
Affects Versions: 8.0.0
Environment: Apple MacBook Pro M1 hardware
OSX Monterey 12.2.1
Reporter: Larry White
Attachments: errors.txt
A warning occurs while linking files in C Data Interface:
{{{{[100%] *Linking CXX shared library libarrow_cdata_jni.dylib*}}}}
{{{{}}}}
{{{{ld: warning: ignoring file /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/lib/server/libjvm.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64}}}}
Followed by numerous test failures later in the process, for example:
{{{}[ERROR] Tests run: 45, Failures: 0, Errors: 45, Skipped: 0, Time elapsed: 0.725 s <<< FAILURE! - in org.apache.arrow.c.RoundtripTest{}}}{{{}[ERROR] testUInt8Vector Time elapsed: 0.054 s <<< ERROR!{}}}{{{}java.lang.ExceptionInInitializerError{}}}{{{}at org.apache.arrow.c.RoundtripTest.vectorRoundtrip(RoundtripTest.java:129){}}}{{{}at org.apache.arrow.c.RoundtripTest.roundtrip(RoundtripTest.java:155){}}}{{{}at org.apache.arrow.c.RoundtripTest.testUInt8Vector(RoundtripTest.java:463){}}}{{{}*Caused by: java.lang.IllegalStateException: error loading native libraries: java.io.FileNotFoundException: libarrow_cdata_jni.dylib* {}}}{{{}at org.apache.arrow.c.RoundtripTest.vectorRoundtrip(RoundtripTest.java:129){}}}{{{}at org.apache.arrow.c.RoundtripTest.roundtrip(RoundtripTest.java:155){}}}{{{}at org.apache.arrow.c.RoundtripTest.testUInt8Vector(RoundtripTest.java:463){}}}
{{Steps to reproduce: }}
{{On Apple M1 hardware, follow the build instructions at [https://arrow.apache.org/docs/dev/developers/java/building.html] }}
{{{}Follow instructions to build the C Data interface. (warning occurs){}}}{{{}{}}}
{{Continue to follow instructions to build remaining JNI interfaces. (test failures occur). }}{{}}
{{Note that the file that cannot be found is the same file being linked when the earlier warning occurs.}}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)