Comments (2)
After a little bit of tinkering (installing rustup and rust), we ended up with this error:
error: linking with `cc` failed: exit code: 1
...
= note: /usr/bin/ld: /home/zyu/weld/weld-python/target/debug/deps/libweld-13840bb6bd71b796.rlib(llvmext.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: could not compile `weld-python`.
Caused by:
process didn't exit successfully: `rustc --crate-name weld_python --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type cdylib --emit=dep-info,link -Cbitcode-in-rlib=no -C debuginfo=2 --crate-type cdylib -C metadata=186a4106a799954a --out-dir /home/zyu/weld/weld-python/target/debug/deps -C incremental=/home/zyu/weld/weld-python/target/debug/incremental -L dependency=/home/zyu/weld/weld-python/target/debug/deps --extern libc=/home/zyu/weld/weld-python/target/debug/deps/liblibc-7f3b8e4c2db2a8d8.rlib --extern pyo3=/home/zyu/weld/weld-python/target/debug/deps/libpyo3-616294b0595564e1.rlib --extern weld=/home/zyu/weld/weld-python/target/debug/deps/libweld-13840bb6bd71b796.rlib -C link-args=-Wl,-export-dynamic -L native=/home/zyu/weld/weld-python/target/debug/build/weld-09890efcb0f540af/out -L native=/home/zyu/weld/weld-python/target/debug/build/llvm-sys-fc86408c0fa835a8/out -L native=/usr/lib64` (exit code: 1)
error: cargo failed with code: 101
During the tinkering, we also sym-linked "pyo3-pack" to "pyo3".
from weld.
I'm facing a similar issue. I'm trying to run some of the weld tests using cargo test --package weld --test binop_tests -- simple_binop --exact
but it's giving linking errors.
= note: /usr/bin/ld: /home/twitu/Code/weld/target/debug/deps/libweld-8a5fb61350185090.rlib(llvmext.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIE
I've checked the following -
Make sure llvm-config is found on $PATH and llvm-config --version gives back 5.0.0
Try adding the LLVM libraries to the LD_LIBRARY_PATH (or whatever the Fedora equivalent is)
The version of the llvm-sys crate you use must match the LLVM version you are using. Make sure you change llvm-sys = "38.0.1" to llvm-sys = "50.0.0" in Cargo.toml.
Although now it's difficult to find and install llvm 6.0.0 so instead I'm using llvm version 10.0.0 and llvm-sys version in Cargo.toml is "100.2.0". Still I don't think the linking error is because of version difference, because when I add -static
to the raw command it seems to work.
"-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/twitu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/twitu/Code/weld/target/debug/deps/binop_tests-defb0983ccab1308" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-Wl,-export-dynamic" **"-static"**
It'll be a big help if someone could share how they overcame this issue. Or how to pass the extra -static
flag through the test harness, currently I'm just adding to the raw command shown in the error. After adding -static
the command succeeds but the rest of steps for the test are no longer executed.
from weld.
Related Issues (20)
- License file in python sdists
- Weld as a Foundation for ML in Rust
- unable to import grizzly.grizzly HOT 1
- Is there any benchmark between pandas and grizzly?
- Incorrect website grizzly install command HOT 3
- "simplify_assignments" creates infinite loop with iterate
- Getting compile error: Invalid input token: 'name' HOT 3
- Error "ModuleNotFoundError: No module named 'weldarray'" when using python3. HOT 1
- Is weld still under research/development? HOT 4
- Standardizing Weld's IR code HOT 1
- An active weld community
- An IR which returns a wrong answer.
- Cannot build on aarch64 (Apple Silicon Chips)
- example udfs run error
- Using REPL for weld code using CUDFs
- Running Python UDFs in Weld.
- unique() function on weld-capi.
- movielens_grizzly.py code not working.
- Bump framework versions in Weld probe core
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weld.