Problem compiling gcc10
Filippo Moretti
filippomore at yahoo.com
Sat Mar 6 10:20:12 UTC 2021
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'
gmake[3]: *** [Makefile:22903: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc10/work/.build'
gmake[2]: *** [Makefile:23235: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc10/work/.build'
*** Error code 1
Stop.
On Friday, March 5, 2021, 9:28:52 PM GMT+1, Dimitry Andric <dim at freebsd.org> wrote:
On 5 Mar 2021, at 18:19, Filippo Moretti via freebsd-current <freebsd-current at freebsd.org> wrote:
>
> The following is the error while compiling on:
> [root at sting /usr/ports]# uname -aFreeBSD sting 14.0-CURRENT FreeBSD 14.0-CURRENT #32 main-n245104-dfff1de729b: Fri Feb 26 12:08:40 CET 2021 root at sting:/usr/obj/usr/src/amd64.amd64/sys/STING amd64
>
> gmake[6]: *** [Makefile:1212: multi-do] Error 1gmake[6]: Leaving directory '/usr/ports/lang/gcc10/work/.build/x86_64-portbld-fr eebsd14.0/libgcc'gmake[5]: *** [Makefile:127: all-multi] Error 2gmake[5]: *** Waiting for unfinished jobs....gmake[5]: Leaving directory '/usr/ports/lang/gcc10/work/.build/x86_64-portbld-fr eebsd14.0/libgcc'gmake[4]: *** [Makefile:17599: all-stage1-target-libgcc] Error 2gmake[4]: Leaving directory '/usr/ports/lang/gcc10/work/.build'gmake[3]: *** [Makefile:22903: stage1-bubble] Error 2gmake[3]: Leaving directory '/usr/ports/lang/gcc10/work/.build'gmake[2]: *** [Makefile:23235: bootstrap-lean] Error 2gmake[2]: Leaving directory '/usr/ports/lang/gcc10/work/.build'===> Compilation failed unexpectedly.Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure tothe maintainer.*** Error code 1Stop.make[1]: stopped in /usr/ports/lang/gcc10*** Error code 1
Hi Filippo,
Unfortunately the actual error is earlier in the build, so it is not
shown, and your log is wrapped very strangely. Can you run the build
under script(1) and upload a full build log somewhere?
Alternatively, you can set MAKE_JOBS_UNSAFE=yes so it would use a single
job make, and it should then show the error more clearly at the end. But
this is likely to take a bit longer to build.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210306/d244acbf/attachment.sig>
More information about the freebsd-current
mailing list