Why does my program compilation halt with a linker error "cannot find -lgcc_s"?
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
