LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   cross compilation error -- /usr/local/bin/ld: unrecognized option '--as-needed' (https://www.linuxquestions.org/questions/linux-kernel-70/cross-compilation-error-usr-local-bin-ld-unrecognized-option-as-needed-666243/)

shabeervsm 08-29-2008 03:57 AM

cross compilation error -- /usr/local/bin/ld: unrecognized option '--as-needed'
 
hai,
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
regards
shabeer

knudfl 09-08-2008 04:01 AM

Welcome to Linux Questions.

1) arm-linux
You are probably using the LART embedded computer from
http://www.lartmaker.nl/ ??? 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
http://www.google.com/search?hl=en&q...=Google+Search
= = > http://forums.we-dig.org/ShowPost.aspx?PostID=107
§6 http://forums.we-dig.org/ShowPost.as...#_Toc108036011
=> arm-linux-toolchain-bin-05-23-03.tgz ( 61 MB )
from : http://ftp.linux.org.uk/pub/linux/ar...6-02-2003/bin/

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

Please read
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.linuxquestions.org/linux/...Ask_a_Question
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.


Regards


All times are GMT -5. The time now is 08:11 PM.