binutils on arm

George Mitchell george+freebsd at m5p.com
Fri Jul 11 11:07:39 UTC 2014


On 07/11/14 05:15, Anton Shterenlikht wrote:
> binutils is clearly a show stopper on arm.
> Is anybody working on it?
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=175605
> hasn't been touched for 5 months.
> Anybody knows if it builds on linux/armv6?
> Worth asking for help in https://sourceware.org/bugzilla/?
>
> Anton
> [...]

I followed up on a hint in this email from the ports mailing list from
the 12th of May:


 > Geoff Speicher geoff at sea-incorporated.com
 > Mon May 12 00:04:46 UTC 2014
 > Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
 > On Sun, May 11, 2014 at 5:41 PM, Geoff Speicher
 > <geoff at sea-incorporated.com>wrote:
 >
 > > Actually, I have a question about ports/184327. This bug report asserts
 > > that ansidecl.h is an internal file necessary only to build the GNU
 > > toolchain and should not be installed by devel/binutils. However, 
binutils
 > > also installs bfd.h which happens to include ansidecl.h (at least, 
it does
 > > in v2.24). Therefore, the installed bfd.h is broken. This fact either
 > > contradicts the original assertion that ansidecl.h should not be 
installed,
 > > or else it implies that bfd.h should not be installed either.
 > >
 >
 > There was a third possibility that I had overlooked, and appears to be a
 > decent compromise: bfd.h doesn't actually need to directly include
 > ansidecl.h for anything that I can see, so if we patch the port to remove
 > the include directive then bfd.h is no longer broken and ports/184327 is
 > also satisfied. Any objections to this?

and came up with the attached patches.  I can compile and use binutils
on the arm with these patches, although it is claimed that they result
in a non-functioning "ld".  I don't know.                    -- George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils.patch
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20140711/6d0f5bcc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnulibiberty.patch
Type: text/x-patch
Size: 4161 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20140711/6d0f5bcc/attachment-0001.bin>


More information about the freebsd-arm mailing list