libgcc.a no such file

This is a discussion on libgcc.a no such file within the Linux Programming forums, part of the Platform Specific Boards category; Hey im just wondering Im using an open source program. And im trying to build a snapgear-linux. But ive come ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    192

    libgcc.a no such file

    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.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You are going to have to provide more details that that.

    Quote Originally Posted by kiros88 View Post
    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?
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    192
    Code:
    /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?

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    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.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 02:04 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 09:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21