I had problems before adding the HOST_*** lines. Running pretty Vanilla NetBSD, standard GENERIC and a conf I call GEMINI which adds GATEWAY, maxusers to 128, RTC_OFFSET to 480 and uncomments IPSEC_DEBUG, PPP_BSDCOMP, PPP_BSD_DEFLATE and ALTQ. gcc8 with default options, system gcc is what came default with "NetBSD 8.99.26 (GEMINI) #0: Sun Nov 25 11:06:09 PST 2018"
Looks like it was bad binutils. The compile has gotten a lot farther. Thanks, Paul N On Mon, May 11, 2020 at 10:30 PM pimin inwa <[email protected]> wrote: > On a system running: > > NetBSD toy.wan.vpn 8.99.26 NetBSD 8.99.26 (GEMINI) #0: Sun Nov 25 11:06:09 > PST 2018 [email protected]:/usr/src/BUILD_OBJ/sys/arch/i386/compile/GEMINI > i386 > > /etc/mk.conf specifies: > X11_TYPE=modular > > I built gcc8 and it resides in: > > : which cc > /usr/pkg/gcc8/bin/cc > > I attempt to build NetBSD 9.0: > > Immediately before attempting to compile a "cvs update -Pd" of the source > is at location: > > /home/downloads/NetBSD-9.0_src/src > /home/downloads/NetBSD-9.0_src/xsrc > > : cat CVS/Tag > Tnetbsd-9 > > : env > HOST_CXX=/usr/pkg/gcc8/bin/g++ > HOST_SH=/bin/sh > SUDO_GID=20 > DISPLAY=localhost:12.0 > OLDPWD=/usr/pkgsrc > USERNAME=root > SUDO_COMMAND=/bin/bash > SOURCE=/home/downloads/NetBSD-9.0_src/ > USER=root > HOST_CC=/usr/pkg/gcc8/bin/cc > PWD=/home/downloads/NetBSD-9.0_src/src > HOME=/root > SUDO_USER=newhouse > SUDO_UID=7769 > MAIL=/var/mail/root > SHELL=/bin/sh > TERM=xterm > SHLVL=1 > LOGNAME=root > > PATH=/usr/pkg/gcc8:/usr/pkg/gcc8/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/X11R7/bin:/usr/sbin:/sbin:. > PS1=toy[root]: > _=/usr/bin/env > > Building with this command: > > ./build.sh -O ./BUILD_OBJ -T ./BUILD_TOOL -R $SOURCE/src/xreleasedir -X > $SOURCE/../xsrc makewrapper tools > > I get this with completel baffles me. > > checking for /usr/pkg/gcc8/bin/cc option to accept ANSI C... none needed > checking whether we are using the GNU C++ compiler... yes > checking whether /usr/pkg/gcc8/bin/g++ accepts -g... yes > checking that C++ compiler can compile simple program... yes > checking that C++ static constructors and destructors are called... no > configure: error: a working C++ compiler is required > > *** Failed target: .configure_done > *** Failed command: (cd build && AR=ar > AWK=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nbawk > CC=/usr/pkg/gcc8/bin/cc CFLAGS=-O CONFIG_SHELL=/bin/sh CPPFLAGS=\ > -I/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/include/compat\ > -I/home/downloads/NetBSD-9.0_src/src/tools/compat\ \ > -DHAVE_NBTOOL_CONFIG_H=1\ -D_FILE_OFFSET_BITS=64 CXX=/usr/pkg/gcc8/bin/g++ > CXXFLAGS=-O > INSTALL=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/i486--netbsdelf-install\ > -c\ \ -r LDFLAGS= > LEX=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nblex > FLEX=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nblex > M4=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nbm4 > MAKE=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nbmake > PATH="/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin:$PATH" > RANLIB=ranlib > YACC=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nbyacc /bin/sh > /home/downloads/NetBSD-9.0_src/src/tools/groff/../../external/gpl2/groff/dist/configure > --without-x --prefix=/home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL) > *** Error code 1 > > Stop. > nbmake[3]: stopped in /home/downloads/NetBSD-9.0_src/src/tools/groff > > *** Failed target: dependall > *** Failed command: cd "/home/downloads/NetBSD-9.0_src/src/tools/groff"; > /home/downloads/NetBSD-9.0_src/src/./BUILD_TOOL/bin/nbmake realall > *** Error code 1 > > The .../tools/groff directory contains only the files CVS and Makefile. > cvs update -Pd doesn't add any files. > > Where did I go wrong? > Hints and/or clues are appreciated, > > TIA, > Paul N. > -- <intentionally left blank>
