-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Bug when building on void linux #4806
Comments
Is this even an LMMS issue? At what stage does it happen? (We could need the full build log) |
It happens during this command, when calling
I don't think, the rest of the generated output will help. It's basically just a list of what's compiled. |
@porky11 Could you try this patch? diff --git a/src/3rdparty/rpmalloc/CMakeLists.txt b/src/3rdparty/rpmalloc/CMakeLists.txt
index 23d1551c2..2d94bcdfd 100644
--- a/src/3rdparty/rpmalloc/CMakeLists.txt
+++ b/src/3rdparty/rpmalloc/CMakeLists.txt
@@ -1,5 +1,9 @@
set(CMAKE_C_FLAGS "-std=c11")
+if(NOT WIN32)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+endif()
+
add_library(rpmalloc STATIC
rpmalloc/rpmalloc/rpmalloc.c
rpmalloc/rpmalloc/rpmalloc.h |
I found it in the repos now, so I don't need to build it myself anymore. Not sure, why I didn't see it before. |
That does not mean that the bug is fixed. Try @PhysSong 's patch or find out how the void linux packagers did build their package. |
@devnexen Do you think this will also be fixed with the rpmalloc update? |
Even tough I would like the update not sure it is related here, seems just a linkage issue. it seems lmms cmake to build rpmalloc rather than ninja rpmalloc build system. |
From Discord by @Sawuare:
Looks like a related bug. Should I reopen this, or make a new bug report? |
I'd prefer a new issue, since this one here is really old and it's not sure how it is related. You could link this issue there. But I leave it to you. |
Almost everything works as expected, but not the linking of the executable.
The error I get is this:
The text was updated successfully, but these errors were encountered: