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

Re: gnu.linkonce.t messages for g++-3.3



On Monday 17 October 2005 09:43 pm, John Schmidt wrote:
> Hi,
>
> I am trying to compile a large c++ application.  Without any optimizations
> (debug has been enabled) the code compiles fine.  However, when I turn on
> -O2 optimzations, I get the following:
>
> g++-3.3 -Wl,-rpath
> -Wl,/usr/local/Thirdparty/1.24.1/Linux/gcc-3.3.5-32bit///lib
> -L/usr/local/Thirdparty/1.24.1/Linux/gcc-3.3.5-32bit///lib -Llib -m32 
> -Wall -march=pentium4 -msse -msse2 -O2     -shared  -Llib -m32  -Wall
> -march=pentium4 -msse -msse2 -O2     -Wl,-rpath
> -Wl,/home/jas/SCIRun/Sep9/opt-puppy-3.3/lib  -Wl,-rpath
> -Wl,/home/jas/SCIRun/Sep9/opt-puppy-3.3/lib -o lib/libCore_Datatypes.so
> -Wl,-soname -Wl,libCore_Datatypes.so Core/Datatypes/Clipper.o
> Core/Datatypes/Color.o Core/Datatypes/ColumnMatrix.o
> Core/Datatypes/CurveMesh.o Core/Datatypes/Datatype.o
> Core/Datatypes/DenseColMajMatrix.o Core/Datatypes/DenseMatrix.o
> Core/Datatypes/Field.o Core/Datatypes/FieldInterfaceAux.o
> Core/Datatypes/HexVolMesh.o Core/Datatypes/Image.o
> Core/Datatypes/ImageMesh.o Core/Datatypes/LatVolMesh.o
> Core/Datatypes/MaskedLatVolMesh.o
> Core/Datatypes/Matrix.o Core/Datatypes/MatrixOperations.o
> Core/Datatypes/Mesh.o Core/Datatypes/NrrdData.o Core/Datatypes/NrrdString.o
> Core/Datatypes/NrrdScalar.o Core/Datatypes/PointCloudMesh.o
> Core/Datatypes/PropertyManager.o Core/Datatypes/PrismVolMesh.o
> Core/Datatypes/QuadSurfMesh.o Core/Datatypes/QuadraticTetVolMesh.o
> Core/Datatypes/QuadraticLatVolMesh.o Core/Datatypes/ScanlineMesh.o
> Core/Datatypes/SearchGrid.o Core/Datatypes/SparseRowMatrix.o
> Core/Datatypes/String.o Core/Datatypes/StructCurveMesh.o
> Core/Datatypes/StructQuadSurfMesh.o Core/Datatypes/StructHexVolMesh.o
> Core/Datatypes/TetVolMesh.o Core/Datatypes/TriSurfMesh.o
> Core/Datatypes/TypeName.o Core/Datatypes/cd_templates.o
> Core/Datatypes/cd_templates_fields_0.o
> Core/Datatypes/cd_templates_fields_1.o
> Core/Datatypes/cd_templates_fields_2.o
> Core/Datatypes/cd_templates_fields_3.o
> Core/Datatypes/cd_templates_fields_4.o
> Core/Datatypes/cd_templates_fields_5.o
> Core/Datatypes/cd_templates_fields_6.o
> Core/Datatypes/cd_templates_fields_7.o -lCore_Persistent -lCore_Exceptions
> -lCore_Containers -lCore_Thread -lCore_Geometry -lCore_GuiInterface
> -lCore_Math -lCore_Util -lCore_Malloc -Wl,-rpath -Wl,/usr/X11R6/lib
> -L/usr/X11R6/lib -lGLU -lGL -lpthread -lm -Wl,-rpath -Wl,/usr/X11R6/lib
> -L/usr/X11R6/lib -lX11 -lXext -lXaw -lXi -lXt -lXmu  -lm -lcblas -lf77blas
> -latlas -lg2c -lg2c -lteem -lpng -lz -lz -lm -lpng -lz -lz
> `.gnu.linkonce.t._ZN9__gnu_cxx25_Hashtable_const_iteratorIN6SCIRun9EdgeInde
>xIjEES3_NS1_10TetVolMesh4Edge14CellEdgeHasherESt9_IdentityIS3_ENS5_6eqEdgeES
>aIS3_EEppEv' referenced in section `.rodata' of Core/Datatypes/TetVolMesh.o:
> defined in discarded section
> `.gnu.linkonce.t._ZN9__gnu_cxx25_Hashtable_const_iteratorIN6SCIRun9EdgeInde
>xIjEES3_NS1_10TetVolMesh4Edge14CellEdgeHasherESt9_IdentityIS3_ENS5_6eqEdgeES
>aIS3_EEppEv' of Core/Datatypes/TetVolMesh.o
> `.gnu.linkonce.t._ZN6SCIRun10TetVolMesh4Edge5edgeiENS_9EdgeIndexIjEE'
> referenced in section `.rodata' of Core/Datatypes/TetVolMesh.o: defined in
> discarded section
> `.gnu.linkonce.t._ZN6SCIRun10TetVolMesh4Edge5edgeiENS_9EdgeIndexIjEE' of
> Core/Datatypes/TetVolMesh.o
> collect2: ld returned 1 exit status
>
> I am using g++-3.3 version:
>
> g++-3.3 -v
> Reading specs from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/specs
> Configured with: ../src/configure -v --enable-languages=c,c++,ada
> --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --enable-__cxa_atexit --with-system-zlib --enable-nls
> --without-included-gettext --enable-clocale=gnu --enable-debug
> i486-linux-gnu Thread model: posix
> gcc version 3.3.6 (Debian 1:3.3.6-10)
>
> and binutils:
>
> binutils        2.16.1cvs20050902-1
>
> John Schmidt

Downgrading to binutils: 2.16.1-2 resolves this problem.

John Schmidt



Reply to: