This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: compiling gcc-3.2-3 failed
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Erick Branderhorst2 <Erick dot Branderhorst at asml dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Dec 2002 23:47:00 -0500 (EST)
- Subject: Re: compiling gcc-3.2-3 failed
On Mon, 9 Dec 2002, Erick Branderhorst2 wrote:
> Couldn't compile gcc on solaris 8. Any tips?
>
> wsasd328:/usr/local/build/gcc-3.2-3 % ./configure
> Configuring for a sparc-sun-solaris2.8 host.
...
> /usr/local/sparc-sun-solaris2.8/bin/ld:libgcc/./libgcc.map: file format not recognized; treating as linker script
> /usr/local/sparc-sun-solaris2.8/bin/ld:libgcc/./libgcc.map:1: parse error
Since you have binutils installed, either configure with
--with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld --with-gnu-as
--with-gnu-ld
or
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
to specify GNU binutils or Solaris btools, respectively.
Also note that srcdir builds are not recommended, see
http://gcc.gnu.org/install/configure.html for more help.
Jeff