Unable to build binutils - errors

I cloned the binutils repo and tried to build it using abb build but am getting the following errors:

ERROR   0001: file '/usr/bin/binutils-ar' contains a standard runpath '/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/windmc' contains a standard runpath '/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/strip' contains a standard runpath '/usr/lib64' in [/usr/lib64]
ERROR   0001: file '/usr/bin/strings' contains a standard runpath '/usr/lib64' in [/usr/lib64]
error: Bad exit status from /var/tmp/rpm-tmp.3yHdQ7 (%install)

What am I doing wrong?

Why don’t we start with the reason why you are building it?

That is a fairly massive package based on the number of patches. There could be any number of reasons why, including the wrong release (i.e. master is for Cooker, etc).

You can also go here to see when the last build was and if it succeeded:

https://abf.openmandriva.org/openmandriva/binutils/build_lists

Because it was 78F/26C is my house last night and I was trying to figure out ways to make myself more miserable. So I kicked off a two hour build to make my laptop hotter than a $2 pistol.

The patches don’t make it a big project and indeed it is not a big project. The compile time needed to reproduce can be quickly reduced by changing targets on line 16 to just %{arch}-linux. This large number of patches is actually alarming. Do you know how many patches I normally use for cross compiling binutils? One. And that is to add some non-standard features that many people expect size to have and not to muck about changing the upstream code.

I confess I was building on Rome because it is the only OMLx install that I have at the moment and if there is a way to run abb in a Cooker container then I’ve not done enough research yet to find that and try it out. I’m not saying that running under Rome can’t be the issue, but we are talking about binaries with a /usr/lib64 runpath hard coded into them. For all I know setting QA_RPATHS=$[ 0x0011] is an undocumented requirement to build binutils on OMLx.

The patches make it a big project for packagers. We do what we do for a reason. Sometimes things don’t get cleaned up, for sure. Perhaps you can lend your wisdom to help with that.

You can just switch branches…

Same errors on rolling.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.