This is the mail archive of the
mailing list for the GCC project.
Re: CVS/SVN binutils and gcc on MacOS X?
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: Stefan Dösinger <stefan at codeweavers dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 04 Sep 2009 23:35:55 +0200
- Subject: Re: CVS/SVN binutils and gcc on MacOS X?
- References: <email@example.com>
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:
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.