From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 001693851C03; Mon, 22 Jun 2020 08:30:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 001693851C03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592814624; bh=mOfuF2OpJ2PYj42kUnZws8BEkGrtQxlcoW9Wtu3dz3U=; h=From:To:Subject:Date:From; b=ufmIqePNHnERGkDWnWDaCvFsdPVxLxECZu9T/hnH9ET9kYuyJTAro6iRqyZrxl5cm HLj9btvjd/PNdSrxMcDMGkjZRN6cMXhJyF8jiODCp0j5Box4vEDk8EjnEFonW/chE/ /+SK9P5ElrGQUArMGXcgLzbXU9LcPhQf9gUhOpbg= From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95811] New: configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling Date: Mon, 22 Jun 2020 08:30:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 08:30:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95811 Bug ID: 95811 Summary: configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru CC: hjl.tools at gmail dot com Target Milestone: --- Initially reported by Aisha Tammy as https://bugs.gentoo.org/729074. There attempt to cross-compile x86_64 to x86_64 with slightly different tollchain prefix (to unshare defaults) fails as: """ $ .../configure --host=3Dx86_64-UNREG-linux-gnu --target=3Dx86_64-UNREG-lin= ux-gnu --build=3Dx86_64-pc-linux-gnu ... checking for CET support... configure: error: in `/tmp/portage-tmpdir/portage/sys-devel/gcc-10.1.0-r1/work/build/libiberty': configure: error: cannot run test program while cross compiling See `config.log' for more details make[1]: *** [Makefile:7996: configure-libiberty] Error 1 """ Passing --disable-cet explicitly allows passing the condition. Should AC_TRY_RUN default to --disable-cet automatically?=