From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E96B38582B2; Wed, 29 Nov 2023 18:03:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E96B38582B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701281016; bh=lRyC6DqNfMCpHiRdcLgnjk+/jl02nb5SW3qwMSnRPq4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cssyCzssQ8TdSWSnWybPcQ5QFUMhZTEPyXwdfEAZC+Xin5oTwsPN7iXCK0EI7jgng IZ+XivIzdivWRQa5NSFhwk4lQqvO4T7fO00hHPTyX5+hUuj+qMNu6DwhQAoFShIhlh MAkAyb1mESEn7l+CzSUN3RixWaq87uro7+q/P2xw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef Date: Wed, 29 Nov 2023 18:03:35 +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: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.0 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=3D112762 --- Comment #4 from Andrew Pinski --- Part of the problem is *-uclinux is not matched in config.gcc where linux-protos.h/linux.o gets added: ``` *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi) ... # Linux C libraries selection switch: glibc / uclibc / bionic. # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. case $target in *linux*) tm_p_file=3D"${tm_p_file} linux-protos.h" tmake_file=3D"${tmake_file} t-linux" extra_objs=3D"${extra_objs} linux.o" extra_options=3D"${extra_options} linux.opt" ;; esac ``` As I mentioned there seems to be some misunderstanding what is the canonical form for the triplet, or is both canonical (and different?) and just need f= ix the usage for when uclinux is used and have them set tm_p_file/extra_objs correctly, if they use linux.h .=