Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:38:53+00:00 2026-05-23T21:38:53+00:00

I am new to LLVM. I am using Clang 3.0 to execute c programs.

  • 0

I am new to LLVM. I am using Clang 3.0 to execute c programs.
I am using mandriva spring 2010. GCC version 4.4.1 is installed in the system.
I used the following link to install LLVM.

svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm

I run it by using the below command

clang file.c.

I am getting the following error.

/usr/bin/ld: cannot find -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:38:54+00:00Added an answer on May 23, 2026 at 9:38 pm

    Right now clang only has hardcoded paths to your system libraries (different linux distors are pretty different wrt this). This error means that it does not know your distribution and thus cannot infer the necessary stuff.

    You have to patch clang sources and provide the necessary paths. Alternatively, you can just pass -L option with the appropriate directory in the cmdline.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I switch the Compiler Version to Clang llvm 1.0 in existing projects I
I'm using clang/llvm to programmatically compile and link bits of C source. I'm finding
I am trying to compile old iPhone application project using new LLVM 3.0 compiler.
Compiling my project on new xcode4 using llvm 2.0 compiler I get a strange
I seem to be getting a new error when using LLVM Compiler 2.0, which
New to javascript/jquery and having a hard time with using this or $(this) to
I've just tried compiling an iOS project using the the LLVM 1.5 compiler (included
I have the newest XCode (4D199) installed and in terminal when I type new-host-2:
New to Android so I'm writing small programs to get familiar with how things
Just installed Xcode 4.2 for Snow Leopard and started to developer a new project.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.