Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-29-2008, 03:57 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
cross compilation error -- /usr/local/bin/ld: unrecognized option '--as-needed'

I have two doubts.The first one is

i am tried to compile the blob bootloader for arm processor in pentium machine . For that i done some settings like
1. export ARCH=arm
2. export CROSS_COMPILE=arm-linux-
and based on the readme file i done the steps. But i got an error message as shown below

gcc -I/opt/02-25-2005/linux-2.6.9/include -o mkparamblock mkparamblock-mkparamblock.o
/usr/local/bin/ld: unrecognized option '--as-needed'
/usr/local/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [mkparamblock] Error 1
make[2]: Leaving directory `/opt/02-25-2005/src/blob/blob-xscale/utils/mkparamblock'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/02-25-2005/src/blob/blob-xscale/utils'
make: *** [all-recursive] Error 1

The second problem is that now it is not possible to run the normal c programs, it shows an error messages - "cannot execute binary file".
How can i overcome this .... i expect a valuable replay from u
NB: i am using rhel4 with 2.6.10 kernel

Last edited by shabeervsm; 08-29-2008 at 03:59 AM. Reason: giving details about my machine
Old 09-08-2008, 04:01 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152
Welcome to Linux Questions.

1) arm-linux
You are probably using the LART embedded computer from ??? Please inform.

I do not find find the option --as-needed in the files.
( Not included in the configure options or any of the
blob programs )
Which version of blob is used ? And a link to it ?

Please try using this toolchain
= = >
=> arm-linux-toolchain-bin-05-23-03.tgz ( 61 MB )
from :

2) Linux Software, c program : Please show the command
you are executing. ( which c code ? )

Please read
You can 'make a wish' and hope to get an answer, but wanting
(demanding) quality answers is not a good idea.
We are volunteers, answering when there is spare time for it.

And without giving all details, it is difficult to answer at all.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation error : cc: unrecognized option `-KPIC' adarshkmr Linux - Newbie 2 02-11-2008 11:00 PM
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration