Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2021 12:30:44 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Filippo Moretti <filippomore@yahoo.com>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: Problem compiling gcc10
Message-ID:  <25FF03AC-6F0D-4EF4-9558-BC3CF5DA524C@FreeBSD.org>
In-Reply-To: <1452018887.604212.1615025997586@mail.yahoo.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <filippomore@yahoo.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25FF03AC-6F0D-4EF4-9558-BC3CF5DA524C>