Subject: Re: problems compiling groff?
To: Andrew Brown <atatat@atatdot.net>
From: Andreas Kahari <ak+netbsd@freeshell.org>
List: current-users
Date: 03/01/2004 20:18:58
On Sat, Feb 28, 2004 at 06:36:35PM -0500, 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...  :)

It didn't work for me...

I've been rebuilding my system a couple of times during
the last two weeks, always usingup-to-date sources from
cvsup.no.openbsd.org.

After building this system ("build.sh -x -u distribution;
build.sh install=/"):
NetBSD coffee.please 1.6ZK NetBSD 1.6ZK (GENERIC) #1: Sun Feb 29 01:34:29 GMT 2004  root@coffee.please:/usr/obj/sys/arch/i386/compile/GENERIC i386

... a reboot and an immidiate rebuild ("build.sh tools
kernel=GENERIC") triggers the same problem.  Now, a simple
hello world in C++ does this:

$ cat test.cc
#include <iostream>

int main()
{
        std::cout << "Hello world" << std::endl;
}
$ c++ test.cc
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetGR'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase'


I tried replacing the /usr/lib/libgcc* files with the
corresponding files in the snapshot at
ftp://releng.netbsd.org/pub/NetBSD-daily/current/200402250000/i386/binary/sets/ 
without success (problem remains).

Do you think the solution might be to pick an older snapshot?


Regards,
Andreas

-- 
Andreas Kähäri                      |(--)|
                                    |-)(-|
East Anglia                         |(--)|
England                             |-)(-|