You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered this problem too when following the instructions in DEVELOPMENT.md.
There is a recent open issue in tov/libffi-rs where @arihant2math and one other user mentioned they could help maintain the library, so a long-term fix here could be on the way.
My compilation error
error: linking with `cc` failed: exit status: 1
|
= note: "cc""-m64""/tmp/rustcIwceHV/symbols.o""<621 object files omitted>""-Wl,--as-needed""-Wl,-Bstatic""<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libcompiler_builtins-*}.rlib""-Wl,-Bdynamic""-lc""-ldl""-lffi""-lgcc_s""-lutil""-lrt""-lpthread""-lm""-ldl""-lc""-Wl,--eh-frame-hdr""-Wl,-z,noexecstack""-L""<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib""-o""/home/jackoconnordev/Code/open-source/RustPython/target/release/deps/rustpython-87f0c4e46fc367e7""-Wl,--gc-sections""-pie""-Wl,-z,relro,-z,now""-Wl,-O1""-Wl,--strip-debug""-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: /usr/bin/ld: cannot find -lffi: No such file or directory
collect2: error: ld returned 1 exit status
Summary
The
libffi
dependency inside therustpython-jit
crate, fails to compile on newer compilers like those on Archlinux.Expected
Compilation of
rustpython-jit
suceedsActual
error:
Python Documentation
N/A
Program versions/System info
gcc (GCC) 14.1.1 20240522
clang version 17.0.6
Linux desktop 6.6.14-gnu-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 31 Jan 2024 02:02:54 +0000 x86_64 GNU/Linux
Solution
Replace libffi dependency with version specifying
system
version of libffi.Like so:
The downside is the user would need libffi installed on their system, but at least this issue would go.
Alternate solution
clearly this does not work:
tov/libffi-rs@ce05302
So we could get upstream to fix it on their bundled version of libffi.
The text was updated successfully, but these errors were encountered: