Why does my program compilation halt with a linker error "cannot find -lgcc_s"?

Solution Verified - Updated -

Issue

  • I'm trying to compile/build my program as a 32 bit. But I'm having a problem getting libgcc_s.so to load.
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc
_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc
_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [RFD020] Error 1
  • Why does my program compilation halt with a linker error "cannot find -lgcc_s"?

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 5.x
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content