From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C34B3390A367; Thu, 6 Jun 2024 07:03:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C34B3390A367 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717657394; bh=K9sag03h3tHcYfRWzwC94q36bkTEtFYoHFimGfw51uw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jJX9KHwBRcu8IbyYIRMmRCJ3hMe+nO9VR0b3IQ27+h66fG40YhgwLDAAEylgO6FeE wpSun/RFKbA+IN6atzHlDBXH/YPybt2kAQhFTN58ZjlUSAbw0Uxg6K6iHN8V8Wop7s y6AR5wIAxCJcakkYMNxoisq1JAL5/2G6c5DsmkZ4= From: "raj.khem at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/115368] Wrong order of gcc include paths on musl systems Date: Thu, 06 Jun 2024 07:03:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: raj.khem at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: attachments.created 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=3D115368 --- Comment #1 from Khem Raj --- Created attachment 58366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58366&action=3Dedit potential fix This patch uses -idirafter instead of -iprefix when building for musl. This fixes the issue as the search paths get adjusted and sysroot is searched be= fore gcc headers dir.=