Stefan Dösinger wrote:
I tried to install binutils from CVS and the gcc SVN code on my mac to test my
msvc_prologue work there, but I ran into an interesting problem:
binutils for MacOSX is a no-go.
When using the SVN gcc with my own as, I cannot compile any files:
Assembler messages:
Fatal error: Invalid listing option `r'
This can happen when compiling something manually, or during gcc bootstrap.
The build type is i386-apple-darwin9.8.0.
Using my own gcc with the system assembler works. Using the system gcc with my
as build works as well. But my own as and gcc together fail. Google wasn't
much help unfortunately.
binutils 'as' does not know the magic of mach-o.
Is this a known problem? Am I doing something wrong here? Do I need any
special Darwin patches for as or gcc?
No, you don't do anything wrong. It is simply not supported, the
binutils from gnu.
You can rely on gcc being able to work with the MacOS-X 'binutils' aka:
ld, as. But don't try to build it for yourself. It's somehow like sparc
solaris, rely on the systems as/ld.
Regards,
Andreas