[Insight-users] error when building itk

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jan 5 04:32:24 EST 2005


Hi,


On Tue, 4 Jan 2005 22:04:12 -0500, Lorensen, William E (Research)  
<lorensen at crd.ge.com> wrote:

> If you are having problems with the cvs version and gcc3.4 please post  
> them.


I still got errors if I build python wrapper :

make[5]: Entering directory  
`/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics'
Building wrap_vnl_matrix.xml from   
/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.xml...
/usr/bin/gccxml -fxml-start=_cable_  
-fxml=/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.xml  
--gccxml-
gcc-options  
/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics/SwigInc.txt  
-DCSWIG -DCABLE_CONFIGURATION /home/papha/
glehmann/itk/Insight/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.cxx
In file included from /usr/include/c++/3.4.1/complex:50,
                  from  
/home/papha/glehmann/itk/Insight/Utilities/vxl/vcl/iso/vcl_complex.h:6,
                  from  
/home/papha/glehmann/itk/Insight/Utilities/vxl/vcl/vcl_complex.h:62,
                  from  
/home/papha/glehmann/itk/Insight/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.cxx:17:
/usr/include/c++/3.4.1/cmath: In function `float std::acos(float)':
/usr/include/c++/3.4.1/cmath:103: error: `__builtin_acosf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath:103: error: (Each undeclared identifier is
    reported only once for each function it appears in.)
/usr/include/c++/3.4.1/cmath: In function `long double std::acos(long  
double)':
/usr/include/c++/3.4.1/cmath:107: error: `__builtin_acosl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::asin(float)':
/usr/include/c++/3.4.1/cmath:120: error: `__builtin_asinf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::asin(long  
double)':
/usr/include/c++/3.4.1/cmath:124: error: `__builtin_asinl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::atan(float)':
/usr/include/c++/3.4.1/cmath:135: error: `__builtin_atanf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::atan(long  
double)':
/usr/include/c++/3.4.1/cmath:139: error: `__builtin_atanl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::atan2(float, float)':
/usr/include/c++/3.4.1/cmath:150: error: `__builtin_atan2f' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::atan2(long  
double,
    long double)':
/usr/include/c++/3.4.1/cmath:154: error: `__builtin_atan2l' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::ceil(float)':
/usr/include/c++/3.4.1/cmath:166: error: `__builtin_ceilf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::ceil(long  
double)':
/usr/include/c++/3.4.1/cmath:170: error: `__builtin_ceill' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::cosh(float)':
/usr/include/c++/3.4.1/cmath:196: error: `__builtin_coshf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::cosh(long  
double)':
/usr/include/c++/3.4.1/cmath:200: error: `__builtin_coshl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::floor(float)':
/usr/include/c++/3.4.1/cmath:241: error: `__builtin_floorf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::floor(long  
double)
    ':
/usr/include/c++/3.4.1/cmath:245: error: `__builtin_floorl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::fmod(float, float)':
/usr/include/c++/3.4.1/cmath:256: error: `__builtin_fmodf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::fmod(long  
double,
    long double)':
/usr/include/c++/3.4.1/cmath:260: error: `__builtin_fmodl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::frexp(float, int*)':
/usr/include/c++/3.4.1/cmath:266: error: `__builtin_frexpf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::frexp(long  
double,
    int*)':
/usr/include/c++/3.4.1/cmath:270: error: `__builtin_frexpl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::ldexp(float, int)':
/usr/include/c++/3.4.1/cmath:281: error: `__builtin_ldexpf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::ldexp(long  
double,
    int)':
/usr/include/c++/3.4.1/cmath:285: error: `__builtin_ldexpl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::log10(float)':
/usr/include/c++/3.4.1/cmath:311: error: `__builtin_log10f' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::log10(long  
double)
    ':
/usr/include/c++/3.4.1/cmath:315: error: `__builtin_log10l' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::modf(float, float*)':
/usr/include/c++/3.4.1/cmath:326: error: `__builtin_modff' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::modf(long  
double,
    long double*)':
