|
From: | Michael Riedl |
Subject: | Re: gcc13 fails to configure/build with m2 language enabled on Freebsd |
Date: | Tue, 7 Nov 2023 23:19:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
Curtis,
not a subject matter expert but as a guess - did you run
configure with
--enable-languages=c,c++,m2
And, what makes me suspicious - does your "C" compiler is working (suppose, yes, but then at least some libraries could not be found ).
Your config.log states at and after line 87:
configure:2581: checking whether the C compiler works
configure:2603: /usr/ports/lang/gcc13/work/.build/./prev-gcc/xgcc
-B/usr/ports/lang/gcc13/work/.build/./prev-gcc/
-B/usr/local/powerpc64le-portbld-freebsd13.2/bin/
-B/usr/local/powerpc64le-portbld-freebsd13.2/bin/
-B/usr/local/powerpc64le-portbld-freebsd13.2/lib/ -isystem
/usr/local/powerpc64le-portbld-freebsd13.2/include -isystem
/usr/local/powerpc64le-portbld-freebsd13.2/sys-include
-fno-checking -g -O2 -fno-checking -flto=jobserver -frandom-seed=1
-ffat-lto-objects -DLIBICONV_PLUG -static-libstdc++
-static-libgcc conftest.c libcommon.a ../libcpp/libcpp.a
../libbacktrace/.libs/libbacktrace.a ../libiberty/pic/libiberty.a
../libdecnumber/libdecnumber.a >&5
/usr/local/bin/ld: cannot find libcommon.a: No such file or
directory
/usr/local/bin/ld: cannot find ../libcpp/libcpp.a: No such file or
directory
/usr/local/bin/ld: cannot find
../libbacktrace/.libs/libbacktrace.a: No such file or directory
/usr/local/bin/ld: cannot find ../libiberty/pic/libiberty.a: No
such file or directory
/usr/local/bin/ld: cannot find ../libdecnumber/libdecnumber.a: No
such file or directory
collect2: error: ld returned 1 exit status
Gruß / Regards
Michael
When attempting to build with modula2 (m2) enabled returns the following error: cp /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/m2/target-independent/m2/Builtins.texi /usr/ports/lang/gcc13/work/.build/gcc/m2/Builtins.texi echo timestamp > Builtins.texi-check grep -v "^@node" /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/doc/include/gpl_v3.texi > m2/gpl_v3_without_node.texi test -d /usr/ports/lang/gcc13/work/.build/gcc/m2/images || /bin/sh /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/../mkinstalldirs /usr/ports/lang/gcc13/work/.build/gcc/m2/images mkdir /usr/ports/lang/gcc13/work/.build/gcc/m2/images cp /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/m2/images/gnu.eps /usr/ports/lang/gcc13/work/.build/gcc/m2/images/gnu.eps echo timestamp > gcc.pod perl /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/../contrib/texi2pod.pl /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/doc/invoke.texi > gcc.pod checking whether the C compiler works... no config-host: error: in `/usr/ports/lang/gcc13/work/.build/gcc/m2/gm2-libs': config-host: error: C compiler cannot create executables See `config.log' for more details no configure: error: in `/usr/ports/lang/gcc13/work/.build/gcc/m2': configure: error: C compiler cannot create executables See `config.log' for more details gmake[5]: *** [/usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/m2/Make-lang.in:1526: m2/gm2-libs/gm2-libs-host.h] Error 77 gmake[5]: *** Waiting for unfinished jobs.... gmake[5]: *** [/usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/m2/Make-lang.in:1542: m2/gm2config.aci] Error 77 libgccjit.texi:18: warning: @definfoenclose is obsolete libgccjit.texi:19: warning: @definfoenclose is obsolete /bin/sh /usr/ports/lang/gcc13/work/gcc-13.1.0/gcc/../move-if-change tmp-optionlist optionlist echo timestamp > s-options rm gcc.pod gmake[5]: Leaving directory '/usr/ports/lang/gcc13/work/.build/gcc' gmake[4]: *** [Makefile:5009: all-stage2-gcc] Error 2 gmake[4]: Leaving directory '/usr/ports/lang/gcc13/work/.build' gmake[3]: *** [Makefile:25730: stage2-bubble] Error 2 gmake[3]: Leaving directory '/usr/ports/lang/gcc13/work/.build' gmake[2]: *** [Makefile:25953: bootstrap-lean] Error 2 gmake[2]: Leaving directory '/usr/ports/lang/gcc13/work/.build' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Config log attached.
[Prev in Thread] | Current Thread | [Next in Thread] |