-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Why does lua/5.4.6
conflict with luajit/2.1.0-beta3
?
#26456
Comments
lua/5.4.6
conflicts with luajit/2.1.0-beta3
lua/5.4.6
conflict with luajit/2.1.0-beta3
?
Hi @YesserLab Thanks for your question. |
they seem to provide the exact same header files - by means of https://github.com/zarvox/conan-center-index/blob/677e5dc289f85d80c5d7fffd668a6c0b2167a0bb/recipes/luajit/all/conanfile.py#L141-L142, and the libraries have the same symbols, so if both are present in the dependency graph it will be undetermined which the compiler picks (in the sense that it will depend on the order of the |
Thank you guys for the speedy reply 🙏 @jcar87 The headers of the JIT live in a subdir, so inclusion is not going to be ambiguous, observing: That said, I see your point about the symbols. In my project we build a whole root-filesystem tree, using conan to build and install the libraries used as dependencies. This leaves the burden of correct choice of libraries to link to our build system, in which the user must name the shared/static libraries to be used for linking. In other words, our packages must explicitly choose Lua XOR LuaJIT to link against, and conan doesn't have to worry about it 🙂 Having said that, the only potential for collision is when two libraries produce files with the same name on the tree. So the "updated" question is: Is there a way to achieve what we are doing ? or workaround the conflict ? EDIT: I forgot to mention that conan is configured to build everything into static libraries so linking is really not a problem for it Example rootfs tree:
|
Environment
OS: macOS (arm64)
Compiler: clang-18
Conan: v2.11.0
What is your question?
I'm building complex project with multiple libraries, where:
lua/5.4.6
)lua/5.4.6
luajit/2.1.0-beta3
When installing those packages using this conanfile:
I get the error:
I don't quite understand why there should a conflict between
lua
andluajit
.They provide different libraries, headers, and binaries. I suppose that it's up-to the project to decide what to link against.
Additionally,
sol2
is a header only library, with guards and macros to define which lua to use. So I'm guessing it shouldn't be the problem.Am I missing something here ?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: