mlua-rs / luajit-src-rs Goto Github PK
View Code? Open in Web Editor NEWSource code and logic to build LuaJIT 2.1 for Rust
License: MIT License
Source code and logic to build LuaJIT 2.1 for Rust
License: MIT License
Any chance of getting LuaJIT 2.0.5 support in here? It's important since it's many distro's only LuaJIT package, and for example Neovim is often compiled against it.
See also mlua-rs/mlua#3 โ which may be resolved this way. I'm not quite sure.
Building a project with mlua
and features lua53 or lua51 works using the lua-src
crate, but trying to build with feature luajit and this crate does not. I get an error like this:
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.1jamrr715kci3fb6.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.296io64yhet1xmjg.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.2d8k53aan0xtf41w.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.2ia4cxoxbdhbv6j4.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.2wf3744aipaln02j.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.2x63lbrbhnalnbz4.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.33c4401qnwmnjssf.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.3jk5kdxci45yo0gj.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.41vkdig5mdoy07nk.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.4v8cpz47cbq3jxek.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.4vt5nuhjt1j3fq9n.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.51mr0280kgg7zoo4.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.5gqk3g755e0pr1nx.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.jvyr9b47hnxdja4.rcgu.o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.lfla843gkx79a0f.rcgu.o" "-o" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libvim_pandoc_syntax.so" "-Wl,--version-script=/tmp/caleb/rustc7bu8kQ/list" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/vim_pandoc_syntax.2sjaama5ev32rd1y.rcgu.o" "-Wl,--gc-sections" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps" "-L" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/build/mlua-de2b77188f8c056d/out/luajit-build/lib" "-L" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libpulldown_cmark-2347273ca6b79fbe.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libunicase-e4f2acae907f8c47.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libbitflags-a6e5878a6a3555cd.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libmlua-5ad1d47823045521.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/liblazy_static-a96863eb0b661484.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libnum_traits-04ca16c3bb82f785.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libbstr-3ce4bb52a63769b4.rlib" "/home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libmemchr-b61fe37ddc05f862.rlib" "-Wl,--start-group" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-3f8f7cbb9556328e.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-7dec192292109f2d.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e2bf502c8be6368d.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-3d8df0276147a2f4.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-6ed8fa75edbdecbd.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-8758402ed753029d.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-05fddadbc481caca.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-c2a598d63aa8e146.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-b1749d239d4e3640.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-388faa02be1a566c.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-44d44639370b80e6.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-cfb14cfded8b973d.rlib" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-d2614ce90d9ff336.rlib" "-Wl,--end-group" "/home/caleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b70b08128de69c00.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-shared"
= note: /usr/bin/ld: /home/caleb/projects/vim-pandoc/vim-pandoc-syntax/target/debug/deps/libmlua-5ad1d47823045521.rlib(lj_err.o): relocation R_X86_64_TPOFF32 against `static_uex' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
error: aborting due to previous error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.