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

Notices


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

Rep: Reputation: 0
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

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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
  


Reply

Tags
embedded



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:14 AM.

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