Problem compiling gcc10
Dimitry Andric
dim at FreeBSD.org
Sat Mar 6 11:30:55 UTC 2021
On 6 Mar 2021, at 11:19, Filippo Moretti <filippomore at yahoo.com> wrote:
>
> This is the output from MAKE_JOBS_UNSAFE=yes
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210306/d298157b/attachment.sig>
More information about the freebsd-current
mailing list