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
Fedora 20, build fails, /usr/bin/dtrace invalid option, libuv #1276
Comments
Looks like a libuv issue: joyent/libuv#1478 |
@justinmk I went into ".deps/build/src/libuv" and edited "Makefile.am" at line 315-316:
Removing the '-xnolibs' option allows it to build and confirmed the program runs. |
Per joyent/libuv#1478 (comment) , we may just want to disable dtrace probes in cmake altogether. Also, joyent/libuv#1478 (comment) indicates that Fedora removes this already, maybe if you upgrade Fedora the problem will go away? |
I'm not familiar with how cmake pulls in the ".deps", but I think that would be the best route. Maybe run a script on the makefile in the configure that removes the '-xnolibs' reference for those on Linux. The joyent/libuv#1478 (comment) @nalimilan mentioned:
|
Perhaps this patch would do it? diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
index 793be31..f0a83bf 100644
--- a/third-party/CMakeLists.txt
+++ b/third-party/CMakeLists.txt
@@ -78,7 +78,7 @@ if(USE_BUNDLED_LIBUV)
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/DownloadAndExtractFile.cmake
CONFIGURE_COMMAND sh ${DEPS_BUILD_DIR}/src/libuv/autogen.sh &&
${DEPS_BUILD_DIR}/src/libuv/configure --with-pic --disable-shared
- --prefix=${DEPS_INSTALL_DIR} CC=${DEPS_C_COMPILER}
+ --disable-dtrace --prefix=${DEPS_INSTALL_DIR} CC=${DEPS_C_COMPILER}
INSTALL_COMMAND ${MAKE_PRG} install)
list(APPEND THIRD_PARTY_DEPS libuv)
endif() |
I should add that I'd rather not disable dtrace completely--it can be a useful diagnostic tool. Perhaps we could detect the version of dtrace and filter out |
Can confirm that the patch from @jszakmeister does workaround the problem. I was able to install in Fedora 20 after manually applying the patch in linuxbrew's debug mode. |
Can confirm this is also a problem in Fedora 19. Looks like the systemtap-sdt-devel package entered stable on 2014/10/08. |
Looks like joyent/libuv#1478 is getting mired in a philosophical debate, so we'll probably need to patch around this ourselves. |
Fixed by libuv/libuv#3 . When we update to that version of libuv we can close this. |
I assume this can be closed |
Sure can. Thanks. |
Trying to build on Fedora 20 and I have all the buildeps and running:
Generates build error:
What could the problem be and how can I solve this?
Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: