Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 16:38:52 -0700
From:      Rob <rob@pythonemproject.com>
To:        Peter Wemm <peter@wemm.org>, Current <freebsd-current@FreeBSD.org>
Subject:   Re: make buildworld fails at gperf
Message-ID:  <3D408C0C.B6344144@pythonemproject.com>
References:  <20020725232601.6DE3E2A7D6@canning.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote:
> 
> Rob wrote:
> > With a fresh cvsup and rm -r /usr/obj, I then get the following error in
> > gperf when typing make buildworld:
> >
> > Am I doing something wrong?   Thanks,  Rob.
> >
> > -----------------------------------
snip
> 
> The problem is that you do not have a viable libstdc++.so.4 with the builtin
> new/delete/etc operators.  gcc-3.x moved stuff from libgcc.a to libstdc++.
> 
> The easiest way out of this is:
> mv /usr/include/g++ /usr/include/g++.old
> mkdir -p /usr/include/g++/bits /usr/include/g++/ext /usr/include/g++/backward
> cd src/gnu/lib/libstdc++
> make obj
> make includes
> cd ../libsupc++
> make obj
> make includes
> cd ../libstdc++
> make depend
> make all install
> cd ../libsupc++
> make depend
> make all install
> 
> This should build you a fresh libstdc++.so.4, libsupc++.a and a matching
> /usr/include/g++/*
> 
> The resulting /usr/include/g++ should look roughly like this:
> peter@overcee[3:52pm]~src/gnu/lib/libsupc++-105> /bin/ls -F /usr/include/g++
> FlexLexer.h             cstdlib                 list
> algorithm               cstring                 locale
> backward/               ctime                   map
> bits/                   cwchar                  memory
> bitset                  cwctype                 new
> cassert                 cxxabi.h                numeric
> cctype                  deque                   ostream
> cerrno                  exception               queue
> cfloat                  exception_defines.h     set
> ciso646                 ext/                    sstream
> climits                 fstream                 stack
> clocale                 functional              stdexcept
> cmath                   iomanip                 streambuf
> complex                 ios                     string
> csetjmp                 iosfwd                  typeinfo
> csignal                 iostream                utility
> cstdarg                 istream                 valarray
> cstddef                 iterator                vector
> cstdio                  limits
> 
> If you are really stuck, or do not have time to mess around, you might
> prefer to fetch and extract this:
>   http://people.freebsd.org/~peter/c++fixit.tgz
> Move your old /usr/include/g++ out of the way before extracting it
> and save a copy of your /usr/lib/libstdc++* files as well.
> 
> Cheers,
> -Peter
> --
> Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
> "All of this is for nothing if we don't go to the stars" - JMS/B5
> 
Thanks, Peter.  I actually got Ruslam's suggestion working, using the
older Makefile.inc1, and make buildworld is running right now.  It
didn't work at first as I didn't do a make clean. If it crashes, I will
use your method.  Thanks, Rob.

-- 
-----------------------------
The Numeric Python EM Project

www.pythonemproject.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D408C0C.B6344144>