[ITK] [ITK-dev] Linker errors after recent checking on Mac

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Thu Mar 31 13:36:19 EDT 2016


HI Bill,
that commit solved the linker issues with the duplicate symbols in
itk::NumericTraits that were introduced [1] by some other commit in early
or mid March.

I acknowledge that VS10 (2010) and VS11 (2012) are some years old, and I
have not personally looked deeply into the mentioned linker issue, but was
rather affected by them, like other builds [1]; I would dare to say that it
was some commit around March, 17th that started producing the linker errors
addressed by Brad's patch.

IMHO; the solution is not to revert the commit, but to look for some
solution that makes both VS10, VS11 and Mac happy (besides the pre-merge
machines). But I guess that requires some time, and having the ability to
test on at least those additional platforms before merging, since it looks
like a clean dashboard for a given branch is not enough in this case.

I am available to test any patch and submit Experimental builds for VS10.

JON HAITZ


[1] https://open.cdash.org/viewBuildError.php?buildid=4283661




On 31 March 2016 at 17:27, Bill Lorensen <bill.lorensen at gmail.com> wrote:

> Folks,
>
> The same error appears on the Continuous builds. Should we revert the
> commit that introduced these compiler errors?
>
> Bill
>
> On Wed, Mar 30, 2016 at 1:56 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
> > This commit:
> > [e1a7be21102463c7b91c456c3fbbb020f4a00cf7] BUG: Addressing VS10 and
> > VS11 NumericTraits linkage issue
> >
> > causes link errors on my Mac clang++ compiler:
> > Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
> >
> > [ 62%] Building CXX object
> > Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkNumericTraits.cxx.o
> > Linking CXX shared library
> > ../../../ThirdParty/VNL/src/vxl/lib/libITKCommon-4.10.dylib
> > Undefined symbols for architecture x86_64:
> >   "itk::NumericTraits<char>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<char>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<signed char>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned char>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned char>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned short>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned short>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<short>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<short>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<signed char>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<int>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<int>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned int>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned int>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<long>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<long>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned long>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned long>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<long long>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<long long>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned long long>::Zero", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> >   "itk::NumericTraits<unsigned long long>::One", referenced from:
> >       __GLOBAL__I_a in itkNumericTraitsVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsTensorPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsFixedArrayPixel2.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsPointPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBAPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsCovariantVectorPixel.cxx.o
> >       __GLOBAL__I_a in itkNumericTraitsRGBPixel.cxx.o
> >       ...
> > ld: symbol(s) not found for architecture x86_64
> > clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> > make[2]: ***
> [Modules/ThirdParty/VNL/src/vxl/lib/libITKCommon-4.10.1.dylib]
> > Error 1
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160331/2a930dfc/attachment-0001.html>
-------------- next part --------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list