LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /bin/ld: cannot find -ll (https://www.linuxquestions.org/questions/linux-newbie-8/bin-ld-cannot-find-ll-797328/)

David Li 03-23-2010 12:08 PM

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

rweaver 03-23-2010 12:37 PM

Make sure you have flex and bison installed. Did you install your distributions equivalent of 'build essentials'?

David Li 03-23-2010 12:44 PM

What are flex and bison? Where can I get them?

Tinkster 03-23-2010 12:50 PM

And you have a '-L $PWD' or the like, too?

David Li 03-23-2010 01:00 PM

Skipping incompatible, how do I check the compatibility?

Tinkster 03-23-2010 02:02 PM

Please rephrase that?

David Li 03-24-2010 07:19 AM

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

Tinkster 03-24-2010 11:34 AM

file /usr/lib/libl.a
to start with

rweaver 03-26-2010 03:20 PM

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


All times are GMT -5. The time now is 04:39 PM.