This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]