[Insight-users] error compiling with gcc4.4.1

Luis Ibanez luis.ibanez at kitware.com
Mon Apr 26 08:56:18 EDT 2010


Hi Eugen,

Thanks a lot for posting the configuration output of your build.

I just compared to what I get in my build of ITK 3.18 with gcc-4.1.

     * g++-4.4 (Ubuntu 4.4.1-4ubuntu9) 4.4.1
     * Ubuntu 9.10 installed in a 64bits machine.


Here are the differences:


3,4c3,4
< -- Check for working C compiler: /usr/bin/gcc
< -- Check for working C compiler: /usr/bin/gcc -- works
---
> -- Check for working C compiler: /usr/bin/gcc-4.4
> -- Check for working C compiler: /usr/bin/gcc-4.4 -- works
7,8c7,8
< -- Check for working CXX compiler: /usr/bin/c++
< -- Check for working CXX compiler: /usr/bin/c++ -- works
---
> -- Check for working CXX compiler: /usr/bin/g++-4.4
> -- Check for working CXX compiler: /usr/bin/g++-4.4 -- works
333c333
< -- Looking for C++ include emmintrin.h - not found
---
> -- Looking for C++ include emmintrin.h - found
335,337c335,343
< -- Performing Try-Run Test VXL_HAS_SSE2_HARDWARE_SUPPORT - Test
Compilation Failed
< -- Performing Test VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE
< -- Performing Test VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE - Success
---
> -- Performing Test VXL_HAS_SSE2_HARDWARE_SUPPORT - Success
> -- Performing Test VXL_HAS_MM_MALLOC
> -- Performing Test VXL_HAS_MM_MALLOC - Success
> -- Performing Test VXL_HAS_ALIGNED_MALLOC
> -- Performing Test VXL_HAS_ALIGNED_MALLOC - Failed
> -- Performing Test VXL_HAS_MINGW_ALIGNED_MALLOC
> -- Performing Test VXL_HAS_MINGW_ALIGNED_MALLOC - Failed
> -- Performing Test VXL_HAS_POSIX_MEMALIGN
> -- Performing Test VXL_HAS_POSIX_MEMALIGN - Failed
378c384
< -- Looking for 64-bit int. Found long long.
---
> -- Looking for 64-bit int. Found long.
390c396
< -- Looking for 96-bit float. Found long double.
---
> -- Looking for 96-bit float. Not found.
394c400
< -- Looking for 128-bit float. Not found.
---
> -- Looking for 128-bit float. Found long double.
510c516
< -- Build files have been written to:
/home/eugen/development/slam/Installationen/InsightToolkit/InsightToolkit-3.18.0/_build
---
> -- Build files have been written to:
/home/ibanez/src/ITK-3-18/Builds/ProblemReported


---------------------------------

Most of the differences seem to be related to 64bits vs 32bits.
(Is your Ubuntu installation a 64 bits one ? )

Also,

I'm wondering about the binary directory where you are trying
to build ITK.

Are you placing this binary directory inside the source tree of ITK ?

That can easily confuse the CMake configuration process.


   Please let us know


       Thanks


             Luis




---------------------------------------------------------------------------------------------
On Mon, Apr 26, 2010 at 5:33 AM, Eugen Funk <eugen.funk at gmail.com> wrote:

> Hi Luis, hi Bill,
>
> thank you for you responce.
> I still didnt manage to compile the toolkit.
> Maybe some information about my system gives some ides:
>
>
>    - Ubuntu 9.10
>    - gcc 4.4.1 (No other version installed)
>    - I did not set any variables (eg paths to gcc and gcc++) directly to
>    gcc in cmake. Since i do not have other compilers installed, i assume that
>    the right one is chosen. Here is the list of
>    ls /usr/bin | grep gcc
>    c89-gcc
>    c99-gcc
>    gcc
>    gcc-4.4
>    gccxml
>    gccxml_cc1plus
>    i486-linux-gnu-gcc
>    i486-linux-gnu-gcc-4.4
>    winegcc
>
> At the end I attached the whole output of cmake since i do not know which
> of checks is responsibel for the definitions used in
> Utilities/itkjpeg/jpeglib.h.
>
> Thanks again!
>
> Output:
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Looking for sys/types.h
> -
>
....snip.........
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100426/e89c6dac/attachment.htm>


More information about the Insight-users mailing list