[petsc-users] compile petsc error about mmintrin.h

Gong Ding gdiso at ustc.edu
Fri Mar 25 01:57:05 CDT 2011


On centos5 with icc version 11.1, factimpl.c produced many errors such as 

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/mmintrin.h(78): error: cast to type "__m64" is not allowed
    return (__m64) __i;

This problem exists for a long time. In the petsc version of 3.1, I just comment out 
#ifndef PETSC_HAVE_XMMINTRIN_H
#define PETSC_HAVE_XMMINTRIN_H 1
#endif
in the petscconf.h, and compile it.

However, petsc-dev has other dependence on mmintrin.h, comment out PETSC_HAVE_XMMINTRIN_H will product other problems. 
How can I solve this problem?


BTW, it seems gcc works well.

Gong Ding





More information about the petsc-users mailing list