From owner-freebsd-current@freebsd.org Sat Mar 6 11:30:55 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1AC00562B0E for ; Sat, 6 Mar 2021 11:30:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dt2V707Csz3lRS for ; Sat, 6 Mar 2021 11:30:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 044FA562B80; Sat, 6 Mar 2021 11:30:55 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 04170562B0C for ; Sat, 6 Mar 2021 11:30:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dt2V66j1rz3lXL; Sat, 6 Mar 2021 11:30:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id BFD2222DE0; Sat, 6 Mar 2021 11:30:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::f406:c44c:be34:21a0] (unknown [IPv6:2001:470:7a58:0:f406:c44c:be34:21a0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E0EB42A304; Sat, 6 Mar 2021 12:30:51 +0100 (CET) From: Dimitry Andric Message-Id: <25FF03AC-6F0D-4EF4-9558-BC3CF5DA524C@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_C6BE687F-AF01-4684-81FC-C1811E8E1CBE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: Problem compiling gcc10 Date: Sat, 6 Mar 2021 12:30:44 +0100 In-Reply-To: <1452018887.604212.1615025997586@mail.yahoo.com> Cc: FreeBSD Current To: Filippo Moretti References: <974619497.320062.1614964780136.ref@mail.yahoo.com> <974619497.320062.1614964780136@mail.yahoo.com> <0DCC2B13-C81C-40FD-A9A2-EE46853A8293@FreeBSD.org> <1452018887.604212.1615025997586@mail.yahoo.com> X-Mailer: Apple Mail (2.3445.104.17) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2021 11:30:55 -0000 --Apple-Mail=_C6BE687F-AF01-4684-81FC-C1811E8E1CBE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 6 Mar 2021, at 11:19, Filippo Moretti wrote: >=20 > This is the output from MAKE_JOBS_UNSAFE=3Dyes >=20 > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... configure: error: in = `/usr/ports/lang/gcc10/work/.build/x86_64-portbld-freebsd14.0/32/libgcc': > configure: error: cannot run C compiled programs. > If you meant to cross compile, use `--host'. > See `config.log' for more details > gmake[4]: *** [Makefile:17191: configure-stage1-target-libgcc] Error 1 > gmake[4]: Leaving directory '/usr/ports/lang/gcc10/work/.build' Ok, for some reason it fails to run its autoconf test case. Since it specifically dies on x86_64-portbld-freebsd14.0/32/libgcc, I would guess that you haven't got any 32 bit compat libraries installed? But if you want to know for sure, find the config.log file which contains the details. It should be in $workdir/.build/x86_64-portbld-freebsd14.0/32/libgcc. This should show exactly which commands it ran, and what error it got. Btw, if you attempt to compile and run a small 32 bit executable, like this: echo "int main(void) { return 0; }" > minimal.c && cc -m32 minimal.c -o = minimal && ./minimal does it work? -Dimitry --Apple-Mail=_C6BE687F-AF01-4684-81FC-C1811E8E1CBE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYENn5AAKCRCwXqMKLiCW owrQAKCyOfA/5MMRH9jbocLnxspcCIXCoACgv4wvU15gH+88WY7c1TGVBIW96nk= =dlSE -----END PGP SIGNATURE----- --Apple-Mail=_C6BE687F-AF01-4684-81FC-C1811E8E1CBE--