To test this new version of the compiler I have rebuild ROOT [1]. It
builds fine, but when I try to build its tests, at least one fails in
linking:
-----------------------------------
[... many build fine ...]
g++-4 -O -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include
-D_REENTRANT -I/work/root/include -c stressMathMore.cxx
g++-4 -O -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
-L/usr/X11R6/lib stressMathMore.o -L/work/root/lib
-Wl,-u,_G__cpp_setupG__Net -Wl,-u,_G__cpp_setupG__IO
-Wl,-u,_G__cpp_setupG__Hist -Wl,-u,_G__cpp_setupG__Graf
-Wl,-u,_G__cpp_setupG__G3D -Wl,-u,_G__cpp_setupG__GPad
-Wl,-u,_G__cpp_setupG__Tree -Wl,-u,_G__cpp_setupG__Thread
-Wl,-u,_G__cpp_setupG__Rint -Wl,-u,_G__cpp_setupG__PostScript
-Wl,-u,_G__cpp_setupG__Matrix -Wl,-u,_G__cpp_setupG__Physics -lCore
-lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint
-lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread
-lMathMore -o stressMathMore.exe
stressMathMore.exe done
g++-4 -O -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include
-D_REENTRANT -I/work/root/include -c stressIterators.cxx
g++-4 -O -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
-L/usr/X11R6/lib stressIterators.o -L/work/root/lib
-Wl,-u,_G__cpp_setupG__Net -Wl,-u,_G__cpp_setupG__IO
-Wl,-u,_G__cpp_setupG__Hist -Wl,-u,_G__cpp_setupG__Graf
-Wl,-u,_G__cpp_setupG__G3D -Wl,-u,_G__cpp_setupG__GPad
-Wl,-u,_G__cpp_setupG__Tree -Wl,-u,_G__cpp_setupG__Thread
-Wl,-u,_G__cpp_setupG__Rint -Wl,-u,_G__cpp_setupG__PostScript
-Wl,-u,_G__cpp_setupG__Matrix -Wl,-u,_G__cpp_setupG__Physics -lCore
-lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint
-lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -o
stressIterators.exe
d000037.o:(.idata$5+0x0): multiple definition of `__imp___ZTISt9exception'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$5+0x0):
first defined here
d000037.o:(.idata$6+0x0): multiple definition of `__nm___ZTISt9exception'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$6+0x0):
first defined here
d000073.o:(.idata$5+0x0): multiple definition of `__imp___ZTISt9exception'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$5+0x0):
first defined here
d000073.o:(.idata$6+0x0): multiple definition of `__nm___ZTISt9exception'
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$6+0x0):
first defined here
collect2: ld returned 1 exit status
make: *** [stressIterators.exe] Error 1
-----------------------------------
To reproduce:
--------------------------
cd /
mkdir work
cd work/
wget -N ftp://root.cern.ch/root/root_v5.23.02.source.tar.gz
tar -xzf root_v5.23.02.source.tar.gz
export TMP=/tmp
export TMPDIR=/tmp
export TEMP=/tmp
export ROOTSYS=/work/root
cd root
./configure win32gcc --with-cc=gcc-4 --with-cxx=g++-4 --with-f77=gfortran-4
make -j4
export PATH="${PATH}:/work/root/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/work/root/lib"
cd test/
make LD='g++-4' all clean
---------------------------
It take about 40 minutes on AMD Athlon 2C.
With GCC-4.3.2-1 all worked fine (apart the binaries not completely
stripped, as, perhaps you remember...)
Cheers,
Angelo.
---
[1] http://root.cern.ch
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/