This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: 2.15 problem building GCC arm-elf cross-compiler on Solaris/HP-UX
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?
brgds, H-P