tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bootstrapping netbsd 9 using gcc 10?



On Sun, 11 Oct 2020 at 15:59, Joerg Sonnenberger <joerg%bec.de@localhost> wrote:
>
> On Sat, Oct 10, 2020 at 10:21:25AM -0400, Andrew Cagney wrote:
> > I'm guessing no one has tried to bootstrap using gcc 10?
>
> Someone decided that -fcommon is bad and everything needs to be broken.
> I've stated working on the changes for the LLVM update, but it is quite
> likely that some places have regressed since then.

Yea, I figured initially just the build tools would need "fixing"
which should be easy.  Right.
But then I encountered "config" - <<TAIQ_HEAD(,structure) variable>>
is not extern friendly.  Fortunately all is not lost.  Using:

  export HOST_CC='cc -fcommon'
  export HOST_CXX='c++ -fcommon'

with the patch:

Index: tools/mandoc/Makefile
===================================================================
RCS file: /cvsroot/src/tools/mandoc/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- tools/mandoc/Makefile 15 Aug 2018 14:31:22 -0000 1.14
+++ tools/mandoc/Makefile 11 Oct 2020 20:42:05 -0000
@@ -16,6 +16,6 @@
 CLEANFILES+= config.log config.h Makefile.local

 config.h: configure
- SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure
+ SRCDIR=${DISTDIR} CC='${HOST_CC}' ${HOST_SH} ${DISTDIR}/configure

 .include "${.CURDIR}/../Makefile.host"

gets things to build.  Perhaps something like this in the 9.x branch?

Welcome to GCC 10.


Home | Main Index | Thread Index | Old Index