[Insight-users] Error message while compiling ITK.

Linglan Edwards Linglan Edwards <linglan at nlm . nih . gov>
Thu, 15 Aug 2002 11:02:04 -0400 (EDT)


Hi,

I changed the -02 -g to -g as you suggested, and got the following error 
message:
-------------------------> cut here <------------------------------
c++   -shared -nostdlib -g -ftemplate-depth-50 -o   libCurves2DExtractorLib.so   
ceExtractorConsoleGUI.o  ceExtractorConsole.o  ceExtractorConsoleBase.o 
-L/DevSrc/itk/Insight/Utilities/zlib -L/DevSrc/itk/Insight/Utilities/png 
-L/DevSrc/itk/Insight/Utilities/MetaIO -L/DevSrc/itk/Insight/Code/Common 
-L/DevSrc/itk/Insight/Code/IO -L/DevSrc/itk/Insight/Code/Numerics/vxl 
-L/DevSrc/itk/Insight/Code/BasicFilters -L/DevSrc/itk/Insight/Code/Algorithms 
-L/DevSrc/itk/Insight/Auxiliary/FltkImageViewer 
-L/DevSrc/itk/Insight/Examples/Curves2DExtractor -L/home/linglan/lib -lpthread 
-ldl -lITKAlgorithms -lVXLNumerics -lITKCommon -lITKBasicFilters -lm -lITKCommon 
-lITKBasicFilters -lITKIO -lMetaIO -litkpng -litkzlib -lFltkImageViewer -lfltk 
-lGL -lGLU  -lSM -lICE  -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext 
-lsocket  -lnsl -lm 
-Wl,-R,/DevSrc/itk/Insight/Utilities/zlib:/DevSrc/itk/Insight/Utilities/png:/Dev
Src/itk/Insight/Utilities/MetaIO:/DevSrc/itk/Insight/Code/Common:/DevSrc/itk/Ins
ight/Code/IO:/DevSrc/itk/Insight/Code/Numerics/vxl:/DevSrc/itk/Insight/Code/Basi
cFilters:/DevSrc/itk/Insight/Code/Algorithms:/DevSrc/itk/Insight/Auxiliary/FltkI
mageViewer:/DevSrc/itk/Insight/Examples/Curves2DExtractor:/home/linglan/lib 
Text relocation remains                         referenced
    against symbol                 offset      in file
<unknown>                          0x10e4      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10e8      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10ec      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10f0      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10f4      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10f8      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x10fc      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x1100      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x1104      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x1108      /home/linglan/lib/libfltk.a(Fl.o)
<unknown>                          0x110c      /home/linglan/lib/libfltk.a(Fl.o)

....

ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
c++   -shared -nostdlib -g -ftemplate-depth-50 -o \
  libCurves2DExtractorLib.so \
  ceExtractorConsoleGUI.o  ceExtractorConsole.o  ceExtractorConsoleBase.o 
-L/DevSrc/itk/Insight/Utilities/zlib -L/DevSrc/itk/Insight/Utilities/png 
-L/DevSrc/itk/Insight/Utilities/MetaIO -L/DevSrc/itk/Insight/Code/Common 
-L/DevSrc/itk/Insight/Code/IO -L/DevSrc/itk/Insight/Code/Numerics/vxl 
-L/DevSrc/itk/Insight/Code/BasicFilters -L/DevSrc/itk/Insight/Code/Algorithms 
-L/DevSrc/itk/Insight/Auxiliary/FltkImageViewer 
-L/DevSrc/itk/Insight/Examples/Curves2DExtractor -L/home/linglan/lib -lpthread 
-ldl -lITKAlgorithms -lVXLNumerics -lITKCommon -lITKBasicFilters -lm -lITKCommon 
-lITKBasicFilters -lITKIO -lMetaIO -litkpng -litkzlib -lFltkImageViewer -lfltk 
-lGL -lGLU  -lSM -lICE  -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext 
-lsocket  -lnsl -lm 
-Wl,-R,/DevSrc/itk/Insight/Utilities/zlib:/DevSrc/itk/Insight/Utilities/png:/Dev
Src/itk/Insight/Utilities/MetaIO:/DevSrc/itk/Insight/Code/Common:/DevSrc/itk/Ins
ight/Code/IO:/DevSrc/itk/Insight/Code/Numerics/vxl:/DevSrc/itk/Insight/Code/Basi
cFilters:/DevSrc/itk/Insight/Code/Algorithms:/DevSrc/itk/Insight/Auxiliary/FltkI
mageViewer:/DevSrc/itk/Insight/Examples/Curves2DExtractor:/home/linglan/lib 
make: Fatal error: Command failed for target `libCurves2DExtractorLib.so'
Current working directory /DevSrc/itk/Insight/Examples/Curves2DExtractor
*** Error code 1
The following command caused the error:
make -  all
make: Fatal error: Command failed for target `default_target'
Current working directory /DevSrc/itk/Insight/Examples/Curves2DExtractor
*** Error code 1
The following command caused the error:
cd /DevSrc/itk/Insight/Examples/Curves2DExtractor; make - default_target
make: Fatal error: Command failed for target `default_target_Curves2DExtractor'
Current working directory /DevSrc/itk/Insight/Examples
*** Error code 1
The following command caused the error:
make -  all
make: Fatal error: Command failed for target `default_target'
Current working directory /DevSrc/itk/Insight/Examples
*** Error code 1
The following command caused the error:
cd /DevSrc/itk/Insight/Examples; make - default_target
make: Fatal error: Command failed for target `default_target_Examples'
Current working directory /DevSrc/itk/Insight
*** Error code 1
The following command caused the error:
make -  all
make: Fatal error: Command failed for target `default_target'
------------------> cut here <----------------------

