[Insight-users] Problems installing WrapITK on 64-bit Fedora Core 6

Benjamin Goldenberg bgoldenberg at numirabio.com
Fri Jul 13 16:44:43 EDT 2007


On Fri, 2007-07-13 at 16:31 -0400, Bill Hoffman wrote:
> Benjamin Goldenberg wrote:
> > On Thu, 2007-07-12 at 17:45 -0400, Bill Hoffman wrote:
> >   
> >>>> If you set BUILD_SHARED in ccmake that should build it shared, but the 
> >>>> other should work.
> >>>> You would need also to change CMAKE_C_FLAGS as well as CXX.
> >>>>     
> >>>>         
> >>> I am pretty sure -fPIC is being used for building vnl. I have set it in
> >>> CMAKE_C_FLAGS and CMAKE_CXX_FLAGS, and using VERBOSE=1 seems to indicate
> >>> it is being used. Even, so I am still getting the same error. The
> >>> BUILD_SHARED option does not seem to be present in ccmake. For
> >>> clarification, I am calling ccmake ../WrapITK in a build directory I
> >>> created for WrapITK. 
> >>>   
> >>>       
> >> OK, WrapITK may not have a BUILD_SHARED option...   You should do a 
> >> remove of this file: vnl_matrix_fixed_ref+float.3.3-.o
> >>
> >>
> >>
> >> /usr/bin/ld: 
> >> /usr/local/lib/InsightToolkit/libitkvnl.a(vnl_matrix_fixed_ref+float.3.3-.o): 
> >> relocation R_X86_64_32 against `a local symbol' can not be used when 
> >> making a shared object; recompile with -fPIC
> >>
> >> Then re-run make just to make sure it is compiled with -fPIC.  That 
> >> really should work....
> >>
> >> -Bill
> >>     
> >
> > Hi,
> > I realized it is actually not the same exact error, but very close:
> >
> > Linking CXX shared library ../../lib/libVXLNumericsJava.so
> > /usr/bin/ld: /usr/local/lib/InsightToolkit/libitkvnl.a(vnl_math.o):
> > relocation R_X86_64_32 against `__gxx_personality_v0' can not be used
> > when making a shared object; recompile with -fPIC
> > /usr/local/lib/InsightToolkit/libitkvnl.a: could not read symbols: Bad
> > value
> > collect2: ld returned 1 exit status
> > make[2]: *** [lib/libVXLNumericsJava.so] Error 1
> > make[1]: *** [Modules/VXLNumerics/CMakeFiles/VXLNumericsJava.dir/all]
> > Error 2
> > make: *** [all] Error 2
> >
> > In case it wasn't clear earlier, when I have changed settings in ccmake,
> > I have removed all of the files in my build directory and started over.
> > Also, I have not been building either the TCL or Java wrappers, in order
> > to simplify things. Let me know if I can send you any files or anything
> > to clear things up. Thank you very much,
> >   
> Sounds like it got a bit better, can you show me the compiler line for 
> vnl_math.o?

I'm not sure if this is what you want, but here is the last several
lines of the output from running make with VERBOSE=1:

Linking CXX shared module ../../lib/_VXLNumericsPython.so
cd /home/bgoldenberg/wrapitkbuild/Modules/VXLNumerics && /usr/bin/cmake
-P CMakeFiles/_VXLNumericsPython.dir/cmake_clean_target.cmake
cd /home/bgoldenberg/wrapitkbuild/Modules/VXLNumerics && /usr/bin/cmake
-E cmake_link_script CMakeFiles/_VXLNumericsPython.dir/link.txt
--verbose=1
/usr/bin/c++  -fPIC -fPIC  -ftemplate-depth-50   -shared
-Wl,-soname,_VXLNumericsPython.so -o ../../lib/_VXLNumericsPython.so
"CMakeFiles/_VXLNumericsPython.dir/wrap_VXLNumericsPythonPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vcl_complexPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_c_vectorPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_diag_matrixPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_matrixPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_file_vectorPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_fortran_copyPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrixPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_fixedPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_fixed_refPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_matrix_refPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vectorPython.o"
"CMakeFiles/_VXLNumericsPython.dir/wrap_vnl_vector_refPython.o"
-L/usr/local/lib/InsightToolkit -L/home/bgoldenberg/wrapitkbuild/lib
-L/usr/lib64/python2.4/config -litkvnl -litkvnl_inst -lSwigRuntimePython
-Wl,-Bstatic -lpython2.4 -Wl,-Bdynamic -litkvnl_algo -litkv3p_netlib
-litkvnl -litkvcl -lm 
/usr/bin/ld: /usr/local/lib/InsightToolkit/libitkvnl.a(vnl_math.o):
relocation R_X86_64_32 against `__gxx_personality_v0' can not be used
when making a shared object; recompile with -fPIC
/usr/local/lib/InsightToolkit/libitkvnl.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status
make[2]: *** [lib/_VXLNumericsPython.so] Error 1
make[2]: Leaving directory `/home/bgoldenberg/wrapitkbuild'
make[1]: *** [Modules/VXLNumerics/CMakeFiles/_VXLNumericsPython.dir/all]
Error 2
make[1]: Leaving directory `/home/bgoldenberg/wrapitkbuild'
make: *** [all] Error 2

Thanks,
Benjamin




More information about the Insight-users mailing list