objcopy in binutils doesn't work on Mac OS X
Axel Simon
A.Simon@kent.ac.uk
Tue Feb 27 20:15:00 GMT 2007
On Tue, 2007-02-27 at 17:05 +0000, Nick Clifton wrote:
> Hi Axel,
>
> >>> make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.
> >> Hmm, how did you configure and build the sources ?
> >
> > Oi, sorry, my bad. I accidently did a configure in src/binutils rather
> > than in src/. But even then, I can't compile binutils. configure refuses
> > to build binutils:
> > sinope:~/source/binutils-cvs as49$ ./configure --enable-targets=all
> > *** This configuration is not supported in the following subdirectories:
> > bfd binutils ld gas opcodes gprof
>
> This is not just a coincidence. It is a known problem that the GNU
> binutils do not currently work properly for darwin based targets.
>
> > The very same configure statement works well in binutils-2.17.
>
> Hmm, but I bet that if you left off the "--enable-targets=all" then it
> would not work ?
No, same thing. binutils 2.17 does work with --enable-targets=all. I
passed in this flag due to the README in binutils where this flag is
mentioned to enable all possible object file formats of bfd.
> > Can I force it to build binutlils anyway?
>
> You could edit the top level configure file to allow it, but really the
> point of the refusal to build is that it is known that the binutils do
> not (currently) work for darwin.
I will look into that.
Ta,
Axel.
More information about the Binutils
mailing list