Knowledge Base Article
Why does fcs_prepare build fail with the error '/usr/bin/ld: cannot find -lc' on RHEL 8 OS?
Description
The Makefile from fcs_prepare repository on GitHub uses glibc-static library package. RHEL 8 does not support static linking on files that make use of the glibc-static package; therefore, the following error may be seen when building with the fcs_prepare tool.
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [Makefile:26: fcs_prepare] Error 1
Resolution
To work around this problem, remove the following flag from the Makefile:
LDFLAGS := -static
This is scheduled to be fixed in a future release branch of fcs_prepare.
Updated 1 month ago
Version 2.0No CommentsBe the first to comment