[Insight-developers] Link problems with gcc on Debian testing

Luis Ibanez luis.ibanez at kitware.com
Fri Nov 3 16:18:55 EST 2006


We have been tracking the following link problems:

`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk21StatisticsImageFilterINS_5ImageIfLj2EEEE10MakeOutputEj'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
`.gnu.linkonce.t._ZN3itk31BSplineDecompositionImageFilterINS_5ImageIfLj2EEENS1_IdLj2EEEE8SetPolesEv'
referenced in section `.rodata' of
CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o:
defined in discarded section
`.gnu.linkonce.t._ZN3itk31BSplineDecompositionImageFilterINS_5ImageIfLj2EEENS1_IdLj2EEEE8SetPolesEv'
of CMakeFiles/itkBasicFiltersTests2.dir/itkBasicFiltersPrintTest2.o
*collect2: ld returned 1 exit status
*Building CXX object
Testing/Code/BasicFilters/CMakeFiles/itkBasicFiltersTests.dir/itkLog10ImageFilterAndAdaptorTest.o
Building CXX object
Testing/Code/BasicFilters/CMakeFiles/itkBasicFiltersTests.dir/itkLogImageFilterAndAdaptorTest.o
Building CXX object
Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsTests2.dir/itkDeformableSimplexMesh3DFilterTest.o
Building CXX object
Testing/Code/Algorithms/CMakeFiles/itkAlgorithmsTests.dir/itkExtensionVelocitiesImageFilterTest.o
Scanning dependencies of target itkAlgorithmsTests3
Building CXX object
Testing/Code/BasicFilters/CMakeFiles/itkBasicFiltersTests.dir/itkMaskConnectedComponentImageFilterTest.o


in

http://www.itk.org/Testing/Sites/zion.kitware/Linux-g++-3.3/20061103-0100-Nightly/BuildError.html


After looking at this problem with Bill Hoffman we found the following:

The problem seem to be the result of using a newer version of binutils with
a previous version of the gcc compiler.

See for example:

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/efb694c44e3e68f5/db06d05aa6b04366?lnk=st&q=gnu.linkonce.t+discarded+section&rnum=2&hl=en#db06d05aa6b04366


In this machine there is a Gcc 4.1, 3.4, 3.3, 2.95.

It seems that the version of binutils corresponds to the version
that matches Gcc 4.1, and develop problems when linking
code that was compiled by the older compilers.

Since this doesn't seem to be an ITK issue,
we will simply skip this builds for this release.



    Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20061103/112e8017/attachment.htm


More information about the Insight-developers mailing list