Discussion:
Error compiling GCC12 in STABLE14
(too old to reply)
Filippo Moretti
2024-02-13 10:36:14 UTC
Permalink
This is the error that I keep on getting while compiling GCC12





[***@ROXY /usr/ports]# uname -a
FreeBSD ROXY 14.0-STABLE FreeBSD 14.0-STABLE #22 stable/14-n266661-a727d8d7f50f: Fri Feb  9 22:57:13 CET 2024     ***@ROXY:/usr/obj/usr/src/amd64.amd64/sys/ROXY amd64


checking whether we are cross compiling... configure: error: in `/usr/ports/lang/gcc12/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[3]: *** [Makefile:19435: configure-stage1-target-libgcc] Error 1
gmake[3]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[2]: *** [Makefile:25580: stage1-bubble] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[1]: *** [Makefile:25928: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc12

===>>> make build failed for lang/gcc12
===>>> Aborting update

===>>> Update for lang/gcc12 failed
===>>> Aborting update
Lorenzo Salvadore
2024-02-13 10:43:28 UTC
Permalink
Post by Filippo Moretti
This is the error that I keep on getting while compiling GCC12
FreeBSD ROXY 14.0-STABLE FreeBSD 14.0-STABLE #22 stable/14-n266661-a727d8d7f50f: Fri Feb  9 22:57:13 CET 2024     
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
gmake[3]: *** [Makefile:19435: configure-stage1-target-libgcc] Error 1
gmake[3]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[2]: *** [Makefile:25580: stage1-bubble] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
gmake[1]: *** [Makefile:25928: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/usr/ports/lang/gcc12/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/lang/gcc12
===>>> make build failed for lang/gcc12
===>>> Aborting update
===>>> Update for lang/gcc12 failed
===>>> Aborting update
Are you trying to build the port with MULTILIB option enabled on a
self-compiled host with WITHOUT_LIB32 enabled? Try disabling MULTILIB.

Cheers,

Lorenzo Salvadore


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Dimitry Andric
2024-02-13 11:52:13 UTC
Permalink
Post by Filippo Moretti
This is the error that I keep on getting while compiling GCC12
FreeBSD ROXY 14.0-STABLE FreeBSD 14.0-STABLE #22 stable/14-n266661-a727d8d7f50f: Fri Feb 9 22:57:13 CET 2024
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
gmake[3]: *** [Makefile:19435: configure-stage1-target-libgcc] Error 1
I would suggest looking in the config.log file. :)

-Dimitry



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Filippo Moretti
2024-02-13 16:52:01 UTC
Permalink
Disabling MULTILIB solved the problemthank youFilippo
Post by Filippo Moretti
This is the error that I keep on getting while compiling GCC12
FreeBSD ROXY 14.0-STABLE FreeBSD 14.0-STABLE #22 stable/14-n266661-a727d8d7f50f: Fri Feb  9 22:57:13 CET 2024   
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
gmake[3]: *** [Makefile:19435: configure-stage1-target-libgcc] Error 1
I would suggest looking in the config.log file. :)

-Dimitry

Loading...