[Insight-developers] Iowa SGI Builds

Hans J. Johnson hjohnson at psychiatry.uiowa.edu
Thu Aug 12 14:50:12 EDT 2004


An update to CMAKE v2.0.3 failed on our SGI's and that is why the dashboards
have not showed up the past few days.  Hopefully they will start coming back
later (very late actually) tonight.

Hans


-----Original Message-----
From: insight-developers-bounces at itk.org
[mailto:insight-developers-bounces at itk.org] On Behalf Of William A. Hoffman
Sent: Thursday, August 12, 2004 9:47 AM
To: Miller, James V (Research); Lorensen, William E (Research); 'Luis
Ibanez'; Lorensen, William E (Research); Insight Developers List
Subject: RE: [Insight-developers] RE: C++ prelinker: error:bad instantiat
ion request file --

OK, I did a bit of digging and found the problem.
Between cmake 1.4 and cmake 1.6, cmake dropped the variable
CMAKE_TEMPLATE_FLAGS.   ITK was depending on that variable to
set the flags correctly for the SGI.   I will add the flags
back into ITK where they should have been from the start.

I am going to change this:

IF("x${CMAKE_TEMPLATE_FLAGS}" MATCHES "^x.*[^ ]")
  SET(ITK_REQUIRED_CXX_FLAGS "${ITK_REQUIRED_CXX_FLAGS}
${CMAKE_TEMPLATE_FLAGS}")
ENDIF("x${CMAKE_TEMPLATE_FLAGS}" MATCHES "^x.*[^ ]")

(which did nothing since cmake 1.4)

To this:

IF(CMAKE_SYSTEM MATCHES "IRIX.*")
  IF(NOT CMAKE_COMPILER_IS_GNUCXX)
    SET(ITK_REQUIRED_CXX_FLAGS "${ITK_REQUIRED_CXX_FLAGS} -ptused
-no_prelink")
  ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
ENDIF(CMAKE_SYSTEM MATCHES "IRIX.*")

After I make this commit, it would be nice if the dashboard maintainers for
the SGI builds could remove the flags from the CMakeCache so that we can
verify
that this stays working.   People building ITK on the SGI should not have to
know
that you have to add some flags to build ITK.


-Bill

At 10:56 AM 8/12/2004, William A. Hoffman wrote:
>Yep, there it is....  I guess I did not get enough sleep last night.
>Perhaps we should change the CMakeLists.txt files in ITK to automatically
>add these flags: -ptused -no_prelink.
>If that is the only way to build ITK, then it should be automatic.
>
>
>-Bill
>
>
>At 10:39 AM 8/12/2004, Miller, James V (Research) wrote:
>>I see a -no_prelink in the uiowa flags.
>>
>>
>>
>>-----Original Message-----
>>From: William A. Hoffman [mailto:billlist at nycap.rr.com]
>>Sent: Thursday, August 12, 2004 9:39 AM
>>To: Lorensen, William E (Research); 'Luis Ibanez'; Lorensen, William E
>>(Research); Insight Developers List
>>Subject: Re: [Insight-developers] RE: C++ prelinker: error: bad
>>instantiation request file --
>>
>>
>>
>>
>>IT would seem that the uiowa SGI does not need to turn off the prelink:
>>
>>http://www.itk.org/Testing/Sites/kraepelin.uiowa/IRIX64-CC-7.3-opt/2004080
6-
>>0500-Nightly/Notes.html
>>
>>//No help, variable specified on the command line.
>>CMAKE_CXX_FLAGS:STRING= -n32 -O3 -DNDEBUG -G0 -multigot  -xansi -LANG:std
>>-LANG:ansi-for-init-scope=ON  -woff
>>15,84,1110,1209,1424,1468,3102,3210,3439 -ptused -no_prelink
>>
>>However, there are two things to note.
>>
>>1. the uiowa SGI has not submitted a dashboard for a few days, since
>>we are doing a release perhaps we should figure out why?
>>
>>2. There is not SGI that is testing Applications right now.
>>
>>-Bill
>>
>>At 10:23 PM 8/11/2004, Lorensen, William E (Research) wrote:
>>>Here's what I use on the SGI,
>>>
>>>CMAKE_CXX_FLAGS:STRING=-Wl,-woff84 -Wl,-woff15 -ptused -no_prelink 
>>> 
>>>
>>>-----Original Message-----
>>>From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
>>>Sent: Wednesday, August 11, 2004 10:04 PM
>>>To: Lorensen, William E (Research); Insight Developers List
>>>Subject: C++ prelinker: error: bad instantiation request file -- 
>>>
>>>
>>>
>>>Bill,
>>>
>>>We are assisting a research group for
>>>building ITK in an SGI but got the
>>>interesting error message below.
>>>
>>>Does it rings any bell regarding some
>>>compiler/linker option that should be
>>>used with the native compiler CC in IRIX ?
>>>
>>>
>>>   Thanks
>>>
>>>
>>>     Luis
>>>
>>>
>>>
>>>----------------------------------------------------
>>>
>>>     Building object file itkIsoContourDistanceImageFilterTest.o...
>>>     Building object file itkFastChamferDistanceImageFilterTest.o...
>>>     Building object file itkCurvesLevelSetImageFilterTest.o...
>>>     Building object file itkNarrowBandCurvesLevelSetImageFilterTest.o...
>>>     Building object file 
>>>itkNarrowBandThresholdSegmentationLevelSetImageFilterTest.o...
>>>     Building executable
/export/local/ITK-1.8.0/bin/itkAlgorithmsTests...
>>>     C++ prelinker: error: itk::ImageFunction<itk::Image<unsigned 
>>>char,(const unsigned int)2>,double,double>::SetInputImage(const 
>>>itk::Image<unsigned char,(const unsigned int)2>*) assigned to 
>>>itkKullbackLeiblerCompareHistogramImageToImageMetricTest.o and 
>>>itkDemonsRegistrationFilterTest.o
>>>     C++ prelinker: error: bad instantiation request file -- 
>>>instantiation assigned to more than one file
>>>     *** Error code 2 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     *** Error code 1 (bu21)
>>>     visage 113#
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-developers mailing list
>>>Insight-developers at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-developers 
>>
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers at itk.org
>>http://www.itk.org/mailman/listinfo/insight-developers 
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers 

_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers




More information about the Insight-developers mailing list