This is the mail archive of the gcc-help@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]

trouble compiling latest snapshot


I'm trying to compile the latest snapshot  ( gotten last night  with cvs
update -rgcc_latest_snapshot )

1. 'Make bootstrap' -  goes until it tries to compare the stage 1 and 2
outputs - object files differ and it aborts
2. Presumably the compiler has been built already so I try 'Make all' -  it
configures and starts building libstdc++-v3 but dies  with the following
error:
'/home/andy/gcc-cur/build-gcc/gcc/g++ -B/home/andy/gcc-cur/build-gcc/gcc/
-nostdinc++
-L/home/andy/gcc-cur/build-gcc/armv4l-unknown-linux-gnuoldld/libstdc++-v3/src -L
/home/andy/gcc-cur/build-gcc/armv4l-unknown-linux-gnuoldld/libstdc++-v3/src/.lib
s -B/home/andy/gcc-cur/gcc-beta/armv4l-unknown-linux-gnuoldld/bin/
-B/home/andy/gcc-cur/gcc-beta/armv4l-unknown-linux-gnuoldld/lib/ -isystem
/home/andy/gcc-cur/gcc-beta/armv4l-unknown-linux-gnuoldld/include
-nostdinc++ -I../../../../gcc/libstdc++-v3/include/std
-I../../../../gcc/libstdc++-v3/include/c
-I../../../../gcc/libstdc++-v3/libsupc++
-I../../../../gcc/libstdc++-v3/include -I../libio
-I../../../../gcc/libstdc++-v3/libio -I../../../../gcc/libstdc++-v3/libmath
-I../include -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates
-Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c
../../../../gcc/libstdc++-v3/src/strstream.cc -o strstream.o
../../../../gcc/libstdc++-v3/src/strstream.cc: In destructor `virtual
   std::strstreambuf::~strstreambuf()':
../../../../gcc/libstdc++-v3/src/strstream.cc:111: no matching function for
   call to `std::strstreambuf::_M_free (char*)'
../../../../gcc/libstdc++-v3/include/backward/strstream:77: candidates are:
   void std::strstreambuf::_M_free(char*, void, ...)
../../../../gcc/libstdc++-v3/src/strstream.cc: In member function `virtual
   unsigned int std::strstreambuf::overflow(unsigned int)':
../../../../gcc/libstdc++-v3/src/strstream.cc:158: no matching function for
   call to `std::strstreambuf::_M_free (char*&)'
../../../../gcc/libstdc++-v3/include/backward/strstream:77: candidates are:
   void std::strstreambuf::_M_free(char*, void, ...)
make[3]: *** [strstream.lo] Error 1'

I played a bit with that code - looks like it's not happy with the fact
that _M_free is declared void.
If I change the type to int it compiles. I didn't look at it long enough to
understand why.

Any help resolving this is greatly appreciated.

All this brings me to more of a rhetorical question:
-Does the whole tree  ( including  libstdc++-v3)   get built before it's
released as a snapshot ?
-Is there a build log that specifies which parts did not build ?

Andy



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