From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BDD43858D38; Sun, 28 May 2023 22:41:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BDD43858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685313674; bh=qJCFurTo1zSyVsLQRLsPi+pj5Qa8vllh5k5ItgjUqwI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YJBmlu9VItsoJ9gNjv3/AiguXLlyat6d7FDHXMtos4KNdGWkj+NNvQBgrHyK9d18e +1bjjdmQjWmWWpCFR5PIWXsauuxUH0sG6aiROB2zQVNo5xYo/hL0fP+nAu6jod2WYs Ee6vG7wMIn3LOUL/24CsSGKkCIVt8QuFciohglIY= From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/110017] Crossback Compilation for multilib fails on latest ubuntu due to -mx32 being disabled by the linux kernel Date: Sun, 28 May 2023 22:41:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: unknown X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live 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: 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=3D110017 --- Comment #1 from cqwrteur --- (In reply to cqwrteur from comment #0) > I attempted crossback compilation for GCC, where the compiler is built on > Linux, runs on Windows, and is targeted for Linux again. However, the bui= ld > system of libgcc includes a sanity test to detect the functionality of the > compiler, which prevents the build for the -mx32 option and disables m32. >=20 > Moreover, during crossback compilation, GCC specifically looks for the "c= c" > command instead of just "gcc," even in cases where it doesn't exist. >=20 > Is there a way to remove or bypass the sanity test restriction for crossb= ack > compilation in this scenario? Not the functionality. It detects whether -mx32 program could run but of co= urse it cannot because linux kernel disabled that.=