[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPPUNIT 1.9.14 32 bit error from libtool

From: Saurabh . Bhatnagar
Subject: Re: CPPUNIT 1.9.14 32 bit error from libtool
Date: Tue, 26 Apr 2005 17:19:26 +0530

I seem to have got over the hitch.
I changed the dependency path to contain only the libstdc++ from the installed gcc path.

Now, I get only a warning for 64 bit as well as 32bit and builds, I hope all's well.

g++ -D__sparc_v9__ -mcpu=ultrasparc3 -m64 -ffor-scope -fno-enforce-eh-specs -fno-const-strings -g -O3 -D__sparc_v9__ -mcpu=ultrasparc3 -Os -o simple ExampleTestCase.o Main.o  -ldl ../../src/cppunit/.libs/libcppunit.a -lpthread /user/sbhatnag/gccv3.4.2/lib/sparcv9/libstdc++.so -Wl,-R -Wl,/user/sbhatnag/gccv3.4.2/lib/sparcv9 -Wl,-R -Wl,/user/sbhatnag/gccv3.4.2/lib/sparcv9
ld: warning: file /user/sbhatnag/gccv3.4.2/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../sparcv9/libstdc++.so: linked to /user/sbhatnag/gccv3.4.2/lib/sparcv9/libstdc++.so: attempted multiple inclusion of file

Obviously, the libcppunit.la file needs to be backed up and restored as each clean will delete it.

I guess moving the GCC build area will have the same result?

warm regards

Bob Friesenhahn <address@hidden>

04/25/2005 07:58 PM

address@hidden, address@hidden, address@hidden
Re: CPPUNIT 1.9.14 32 bit error from libtool

On Mon, 25 Apr 2005 address@hidden wrote:
> -L/user/sbhatnag/gcc-3.4.2/objdir/gcc -Wl,-R
> -Wl,/user/sbhatnag/gccv3.4.2/lib -Wl,-R -Wl,/user/sbhatnag/gccv3.4.2/lib
> ld: fatal: recording name conflict: file
> `/user/sbhatnag/gccv3.4.2/lib/libstdc++.so' and file
> `/user/sbhatnag/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs/libstdc++.so'
> provide identical dependency names: libstdc++.so.6  (possible multiple
> inclusion of the same file)
> ld: fatal: File processing errors. No output written to DllPlugInTester
> collect2: ld returned 1 exit status
> gmake[2]: *** [DllPlugInTester] Error 1
> gmake[2]: Leaving directory
> `/user/sbhatnag/cppunit/cppunit-1.9.14/src/DllPlugInTester'
> ==========================================================================================
> Now, see that the options
> "-L/user/sbhatnag/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src
> -L/user/sbhatnag/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs"
> are not necessary and are mentioned in the ibcppunit.la file and I removed
> them.

This looks like the continuing GCC bug in which the GCC compiler's
build directory is used by the installed GCC.  This problem becomes
quite evident under Solaris.  Move the compiler's build directory to a
different location in order to avoid the problem.

Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]