[Insight-users] Re: GNU ld Linker warnings : bug gcc 3.4.6 optimization.

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 8 21:42:46 EDT 2006


Hi Andrew,


We just managed to reproduce a problem that you reported on March 2006:

http://public.kitware.com/pipermail/insight-users/2006-March/017282.html


It occurs when compiling ITK (even today's CVS version ) with GCC 3.4.6,
on "Release" mode. The problem does not appear in "Debug" mode.


        This seems to be a bug in GCC 3.4.6...


We explored several options for rewriting the code of the 
SpatialOrientationAdapter but without success.


Note that the messages are actual errors, not just warnings.



    Regards,


       Luis



==========================================
> [Insight-users] GUN ld Linker warnings
> Andrew Li andrew.li at synarc.com
> Thu Mar 30 15:59:09 EST 2006
> 
>     * Previous message: [Insight-users] Beginner's Questions on ITK and Visual Studio 2005
>     * Next message: [Insight-users] Check it out
>     * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 
> Hi, ITK users:
> 
> We are moving up to Fedora 4.
> When linking, there are many warning lines, like:
> 
> /usr/bin/ld:
> `.gnu.linkonce.t._ZN3itk25SpatialOrientationAdapterILi3EE18ToDirectionCo
> sinesERKNS_18SpatialOrientation31ValidCoordinateOrientationFlagsE'
> referenced in section `.rodata' of
> /opt/ali/proj/bin/Insight/Release/bin/libITKIO.a(itkNiftiImageIO.o):
> defined in discarded section
> `.gnu.linkonce.t._ZN3itk25SpatialOrientationAdapterILi3EE18ToDirectionCo
> sinesERKNS_18SpatialOrientation31ValidCoordinateOrientationFlagsE' of
> /opt/ali/proj/bin/Insight/Release/bin/libITKIO.a(itkNiftiImageIO.o)
> 
> /usr/bin/ld:
> `.gnu.linkonce.t._ZN3itk25SpatialOrientationAdapterILi3EE18ToDirectionCo
> sinesERKNS_18SpatialOrientation31ValidCoordinateOrientationFlagsE'
> referenced in section `.rodata' of
> /opt/ali/proj/bin/Insight/Release/bin/libITKIO.a(itkAnalyzeImageIO.o):
> defined in discarded section
> `.gnu.linkonce.t._ZN3itk25SpatialOrientationAdapterILi3EE18ToDirectionCo
> sinesERKNS_18SpatialOrientation31ValidCoordinateOrientationFlagsE' of
> /opt/ali/proj/bin/Insight/Release/bin/libITKIO.a(itkAnalyzeImageIO.o)
> 
> Not sure they are significant or not. 
> Any advice is extremely appreciated.
> 
> ----- Packages and versions -------
> Linux 2.6.11-1.1369_FC4smp 
> g++ (GCC) 3.4.6
> GNU ld version 2.15.94.0.2.2 20041220
> ITK: 2.6.0
> cmake version 2.2-patch 3
> 
> -Andrew




More information about the Insight-users mailing list