delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/12/08:12:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_JMF_BL
X-Spam-Check-By: sourceware.org
Message-ID: <49B90A2B.3050907@alice.it>
Date: Thu, 12 Mar 2009 14:12:11 +0100
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: experimental package: gcc4-4.3.2-2
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019