Bug 233769 - Possible build race: ld: error: unable to find library -lgcc_s
Summary: Possible build race: ld: error: unable to find library -lgcc_s
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2018-12-04 09:58 UTC by Li-Wen Hsu
Modified: 2019-01-31 09:23 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Li-Wen Hsu freebsd_committer 2018-12-04 09:58:06 UTC
Failed runs:


Output (from FreeBSD-head-i386-build/9799)

The order looks correct but might be the timing is too close or some path issues.

00:10:50.832 --- lib/libgcc_s__L ---
00:10:50.832 sh /usr/src/tools/install.sh -l rs -o root -g wheel -m 755  /usr/obj/usr/src/i386.i386/tmp/lib/libgcc_s.so.1  /usr/obj/usr/src/i386.i386/tmp/usr/lib/libgcc_s.so


00:10:50.836 --- lib/libgssapi__L ---
00:10:50.836 /usr/obj/usr/src/i386.i386/tmp/usr/bin/ld: error: unable to find library -lgcc_s


00:10:50.838 --- lib/libgssapi__L ---
00:10:50.838 cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Mark Millard 2018-12-04 20:17:48 UTC
Back on 2018-June-18 Bryan Drewery wrote in a response for
something else that looked initially to be a possible race:

If it was -lgcc_s then it's a known rare build race due to
tools/install.sh not handling -S.