public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* error building 4.1 on Solaris 9
@ 2006-03-02  0:43 Martin Sebor
  2006-03-02  0:45 ` Andrew Pinski
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Sebor @ 2006-03-02  0:43 UTC (permalink / raw)
  To: gcc-bugs

Is there a recommended version of GNU binutils for 4.1? I have been
using 2.13 but the latest compiler doesn't seem to be happy with it.
I tried the latest, 2.16.1, but I get the same error with it as well.
I don't see anything about this in INSTALL/specific.html.

Here's the error I get (building 4.1 with 4.0.2):

/usr/local/binutils-2.13/bin/ld:libgcc/./libgcc.map: file format not 
recognized; treating as linker script
/usr/local/binutils-2.13/bin/ld:libgcc/./libgcc.map:1: parse error
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/build/sebor/gcc-4.1.0-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/build/sebor/gcc-4.1.0-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/build/sebor/gcc-4.1.0-build/gcc'
make: *** [bootstrap] Error 2

Martin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error building 4.1 on Solaris 9
  2006-03-02  0:43 error building 4.1 on Solaris 9 Martin Sebor
@ 2006-03-02  0:45 ` Andrew Pinski
  2006-03-02  2:21   ` Martin Sebor
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Pinski @ 2006-03-02  0:45 UTC (permalink / raw)
  To: Martin Sebor; +Cc: gcc-bugs


On Mar 1, 2006, at 7:48 PM, Martin Sebor wrote:

> Is there a recommended version of GNU binutils for 4.1? I have been
> using 2.13 but the latest compiler doesn't seem to be happy with it.
> I tried the latest, 2.16.1, but I get the same error with it as well.
> I don't see anything about this in INSTALL/specific.html.

You did not follow directions.

 From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13486:

- You must tell the configure script that you use GNU binutils and not 
the Sun
tools. See http://gcc.gnu.org/install/configure.html
- You don't follow the Solaris-specific instructions to build GCC. See
http://gcc.gnu.org/install/specific.html#sparc-sun-solaris2*


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error building 4.1 on Solaris 9
  2006-03-02  0:45 ` Andrew Pinski
@ 2006-03-02  2:21   ` Martin Sebor
  2006-03-02 18:35     ` Martin Sebor
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Sebor @ 2006-03-02  2:21 UTC (permalink / raw)
  To: gcc-bugs

Andrew Pinski wrote:
> 
> On Mar 1, 2006, at 7:48 PM, Martin Sebor wrote:
> 
>> Is there a recommended version of GNU binutils for 4.1? I have been
>> using 2.13 but the latest compiler doesn't seem to be happy with it.
>> I tried the latest, 2.16.1, but I get the same error with it as well.
>> I don't see anything about this in INSTALL/specific.html.
> 
> 
> You did not follow directions.

Guilty as charged. I guess I never have and I've just been getting
away with it (that is, until now).

> 
>  From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13486:
> 
> - You must tell the configure script that you use GNU binutils and not 
> the Sun
> tools. See http://gcc.gnu.org/install/configure.html

Thank you. Using the options --with-gnu-as --with-gnu-ld fixed the
error.

> - You don't follow the Solaris-specific instructions to build GCC. See
> http://gcc.gnu.org/install/specific.html#sparc-sun-solaris2*

I had read this but I didn't see anything relevant and I still
don't even after rereading it. Could you be more specific about
which part I should follow? (The build went fine, I just want
to be sure I don't run into something down the line.)

Thanks
Martin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error building 4.1 on Solaris 9
  2006-03-02  2:21   ` Martin Sebor
@ 2006-03-02 18:35     ` Martin Sebor
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Sebor @ 2006-03-02 18:35 UTC (permalink / raw)
  To: gcc-bugs

Martin Sebor wrote:
> Andrew Pinski wrote:
> 
>>
>> On Mar 1, 2006, at 7:48 PM, Martin Sebor wrote:
>>
>>> Is there a recommended version of GNU binutils for 4.1? I have been
>>> using 2.13 but the latest compiler doesn't seem to be happy with it.
>>> I tried the latest, 2.16.1, but I get the same error with it as well.
>>> I don't see anything about this in INSTALL/specific.html.
>>
>>
>>
>> You did not follow directions.
> 
> 
> Guilty as charged. I guess I never have and I've just been getting
> away with it (that is, until now).
> 
>>
>>  From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13486:
>>
>> - You must tell the configure script that you use GNU binutils and not 
>> the Sun
>> tools. See http://gcc.gnu.org/install/configure.html
> 
> 
> Thank you. Using the options --with-gnu-as --with-gnu-ld fixed the
> error.

But only to build the compiler, not when running the installed gcc.
I see I still missed something: the rules for finding the assembler
and linker used by the installed compiler.

It seems that the rules to find these utilities are different when
building than when using the compiler. When building gcc, it looks
for them in PATH. When using gcc, it considers system directories
first.

Btw., is there a way to switch between the native and GNU assembler
and linker without rebuilding the compiler? It seems that 4.1 with
the GNU utilities is a lot slower than 4.0.2 was when using the
native ones (I wasn't actually using the GNU utilities with 4.0.2
despite what I said before).

Martin


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-02 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02  0:43 error building 4.1 on Solaris 9 Martin Sebor
2006-03-02  0:45 ` Andrew Pinski
2006-03-02  2:21   ` Martin Sebor
2006-03-02 18:35     ` Martin Sebor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).