-
Notifications
You must be signed in to change notification settings - Fork 39
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
cannot build on opensuse #99
Comments
Dear @olesenm, we are in the process of removing support for binutils entirely due to licensing conflicts. We are currently evaluating elfutils as a replacement, but the call has yet to be made. Considering that binutils has to go imminently, we won't be releasing a new public version with this patch. However, I can suggest a couple of quick workarounds to get you going temporarily. On one hand, you can add an argument in the AX_PROG_BINUTILS macro to pass a custom bfd library name, something like: AC_ARG_WITH(bfd-lib-name, Then change the several references in this macro to libbfd.so / libbfd.a / -lbfd into the value of the variable ${bfd_lib_name}. And configure with the extra arg: --with-bfd-lib-name=bfd-2.41.0.20230908-150100.7.46 Alternatively, to avoid tweaking the sources, you could simply create a local temporary folder with softlinks to the files installed by the binutils package, following the directory structure and library naming that Extrae is expecting, for example: mkdir -p proxy-binutils/lib Then configure with --with-binutils=./proxy-binutils. With this alternative, you probably need to softlink a couple of libraries (libbfd & libiberty) and headers (bfd.h), in your proxy-binutils folder: ln -s /usr/lib64/libiberty.a proxy-binutils/lib/ Would this trick work for you? |
I will take a look at the workaround, but the timing is now a bit unfortunate at the moment (which means it won't be for a few weeks). Changing to elfutils sounds like an interesting plan - I hope that this will reduce some of the dependency and configuration problems. Please let me know (email would be best) if you have a first beta-test with elfutils that I should try to compile on my system. |
Issue reported offline to @gllort, but added here for completeness and to provide an issue number.
Building the extrae-4.0.6 release on openSUSE 15.4 fails since it is unable to properly test/find some binutils libraries, even when the corresponding devel package has been installed.
In the openSUSE install, binutils package includes these files:
The binutils-devel package includes these further files:
The configure script only respects the
--with-binutils=
option, not the--with-binutils-libs
option etc, so there is only a moderate chance to guide things.Taking a deep dig into the config scripts. The
AX_PROG_BINUTILS
macro defined in theconfig/macros.m4
file does actually go the extra distance to find odd library names:However, this is only used to establish initial success and the directory location:
Linking further on will still attempt to link against
libbfd.so
and then fail miserably.The text was updated successfully, but these errors were encountered: