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

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Thu Mar 31 14:44:15 EDT 2016


Hi Bill,

On the Slicer factory (MacOSX 10.6), we were having issues with Xcode 4.2
and instead installed LLVM 3.1.

  http://llvm.org/releases/download.html#3.1

http://slicer-devel.65872.n3.nabble.com/MacOSX-factory-build-Transitioning-from-hybrid-quot-llvm-g-quot-to-quot-clang-quot-Update-to-Qt-4-8-6-tt4032198.html#a4032199

Hth
Jc

On Thu, Mar 31, 2016 at 2:34 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> I have abandoned  llvm-gcc sonce VTK no longer compiles.
>
> I am building Release with my clang and shared.
>
> On Thu, Mar 31, 2016 at 11:15 AM, Bradley Lowekamp <blowekamp at mail.nih.gov
> > wrote:
>
>> Bill,
>>
>> Was you build in release or debug mode?
>>
>> Your reporting with clang on XCode 4.2? Does llvm-gcc report the same
>> problem?
>>
>>
>> There is the following error on the dashboard that is similar[1]. This
>> requires SHARED libraries and DEBUG mode on for gcc 4.6 to get this link
>> error. It’s fine if its in release mode or built with static libraries.
>>
>> I am testing some other version of gcc.
>>
>> Thank you all for your patiences the slow progress on this issue.
>> Brad
>>
>> [1] https://open.cdash.org/viewBuildError.php?buildid=4303582
>>
>>
>> On Mar 31, 2016, at 1:36 PM, Jon Haitz Legarreta <
>> jhlegarreta at vicomtech.org> wrote:
>>
>> 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
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>>
>
>
> --
> 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
>
>


-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20160331/387cc126/attachment.html>


More information about the Insight-developers mailing list