LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2010, 01:08 PM   #1
David Li
Member
 
Registered: Mar 2010
Posts: 42

Rep: Reputation: 15
/bin/ld: cannot find -ll


Compiled my files, there is error "/bin/ld: cannot find -ll". What cound cause that error? I then found the libl.a and put in current directory with source code, but erro is still there.

Any help is appreciated.
 
Old 03-23-2010, 01:37 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Make sure you have flex and bison installed. Did you install your distributions equivalent of 'build essentials'?
 
Old 03-23-2010, 01:44 PM   #3
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
What are flex and bison? Where can I get them?
 
Old 03-23-2010, 01:50 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And you have a '-L $PWD' or the like, too?
 
Old 03-23-2010, 02:00 PM   #5
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
Skipping incompatible, how do I check the compatibility?
 
Old 03-23-2010, 03:02 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please rephrase that?
 
Old 03-24-2010, 08:19 AM   #7
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
This is the complet error message:

arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libl.a when searching for -ll
arm-none-linux-gnueabi/bin/ld: cannot find -ll
collect2: ld returned 1 exit status
make:***[buildcdl] Error 1
 
Old 03-24-2010, 12:34 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
file /usr/lib/libl.a
to start with
 
Old 03-26-2010, 04:20 PM   #9
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Flex is... http://www.gnu.org/software/flex/
Bison is... http://www.gnu.org/software/bison/

The particular error you were originally getting ("/bin/ld: cannot find -ll") often is caused by references to one of them that isn't available. Shrug.

As far as installing them... use the package manager for your distribution. (yum install flex, apt-get install flex, emerge flex, etc) Make ~sure~ you've got your correct libraries and necessary applications for building a package installed........

Last edited by rweaver; 03-26-2010 at 04:21 PM.
 
  


Reply


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
/usr/bin/ld: cannot find -lXft ? minhnv Ubuntu 2 10-26-2005 04:16 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 11:42 PM
/usr/bin/ld: cannot find -lc aa2bi Linux - Newbie 2 06-09-2004 07:32 AM
RPM can't find /bin/sh, etc... matthurne Linux - Software 0 01-04-2004 11:00 PM
/usr/bin/ld: cannot find -lusb help??? Hyperion007 Linux - Hardware 1 08-20-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration