Linux - Fail to install binutils 2.45 on AlmaLinux 9.5 #6420
-
Additional Info
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is an issue with building gprofng. Homebrew's compiler shim strips out the include path for brew tap --force homebrew/core
brew edit binutils # apply the patch below
HOMEBREW_NO_INSTALL_FROM_API=1 brew install binutils --- a/Formula/b/binutils.rb
+++ b/Formula/b/binutils.rb
@@ -34,6 +34,7 @@ class Binutils < Formula
# Workaround https://sourceware.org/bugzilla/show_bug.cgi?id=28909
touch "gas/doc/.dirstamp", mtime: Time.utc(2022, 1, 1)
make_args = OS.mac? ? [] : ["MAKEINFO=true"] # for gprofng
+ inreplace "gprofng/configure", "enable_gprofng_jp=yes", "enable_gprofng_jp="
args = [
"--disable-debug", Alternatively, if you don't need gprofng at all, you can also choose to apply the following instead: --- a/Formula/b/binutils.rb
+++ b/Formula/b/binutils.rb
@@ -51,6 +51,7 @@ class Binutils < Formula
"--with-system-zlib",
"--with-zstd",
"--disable-nls",
+ "--disable-gprofng",
]
system "./configure", *args
system "make", *make_args |
Beta Was this translation helpful? Give feedback.
-
Thanks! I applied the 1st option and it worked. |
Beta Was this translation helpful? Give feedback.
This is an issue with building gprofng. Homebrew's compiler shim strips out the include path for
jni.h
because it doesn't like to use system dependencies. Since it doesn't seem like there is an option to disable gprofng's Java profiling feature, please try this as a workaround:brew tap --force homebrew/core brew edit binutils # apply the patch below HOMEBREW_NO_INSTALL_FROM_API=1 brew install binutils