[Insight-users] compile error ITK 3.4

Rupert Brooks rupe.brooks at gmail.com
Fri Mar 28 16:15:01 EDT 2008


Logged as http://www.itk.org/Bug/view.php?id=6677

Thanks
Rupert B.

On Fri, Mar 28, 2008 at 2:50 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Yes, please log a bug.
>
> Thanks,
>
> Bill
>
>
> On Fri, Mar 28, 2008 at 11:42 AM, Rupert Brooks <rupe.brooks at gmail.com> wrote:
> > Hi Bill,
> >
> > In the top level CMakeCache.txt it is:
> > CMAKE_C_COMPILER:FILEPATH=/opt/ofed/1.2.5.5/mpi/gcc/mvapich-0.9.9/bin/mpicc
> >
> > But i see the problem - there is a string "icc" in the compiler name,
> > even though that is not the compiler, per se.  I got around it by
> > putting the icc part in that CMakeLists in an ELSE block from the
> > preceding IF(COMPILER_IS_GNU_CC).  So far so good, the build is
> > progressing
> >
> > Strangely, this did not affect me on another machine where i was using
> > MPI.... and the compiler was also called mpicc.
> >
> > Should I log a bug on this?
> >
> > Rupert
> >
> >
> >
> > On Fri, Mar 28, 2008 at 12:24 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> > > Rupert,
> > >
> > > That flag is set in Insight/Utilities/vxl/v3p/netlib/CMakeLists.txt
> > >
> > > It should only be set if the c compiler is the intel compiler: icc.
> > > I'm not sure why this would be happening in your case.
> > >
> > > What is the value of CMAKE_C_COMPILER in your cache?
> > >
> > > Bill
> > >
> > >
> > > On Fri, Mar 28, 2008 at 8:19 AM, Rupert Brooks <rupe.brooks at gmail.com> wrote:
> > > > Hi,
> > > >
> > > > I'm trying to build ITK 3.4 on a 64bit linux system .  I'm getting an
> > > > error i havent seen before in the VXL compile
> > > >
> > > > [ 34%] Building C object
> > > > Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/dlamch.o
> > > > cc1: error: unrecognized command line option "-fp_port"
> > > > make[2]: *** [Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/dlamch.o]
> > > > Error 1
> > > > make[1]: *** [Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/all] Error 2
> > > > make: *** [all] Error 2
> > > >
> > > > The compiler im using is gcc 4.1.2, configured to support MPI.
> > > > Looking in the GCC manual, i cant find what -fp_port is.  Its also not
> > > > obvious to me where this parameter comes from, its not in any of the
> > > > options of the top level ITK cmake.  (Perhaps its buried down in the
> > > > VXL part somewhere.)
> > > >
> > > > Has anyone seen this, or have suggestions?
> > > >
> > > > Thanks
> > > > Rupert B.
> > > >
> > > > Some details, in case they help
> > > > [brooksru at ip01 Release]$ mpiCC --version
> > > > g++ (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
> > > > Copyright (C) 2006 Free Software Foundation, Inc.
> > > > This is free software; see the source for copying conditions.  There is NO
> > > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> > > >
> > > > [brooksru at ip01 Release]$ uname -a
> > > > Linux ip01 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30 EST 2008
> > > > x86_64 x86_64 x86_64 GNU/Linux
> > > >
> > > > [brooksru at ip01 Release]$ make VERBOSE=1
> > > >
> > > > <snipped>
> > > >
> > > > [ 34%] Building C object
> > > > Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/dlamch.o
> > > > /opt/ofed/1.2.5.5/mpi/gcc/mvapich-0.9.9/bin/mpicc  -w -w -O3 -DNDEBUG
> > > > -I/home/brooksru/itk/build/Release
> > > > -I/home/brooksru/itk/src/Insight/Code/Algorithms
> > > > -I/home/brooksru/itk/src/Insight/Code/BasicFilters
> > > > -I/home/brooksru/itk/src/Insight/Co
> > > > de/Common -I/home/brooksru/itk/src/Insight/Code/Numerics
> > > > -I/home/brooksru/itk/src/Insight/Code/IO
> > > > -I/home/brooksru/itk/src/Insight/Code/Numerics/FEM
> > > > -I/home/brooksru/itk/src/Insight/Code/Numerics/Statistics
> > > > -I/home/brooksru/itk/src/Insight/Code/Numerics/NeuralNetworks
> > > > -I/home/brooksru/itk/src/Insight/Code/SpatialObject
> > > > -I/home/brooksru/itk/src/Insight/Utilities/MetaIO
> > > > -I/home/brooksru/itk/src/Insight/Utilities/NrrdIO
> > > > -I/home/brooksru/itk/src/Insight/Utilities/DICOMParser
> > > > -I/home/brooksru/itk/build/Release/Utilities/DICOMParser
> > > > -I/home/brooksru/itk/build/Release/Utilities/expat
> > > > -I/home/brooksru/itk/src/Insight/Utilities/expat
> > > > -I/home/brooksru/itk/src/Insight/Utilities/nifti/niftilib
> > > > -I/home/brooksru/itk/src/Insight/Utilities/nifti/znzlib
> > > > -I/home/brooksru/itk/src/Insight/Utilities/itkExtHdrs
> > > > -I/home/brooksru/itk/build/Release/Utilities
> > > > -I/home/brooksru/itk/src/Insight/Utilities
> > > > -I/home/brooksru/itk/build/Release/Code/Common
> > > > -I/home/brooksru/itk/src/Insight/Utilities/vxl/vcl
> > > > -I/home/brooksru/itk/src/Insight/Utilities/vxl/core
> > > > -I/home/brooksru/itk/build/Release/Utilities/vxl/vcl
> > > > -I/home/brooksru/itk/build/Release/Utilities/vxl/core
> > > > -I/home/brooksru/itk/build/Release/Utilities/gdcm
> > > > -I/home/brooksru/itk/src/Insight/Utilities/gdcm/src
> > > > -I/home/brooksru/itk/src/Insight/Utilities/vxl/v3p/netlib
> > > > -DV3P_NETLIB_SRC -fp_port -o
> > > > Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/dlamch.o
> > > > -c /home/brooksru/itk/src/Insight/Utilities/vxl/v3p/netlib/blas/dlamch.c
> > > > cc1: error: unrecognized command line option "-fp_port"
> > > > make[2]: *** [Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/dlamch.o]
> > > > Error 1
> > > > make[2]: Leaving directory `/home/brooksru/itk/build/Release'
> > > > make[1]: *** [Utilities/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/all] Error 2
> > > > make[1]: Leaving directory `/home/brooksru/itk/build/Release'
> > > > make: *** [all] Error 2
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > Rupert Brooks
> > > > McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
> > > > Ph.D Student, Electrical and Computer Engineering
> > > > http://www.cyberus.ca/~rbrooks
> > > > _______________________________________________
> > > > Insight-users mailing list
> > > > Insight-users at itk.org
> > > > http://www.itk.org/mailman/listinfo/insight-users
> > > >
> > >
> >
> >
> >
> > --
> >
> > --------------------------------------------------------------
> > Rupert Brooks
> > McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
> > Ph.D Student, Electrical and Computer Engineering
> > http://www.cyberus.ca/~rbrooks
> >
>



-- 
--------------------------------------------------------------
Rupert Brooks
McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
Ph.D Student, Electrical and Computer Engineering
http://www.cyberus.ca/~rbrooks


More information about the Insight-users mailing list