From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B6FE3858D38; Thu, 11 Apr 2024 17:29:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B6FE3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712856582; bh=NXcb/M6T+mWDrPPmN1yqBExyNxg52QDaOJsae93V5Oo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=igZk27eaDvAkkZvy7JzlJSiERGao6nUaJzzVdms9C1jK25m93UJlnBs3HKDFCU8+b nSDAGAO5l5n61ezPqkWlEnnfscasmlI+sqm0az+Pryhn9FfL3qFk9ChIAkv9auQEaw 1bJ21jg7v5DDdlOJrc26ZZROsPfMlNjALRbpvQkg= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97304] Boostrap failure on freebsd: ld: error: unable to find library -lc Date: Thu, 11 Apr 2024 17:29:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97304 --- Comment #15 from Thomas Koenig --- (In reply to Andrew Pinski from comment #14) > (In reply to Jonathan Wakely from comment #10) > > If --with-as=3D/usr/local/bin/as --with-ld=3D/usr/local/bin/ld is requi= red then > > it needs to be documented at > > https://gcc.gnu.org/install/specific.html#x-x-freebsd >=20 > So what I think is happening is the ld (LLVM's lld) does not include > /usr/lib by default in the library search path and gcc's driver does not > pass -L/usr/lib -L/lib on to ld because it assumes all ld normally search > there by default (which most unix ld did before lld and mold come around). > [...] > I am suspect we might be able to remove this and it will work but there > needs to be a lot of testing on many different targets and such. A configure test, maybe?=