/usr/include/c++/3.4.1/cmath:330: error: `__builtin_modfl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::pow(float, float)':
/usr/include/c++/3.4.1/cmath:345: error: `__builtin_powf' undeclared  
(first use
    this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::pow(long  
double,
    long double)':
/usr/include/c++/3.4.1/cmath:349: error: `__builtin_powl' undeclared  
(first use
    this function)
/usr/include/c++/3.4.1/cmath: In function `float std::sinh(float)':
/usr/include/c++/3.4.1/cmath:382: error: `__builtin_sinhf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::sinh(long  
double)':
/usr/include/c++/3.4.1/cmath:386: error: `__builtin_sinhl' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `float std::tan(float)':
/usr/include/c++/3.4.1/cmath:412: error: `__builtin_tanf' undeclared  
(first use
    this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::tan(long  
double)':
/usr/include/c++/3.4.1/cmath:416: error: `__builtin_tanl' undeclared  
(first use
    this function)
/usr/include/c++/3.4.1/cmath: In function `float std::tanh(float)':
/usr/include/c++/3.4.1/cmath:427: error: `__builtin_tanhf' undeclared  
(first
    use this function)
/usr/include/c++/3.4.1/cmath: In function `long double std::tanh(long  
double)':
/usr/include/c++/3.4.1/cmath:431: error: `__builtin_tanhl' undeclared  
(first
    use this function)
make[5]: ***  
[/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics/wrap_vnl_matrix.xml]  
Erreur 1
make[5]: Leaving directory  
`/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics'
make[4]: *** [default_target] Erreur 2
make[4]: Leaving directory  
`/home/papha/glehmann/itk/build/Wrapping/CSwig/VXLNumerics'
make[3]: *** [default_target_VXLNumerics] Erreur 2
make[3]: Leaving directory `/home/papha/glehmann/itk/build/Wrapping/CSwig'
make[2]: *** [default_target] Erreur 2
make[2]: Leaving directory `/home/papha/glehmann/itk/build/Wrapping/CSwig'
make[1]: *** [default_target_Wrapping_CSwig] Erreur 2
make[1]: Leaving directory `/home/papha/glehmann/itk/build'
make: *** [default_target] Erreur 2



> Our nightly 3.4 build is doing just fine.
>
> Bill
>
> -----Original Message-----
> From: Gaetan Lehmann [mailto:gaetan.lehmann at jouy.inra.fr]
> Sent: Tuesday, January 04, 2005 4:51 AM
> To: Radim Adolt; insight-users at itk.org
> Subject: Re: [Insight-users] error when building itk
>
>
>
>
> Hi,
>
> you have to use gcc 3.3 to build itk 1.8
> You can also checkout itk from cvs, but I still have errors if I activate
> some options...
> I am currently building itk packages for mandrake. I hope problems will  
> be
> resolved soon so I can add it to contrib :-)
>
>
> On Tue, 4 Jan 2005 10:35:32 +0100, Radim Adolt <adolt at mendelu.cz> wrote:
>
>> Could somebody give me a hand with following problem ?
>>
>> configuration with Cmake seemed to be ok,
>> running the make command I got this error message
>>
>> "
>>
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_spar
> se_matrix.txx:
>> In member function `void vnl_sparse_matrix<T>::set_row(unsigned int,
>> const
>> std::vector<int, std::allocator<int> >&, const std::vector<T,
>> std::allocator<_CharT> >&) [with T = vnl_rational]':
>>
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/Template
> s/vnl_sparse_matrix+vnl_rational-.cxx:5:
>> instantiated from here
>>
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_spar
> se_matrix.txx:446:
>> error: dependent-name `vnl_sparse_matrix_pair<T>::less' is parsed as a
>> non-type, but instantiation yields a type
>>
> /home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_spar
> se_matrix.txx:446:
>> note: say `typename vnl_sparse_matrix_pair<T>::less' if a type is meant
>> make[9]: *** [Templates/vnl_sparse_matrix+vnl_rational-.o] Error 1
>> make[8]: *** [default_target] Error 2
>> make[7]: *** [default_target_vnl] Error 2
>> make[6]: *** [default_target] Error 2
>> make[5]: *** [default_target_core] Error 2
>> make[4]: *** [default_target] Error 2
>> make[3]: *** [default_target_vxl] Error 2
>> make[2]: *** [default_target] Error 2
>> make[1]: *** [default_target_Utilities] Error 2
>> make: *** [default_target] Error 2
>> "
>> I work on Linux - Mandrake 10.1 community, the version of my gcc
>> compiler is
>> gcc 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
>> I also tried to compile VXL prior to ITK but simillar kind of problem
>> occured
>> with VXL.
>> My guess is - provided the source code is ok (I belive it is) - there
>> might be
>> something wrong within my compiler.
>> Please could you help me somhow, have somebody experienced a problem  
>> like
>> this ?
>> many thanks
>> R. A.
>
>
>



-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 22 34
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
 


More information about the Insight-users mailing list