Subject: Re: problems compiling groff?
To: None <current-users@NetBSD.org>
From: Art Lemasters <slemas1@mindspring.com>
List: current-users
Date: 03/01/2004 00:20:36
Andrew Brown wrote:
> On Sat, Feb 28, 2004 at 03:31:41PM -0800, Hisashi T Fujinaka wrote:
> 
>>On Sat, 28 Feb 2004, Andrew Brown wrote:
>>
>>>On Mon, Feb 23, 2004 at 09:59:51PM -0800, Hisashi T Fujinaka wrote:
>>>
>>>>I'm sure I saw someone else with this problem lately, but I'm not sure
>>>>I've seen any answers. I get this odd error trying to "build.sh tools".
>>>>...
>>>>checking that C++ compiler can compile simple program... no
>>>>configure: error: a working C++ compiler is required
>>>
>>>i hit this myself last night.  i don't know if you've solved this
>>>problem yet, but i thought i remembered something about something
>>>involving libgcc, so i did this:
>>>
>>>	# rm /usr/lib/libgcc*
>>>	# cp -p /path/to/a/recent/snapshot/usr/lib/libgcc* /usr/lib
>>>
>>>and all was well again.  the snapshot i used was approximately one
>>>month old.
>>
>>Hmm. I figured this was a transient error (looks like it was) and I just
>>reinstalled userland from a nearby working machine.
> 
> 
> same sort of thing.  lucky for me i keep snapshots lying around.  :)
> 
> 
>>libgcc, eh? I suppose that's what I get for not paying attention while
>>they rototill gcc.
> 
> 
> i only vaguely think i remember hearing something about that.  but
> since it solved the problem...  :)
> 

   Here's the error output at the end of the attempt to
./build.sh tools.  Anyone, is there any other way to make it
work for now?

checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required

*** Failed target:  .configure_done
*** Failed command: (cd build && CC=cc CFLAGS=-O CPPFLAGS=\ -I/usr/src/tools/compat/obj.i386\ 
-I/usr/src/tools/compat/obj.i386/include\ \ -I/usr/src/tools/groff/../compat\ 
-DHAVE_NBTOOL_CONFIG_H=1\ \ -D_FILE_OFFSET_BITS=64\ -D_NETBSD_SOURCE CXX=c++ CXXFLAGS=-O 
INSTALL=/usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nbinstall\ -c\ \ -r LDFLAGS= 
LEX=/usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nblex PATH="/usr/src/tooldir.NetBSD-1.6ZK-i386/bin:$PATH" 
YACC=/usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nbyacc sh 
/usr/src/tools/groff/../../gnu/dist/groff/configure --prefix=/usr/src/tooldir.NetBSD-1.6ZK-i386)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/groff

*** Failed target:  dependall
*** Failed command: cd /usr/src/tools/groff; /usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/groff

*** Failed target:  dependall-groff
*** Failed command: targ=dependall;dir=groff; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; 
/usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; 
cd "/usr/src/tools/$dir"; /usr/src/tooldir.NetBSD-1.6ZK-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools

ERROR: Failed to make tools
*** BUILD ABORTED ***


Art