public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC errors: unrecognized option '--as-needed'
@ 2004-12-09 16:09 Amish C++
  2004-12-09 16:20 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Amish C++ @ 2004-12-09 16:09 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 612 bytes --]

Hi,
I am getting the following error when I try to compile
a simple 'hello world' program. :
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld:
unrecognized option '--as-needed'
It's looking for the assembler program but for some
reason can't find it and I don't know where to look
for it. What happened was that I upgraded GCC from 3.2
to 3.3.4. GCC was working fine before but now it gives
me this error. Can anybody help me fix this?
Amish


		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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

* Re: GCC errors: unrecognized option '--as-needed'
  2004-12-09 16:09 GCC errors: unrecognized option '--as-needed' Amish C++
@ 2004-12-09 16:20 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2004-12-09 16:20 UTC (permalink / raw)
  To: Amish C++; +Cc: gcc-help

Amish C++ <amishcplusplus@yahoo.com> writes:

> I am getting the following error when I try to compile
> a simple 'hello world' program. :
> /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld:
> unrecognized option '--as-needed'
> It's looking for the assembler program but for some
> reason can't find it and I don't know where to look
> for it. What happened was that I upgraded GCC from 3.2
> to 3.3.4. GCC was working fine before but now it gives
> me this error. Can anybody help me fix this?

You need a newer version of the linker.  The --as-needed option was
added in binutils 2.15.

Normally if you build the compiler yourself it will determine whether
the system linker supports the --as-needed option, and decide whether
to use it based on that.  I'm guessing that you did not build the
compiler yourself, and that whoever did build it built it on a system
with binutils 2.15 installed.

Ian

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

end of thread, other threads:[~2004-12-09 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09 16:09 GCC errors: unrecognized option '--as-needed' Amish C++
2004-12-09 16:20 ` Ian Lance Taylor

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).