Test Results with gcc-4.5.1: Cause for Concern?

Pierre Léonard pierre.leonard@jouy.inra.fr
Wed Aug 11 15:49:00 GMT 2010


Hi,

I have a sun solaris X86 2.5 and I have just compiled the gcc444. Our 
project is concerned with parallelisme, openMP, openCL and so.

I want to compile the release gcc 4.5.x, but unfortunetely it crash.
I get a complit compiler boostraped stage 2 equal to stage 3, the 
problem is in the C++ library compilation :

mkdir -p ./i386-pc-solaris2.10/bits/stdc++.h.gch
/home/pleonard/compiles/gcc-4.5.0/objdir/./gcc/xgcc -shared-libgcc 
-B/home/pleonard/compiles/gcc-4.5.0/objdir/./gcc -nostdinc++ 
-L/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/src 
-L/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/src/.libs 
-B/home/pleonard/gcc450/i386-pc-solaris2.10/bin/ 
-B/home/pleonard/gcc450/i386-pc-solaris2.10/lib/ -isystem 
/home/pleonard/gcc450/i386-pc-solaris2.10/include -isystem 
/home/pleonard/gcc450/i386-pc-solaris2.10/sys-include -x c++-header -g 
-I/usr/local/gcc/include/c++/4.4.4 -I/usr/include -I/usr/local/include 
-O3 -mtune=athlon64-sse3 -m64 -masm=att 
-I/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/include/i386-pc-solaris2.10 
-I/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/include 
-I/home/pleonard/compiles/gcc-4.5.0/libstdc++-v3/libsupc++ -O2 -g 
-std=gnu++0x 
/home/pleonard/compiles/gcc-4.5.0/libstdc++-v3/include/precompiled/stdc++.h 
\
-o i386-pc-solaris2.10/bits/stdc++.h.gch/O2ggnu++0x.gch
/home/pleonard/compiles/gcc-4.5.0/objdir/./gcc/xgcc -shared-libgcc 
-B/home/pleonard/compiles/gcc-4.5.0/objdir/./gcc -nostdinc++ 
-L/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/src 
-L/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/src/.libs 
-B/home/pleonard/gcc450/i386-pc-solaris2.10/bin/ 
-B/home/pleonard/gcc450/i386-pc-solaris2.10/lib/ -isystem 
/home/pleonard/gcc450/i386-pc-solaris2.10/include -isystem 
/home/pleonard/gcc450/i386-pc-solaris2.10/sys-include -x c++-header -g 
-I/usr/local/gcc/include/c++/4.4.4 -I/usr/include -I/usr/local/include 
-O3 -mtune=athlon64-sse3 -m64 -masm=att 
-I/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/include/i386-pc-solaris2.10 
-I/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/include 
-I/home/pleonard/compiles/gcc-4.5.0/libstdc++-v3/libsupc++ -O2 -g 
/home/pleonard/compiles/gcc-4.5.0/libstdc++-v3/include/precompiled/stdc++.h 
-o i386-pc-solaris2.10/bits/stdc++.h.gch/O2g.gch
In file included from 
/home/pleonard/compiles/gcc-4.5.0/objdir/i386-pc-solaris2.10/libstdc++-v3/include/atomic:80:0,
from 
/home/pleonard/compiles/gcc-4.5.0/libstdc++-v3/include/precompiled/stdc++.h:99:
/usr/local/gcc/include/c++/4.4.4/bits/atomic_0.h: In member function 
'void std::__atomic0::atomic_address::store(void*, std::memory_order) 
volatile':
/usr/local/gcc/include/c++/4.4.4/bits/atomic_0.h:126:7: error: invalid 
conversion from 'volatile void*' to 'const void*'
/usr/local/gcc/include/c++/4.4.4/bits/atomic_0.h:126:7: error: 
initializing argument 1 of 'std::__atomic_flag_base* 
std::__atomic_flag_for_address(const void*)'


The configuration is the following :

../configure --prefix=/home/pleonard/gcc450 --without-gnu-ld 
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++ 
--with-cpu-64=athlon64 --with-gmp=/home/pleonard/math64 
--with-mpfr=/home/pleonard/math64 --with-mpc=/home/pleonard/math64 
--enable-bootstrap --disable-nls --enable-checking=release 
--enable-werror=no --enable-multilib --with-system-zlib --with-gnu-as 
--with-as=/usr/sfw/bin/gas

I check the atomic_0.h:126 ligne but these are to far for me.
So if someone had and Idea about the current diff between libstdc++ from 
gcc444 and gcc450, it would be wonderfull

Many thank's in advance.

-- 
Pierre Léonard
Institut Micalis
(Microbiologie de lÂ’Alimentation au service
de la Santé humaine)
Bat-440
Centre de recherche de Jouy en Josas.
Domaine de Vilvert
78 352 Jouy en Josas cedex
France
01 34 65 29 78




More information about the Gcc-help mailing list