Anything else I should try?

Thanks,

Linglan

>X-Unix-From: bill.hoffman@kitware.com  Wed Aug 14 14:45:00 2002
>X-Sender: krunner7@pop.nycap.rr.com
>Date: Wed, 14 Aug 2002 14:45:02 -0400
>To: Linglan Edwards <linglan@nlm.nih.gov>, luis.ibanez@kitware.com
>From: Bill Hoffman <bill.hoffman@kitware.com>
>Subject: Re: [Insight-users] Error message while compiling ITK.
>Cc: insight-users@public.kitware.com
>Mime-Version: 1.0
>
>I would try changing the -O2 -g to a -g.
>What version of gcc are you using?
>
>-Bill
>
>
>At 02:21 PM 8/14/2002 -0400, Linglan Edwards wrote:
>>Hi Luis,
>>
>>No. I was compiling it on Sun workstation running SunOS 5.8.
>>
>>Linglan
>>
>>>Date: Wed, 14 Aug 2002 14:11:18 -0400
>>>From: Luis Ibanez <luis.ibanez@kitware.com>
>>>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.8) 
>>Gecko/20020204
>>>X-Accept-Language: en-us
>>>MIME-Version: 1.0
>>>To: Linglan Edwards <linglan@nlm.nih.gov>
>>>CC: insight-users@public.kitware.com
>>>Subject: Re: [Insight-users] Error message while compiling ITK.
>>>Content-Transfer-Encoding: 7bit
>>>
>>>Hi Linglan,
>>>
>>>Have you installed service pack 5 for Visual Studio ?
>>>
>>>http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/default.asp
>>>
>>>Luis
>>>
>>>==================================================
>>>
>>>Linglan Edwards wrote:
>>>> Hi,
>>>> 
>>>> I got the following error message when I tried to compile ITK (just got it 
>>via 
>>>> cvs). Does anyone know what could be causing it?
>>>> 
>>>> Thanks,
>>>> 
>>>> Linglan
>>>> 
>>>> ---------
>>>> 
>>>> .....
>>>> c++: Internal compiler error: program as got fatal signal 10
>>>> *** Error code 1
>>>> The following command caused the error:
>>>> c++ -g -O2 -ftemplate-depth-50 
-I/DevSrc/itk/Insight/Testing/Code/Algorithms 
>>>> -I/DevSrc/itk/Insight -I/DevSrc/itk/Insight/Code/Numerics 
>>>> -I/DevSrc/itk/Insight/Code/Common -I/DevSrc/itk/Insight/Code/IO 
>>>> -I/DevSrc/itk/Insight/Code/Numerics/vxl 
>>-I/DevSrc/itk/Insight/Code/Numerics/vxl 
>>>> -I/DevSrc/itk/Insight/Code/Numerics/vxl/vcl 
>>>> -I/DevSrc/itk/Insight/Code/Numerics/vxl/vcl 
>>-I/DevSrc/itk/Insight/Utilities/png 
>>>> -I/DevSrc/itk/Insight/Utilities/zlib -I/DevSrc/itk/Insight/Utilities/MetaIO 
>>>> -I/DevSrc/itk/Insight/Code/BasicFilters 
-I/DevSrc/itk/Insight/Code/Algorithms 
>>>> -I/DevSrc/itk/Insight/Code/Numerics/Statistics   -D_PTHREADS -c 
>>>> 
>>/DevSrc/itk/Insight/Testing/Code/Algorithms/itkMultiResolutionPDEDeformableReg
is
>>>> trationTest.cxx -o itkMultiResolutionPDEDeformableRegistrationTest.o
>>>> make: Fatal error: Command failed for target 
>>>> `itkMultiResolutionPDEDeformableRegistrationTest.o'
>>>> Current working directory /DevSrc/itk/Insight/Testing/Code/Algorithms
>>>
>>>
>>>
>>
>>============================
>>Linglan Edwards, Ph.D.
>>Senior Software Engineer
>>National Library of Medicine
>>Phone: (301) 435-3147
>>Email: linglan@nlm.nih.gov
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-users 
>
>

============================
Linglan Edwards, Ph.D.
Senior Software Engineer
National Library of Medicine
Phone: (301) 435-3147
Email: linglan@nlm.nih.gov