2.15 problem building GCC arm-elf cross-compiler on Solaris/HP-UX

Albert Chin binutils@mlists.thewrittenword.com
Thu Sep 30 03:47:00 GMT 2004


On Wed, Sep 29, 2004 at 04:33:42PM -0400, Hans-Peter Nilsson wrote:
> On Wed, 29 Sep 2004, Nick Clifton wrote:
> > > I've built a GCC cross-compiler for C with --target=arm-elf
> > > successfully on RH 7.1, 9.0, and Solaris 9/SPARC. However, when
> > > building on HP-UX 11i, I get an error running arm-elf-ranlib on
> > > libgcc.a:
> ...
> > It would appear that the 2.15 libgcc.a is missing the magic bytes
> > "!<arch>\012" at the start of the file.  These bytes are defined as
> > ARMAG in include/aout/ar.h and should be emitted by the function
> > _bfd_write_archive_contents() in bfd/archive.c.  For some reason this is
> > not happening.  Perhaps you could investigate further ?
> 
> This rings a bell.  I got a report against binutils for
> mmix-knuth-mmixware(!) that the first bytes of a file were
> always zero (or missing; I don't remember).  Turned out to be a
> gcc bug (the host gcc); upgrade helped.  Could that be it?

I am using the HP C compiler to build binutils. I tried with and
without optimizations. The result was the same. I am going to do some
more digging.

-- 
albert chin (china@thewrittenword.com)



More information about the Binutils mailing list