This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ and 2.95.1--Any problems noted?


Chmouel Boudjnah wrote:
> 
> "George T. Talbot" <george@moberg.com> writes:
> 
> > I just downloaded, compiled and installed 2.95.1 on a plain-vanilla x86
> > Linux Mandrake 6.0 system.  The C library installed is glibc2.1.1pre2
> > compiled with egcs 1.1.2.
> >
> > The configure command I used was:
> >
> > ../src/configure --prefix=/usr --enable-shared --enable-threads
> >
> > I then did "make bootstrap" followed by "make install".  Everything
> > worked.
> >
> > Then, when I went to compile my C++ program, it died in linking with
> > errors where it can't find:
> >
> > std::terminate(void)
> > ostream& operator<< <int>(ostream&, smanip<int> const &)
> >
> > The program compiled and ran fine w/EGCS 1.1.2.
> >
> > Any ideas?  I've been pulling my hair out with this all day.  Note that
> > if I use the standard egcs 1.1.2 installation that came preinstalled on
> > Linux Mandrake, it gives me errors on std::terminate(), but not the
> > operator<< thing.
> 
> could you try with rpm of gcc-2.95 from cooker :
> 
> http://www.linux-mandrake.com/cooker

OK.  I just installed those RPM's and I get the same thing.  If I use
the -fnew-abi option, which I wanted to use to get the latest
exception-handling model, I get the errors as I described in the last
e-mail to the list.

If I use the -fnew-exceptions option instead of -fnew-abi, the compiler
fails with an internal compiler error.

If I omit both -fnew-abi and -fnew-exceptions, the code compiles. 
However, I'm not sure whether it's using the right (thread safe)
exception model or not.

Jason Merrill:  The reason I CC'd this to you, is that I wanted to ask
if I need -fnew-exceptions or -fnew-abi for the thread-safe exception
model under Linux.

--
George T. Talbot
<george@moberg.com>

P.S.  The internal compiler error:

[george@dhcp41 xml2sc]$ make
g++ -c -Wall -ansi -pedantic  -O3 -DNDEBUG -I. -I../.. -I../../include
-D_GNU_SOURCE -D_REENTRANT -DPLATFORM_LINUX=1 -DEXPORT=
-fno-implicit-templates -g -fnew-exceptions
../../src/settingtree/MatchingVisitor.cpp -o MatchingVisitor.ot
../../src/settingtree/MatchingVisitor.cpp: In method `void
CMatchingVisitor::VisitTag(CTag *)':
../../src/settingtree/MatchingVisitor.cpp:278: Internal compiler error.
../../src/settingtree/MatchingVisitor.cpp:278: Please submit a full bug
report.
../../src/settingtree/MatchingVisitor.cpp:278: See
<URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
make: *** [MatchingVisitor.ot] Error 1
[george@dhcp41 xml2sc]$

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]