andygrove opened a new issue, #1158: URL: https://github.com/apache/datafusion-comet/issues/1158
### Describe the bug A user reported the following issue in Discord (https://discord.com/channels/885562378132000778/1232056620440354846/1315968599533555722). ``` ➜ T java --version java 17.0.12 2024-07-16 LTS Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286) Java HotSpot(TM) 64-Bit Server VM (build 17.0.12+8-LTS-286, mixed mode, sharing) ➜ T which java /usr/bin/java ➜ T file $(which java) /usr/bin/java: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e] /usr/bin/java (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/java (for architecture arm64e): Mach-O 64-bit executable arm64e ➜ T ``` when i ran make command it ran successfully, even when i provided the "profiles" it ran successfully but, now when i am trying to run select 1 + 1 in comet ``` > select 1 + 1; 24/12/10 14:34:56 WARN NativeBase: Failed to load comet library java.lang.UnsatisfiedLinkError: /private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib: dlopen(/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib, 0x0001): tried: '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (no such file), '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394) at java.base/java.lang.Runtime.load0(Runtime.java:755) at java.base/java.lang.System.load(System.java:1957) at org.apache.comet.NativeBase.bundleLoadLibrary(NativeBase.java:129) at org.apache.comet.NativeBase.load(NativeBase.java:97) at org.apache.comet.NativeBase.<clinit>(NativeBase.java:54) at org.apache.comet.CometSparkSessionExtensions$.isCometEnabled(CometSparkSessionExtensions.scala:1141) at org.apache.comet.CometSparkSessionExtensions$CometScanRule.apply(CometSparkSessionExtensions.scala:94) at org.apache.comet.CometSparkSessionExtensions$CometScanRule.apply(CometSparkSessionExtensions.scala:92) at org.apache.spark.sql.execution.ApplyColumnarRulesAndInsertTransitions.$anonfun$apply$1(Columnar.scala:530) at org.apache.spark.sql.execution.ApplyColumnarRulesAndInsertTransitions.$anonfun$apply$1$adapted(Columnar.scala:530) ... at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Failed to load comet library: /private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib: dlopen(/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib, 0x0001): tried: '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (no such file), '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')) 24/12/10 14:34:56 WARN CometSparkSessionExtensions: Comet extension is disabled because of error when loading native lib. Falling back to Spark java.lang.UnsatisfiedLinkError: /private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib: dlopen(/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib, 0x0001): tried: '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (no such file), '/private/var/folders/w_/tskg2p0s0mq50q5whsb53nn80000gn/T/libcomet-7414670061059699037.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) ``` ### Steps to reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
