Gcc mpicc中的编译错误。属性"__非空;忽略外部内部访问(\uuuu const char*\uuuu name,int类型)

Gcc mpicc中的编译错误。属性"__非空;忽略外部内部访问(\uuuu const char*\uuuu name,int类型),gcc,compiler-errors,mpi,mpich,Gcc,Compiler Errors,Mpi,Mpich,我的程序在一个超级计算中心运行。今天早上,我要求经理安装mvapich2-2.0rc1(启用多线程)。但是在安装之后,编译时会出现很多错误。错误如下: /usr/include/unistd.h(256): error #1292: attribute "__nonnull__" ignored extern int access (__const char *__name, int __type) __THROW __nonnull ((1));

我的程序在一个超级计算中心运行。今天早上,我要求经理安装mvapich2-2.0rc1(启用多线程)。但是在安装之后,编译时会出现很多错误。错误如下:

/usr/include/unistd.h(256): error #1292: attribute "__nonnull__" ignored
  extern int access (__const char *__name, int __type) __THROW __nonnull ((1));
                                                               ^

/usr/include/unistd.h(432): error #1292: attribute "__nonnull__" ignored
       __THROW __nonnull ((1)) __wur;
               ^

/usr/include/unistd.h(442): error #1292: attribute "__nonnull__" ignored
       __THROW __nonnull ((1)) __wur;
               ^

/usr/include/unistd.h(455): error #1292: attribute "__nonnull__" ignored
  extern int chdir (__const char *__path) __THROW __nonnull ((1)) __wur;
                                                  ^

/usr/include/unistd.h(483): error #1292: attribute "__nonnull__" ignored
       __THROW __nonnull ((1)) __attribute_deprecated__ __wur;
......
如果我使用openmpi编译器,我的程序是正常的。但是为什么使用mvapich2-2.0rc1会有这么多错误呢

生成文件是:

exe_framework:*.* ../common/* ../data.h

/home/users/twang/mpi2/mvapich2-2.0rc1-icc.ifort-9.1-enable-mpi-threads/bin/mpicc *.c ../common/*.c -o exe_framework -g -lpthread -lm -rdynamic -Werror
如何解决这个问题?或者,通过delete-Werror参数忽略这些问题可以吗