PDA

View Full Version : libgcc.a no such file



kiros88
04-07-2010, 03:21 PM
Hey im just wondering Im using an open source program. And im trying to build a snapgear-linux. But ive come across and error saying i dont have a libgcc.a file which i found. do I have to install something or link it to get the makefile to compile it.

MK27
04-07-2010, 03:40 PM
You are going to have to provide more details that that.


But ive come across and error
What error? Is that a gcc error or a make error?



saying i dont have a libgcc.a file which i found. do I have to install something or link it to get the makefile to compile it.

Where is libgcc.a?

kiros88
04-07-2010, 04:07 PM
/sd/snapgear-linux/usr/local/bin/arm-linux-ld.real: libgcc.a: No such file: No such file or directory


I get this kind of error when i just make the program trying to build.

and i did a search and found libgcc.a in
/sd/snapgear-linux/usr/local/lib/arm-linux/lib
directory so im not really sure if i should change something in the path? or link? or compile some library?

MK27
04-07-2010, 04:40 PM
Your system has a libgcc.a in /usr/lib/gcc too (don't do anything to it). Presuming that you are building on linux?

I don't know anything about snapgear, but it looks like it may bootstrap it's own toolchain as well, which is maybe why it made a libgcc.a somewhere else.

Here's tip about building: if a build fails, either (at least) run "make clean" in the build directory afterward, or (sure bet), erase the directory, untar the package and start fresh. Do not just keep running make in the directory over and over again, once you fire it once and it fails you CANNOT put everything back in order again. Period. To reiterate: once you have run make once and seen it crap out, the build directory is no good.

Did this come with some kind of embedded thing that you bought? If so, make sure you are following the directions (I hope they come with directions!) or check up on line.

You could also start a new thread with "snapgear" in the title. There is a decent chance someone who's used it will come along in the next day or so. In that case, try and include as much information as you can.