berkaysynnada commented on issue #13513: URL: https://github.com/apache/datafusion/issues/13513#issuecomment-2507725495
I have applied the @blaginin suggestion: ``` berkaysahin@Berkays-MacBook-Pro wasmtest % clang --version Homebrew clang version 19.1.4 Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /opt/homebrew/Cellar/llvm/19.1.4/bin Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin23.cfg ``` @Eason0729 these are my cargo and rust versions ``` berkaysahin@Berkays-MacBook-Pro wasmtest % cargo --version cargo 1.82.0 (8f40fc59f 2024-08-21) berkaysahin@Berkays-MacBook-Pro wasmtest % rustc --version rustc 1.82.0 (f6e511eec 2024-10-15) ``` When I build with: `cargo build --target wasm32-unknown-unknown `, it successfully compiles and generates the binary. However, in the release mode: `cargo build --release --target wasm32-unknown-unknown`, ``` Compiling psm v0.1.24 Compiling arrow-ipc v53.3.0 Compiling arrow-json v53.3.0 Compiling arrow-csv v53.3.0 Compiling stacker v0.1.17 Compiling recursive v0.1.1 error: failed to build archive at `/Users/berkaysahin/Desktop/datafusion-upstream/target/wasm32-unknown-unknown/release/deps/libpsm-cc498cff4b514c30.rlib`: LLVM error: section too large The following warnings were emitted during compilation: warning: psm@0.1.24: warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: /Users/berkaysahin/Desktop/datafusion-upstream/target/wasm32-unknown-unknown/release/build/psm-d273ebae732f9287/out/libpsm_s.a the table of contents is empty (no object file members in the library define global symbols) error: could not compile `psm` (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... ``` I don't know why this still refers to Xcode path. Since wasm-pack build goes with release flag, we need to solve this (assuming I am not the only one) -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org