使用mpicxx时由于_noalias而导致OpenMPI的构建失败

我不在乎

我尝试在较新的11Aug17版本的部门计算机上安装lammps。但是,mpicxx为以下行提供了错误:

mpicxx -g -O3   -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1   -I/home/shixx597/codes/kim-api-v1.7.3/lib/kim-api-v1/include  -c ../pair_list.cpp
../pair_list.cpp(88): error: expected a ";"
    const dbl3_t * _noalias const x = (dbl3_t *) atom->x[0];
                            ^

../pair_list.cpp(89): error: "restrict" has already been declared in the current scope
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
             ^

../pair_list.cpp(89): error: expected a ";"
    dbl3_t * _noalias const f = (dbl3_t *) atom->f[0];
                      ^

../pair_list.cpp(114): error: identifier "x" is undefined
      const double dx = x[i].x - x[j].x;
                        ^

../pair_list.cpp(160): error: identifier "f" is undefined
          f[i].x += dx*fpair;
          ^

../pair_list.cpp(166): error: identifier "f" is undefined
          f[j].x -= dx*fpair;
          ^

compilation aborted for ../pair_list.cpp (code 2)
make[1]: *** [pair_list.o] Error 2
make[1]: Leaving directory `/home/shixx597/codes/lammps-11Aug17/src/Obj_mpi'
make: *** [mpi] Error 2

我的同事告诉我,这是openmpi的问题。因此,我尝试为我安装一个新的openmpi。但是,我收到以下错误告诉我,没有像这样安装automake:

 cd . && /bin/sh /home/shixx597/codes/openmpi-3.0.0/config/missing automake-1.15 --foreign
/home/shixx597/codes/openmpi-3.0.0/config/missing: line 81: automake-1.15: command not found
WARNING: 'automake-1.15' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [Makefile.in] Error 1

When I tried to install automake-1.15, I get the following error:
CDPATH="${ZSH_VERSION+.}:" && cd . && "/home/shixx597/codes/automake-1.15/t/wrap/aclocal-1.15" 
Can't locate /home/shixx597/codes/automake-1.15/bin/aclocal in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/shixx597/codes/automake-1.15/t/wrap/aclocal-1.15 line 29.
make: *** [aclocal.m4] Error 2

我没有任何sudo特权,无法在此奇怪的部门计算机上执行任何操作。

即使我试图完成在部门机器上安装lammps的操作,我也在想是否可以完成大型绑定力场模型的运行。

亚历山大·侯萨

实际上,这是一个众所周知的问题,并且有三个解决方案。

  1. 使用GCC而不是Intel编译器(可能是不可取的)。
  2. -restrict编译时使用标志(我假设在运行make时将其附加make CXX_FLAGS=-restrict
  3. 只需从构建中删除这两个文件。

如果您真的想尝试,也可以尝试_noalias使用sed或awk从两个有问题的文件中删除关键字:pair_list.hpair_list.cpp,或者只是将其定义_noalias为空关键字,如jww在评论中所建议。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Flutter - 使用 google_maps_flutter 插件时由于权限错误导致构建失败

由于缺少库而导致构建失败

由于条件导致WiX构建失败

当由于错误的gradle版本而导致构建失败时,安装gradle包装器

由于`package ...不存在,导致简单gradle构建失败

由于仅通过终端版本而导致构建失败

由于composer命令调用,导致Travis-CI的构建失败

由于权限不足Windows 10导致Ant构建失败

使用 Hibernate Search 时由于 lucene 锁导致 Spring Boot 集成测试失败

由于超时,构建失败

由于夏令时更改而导致测试失败

使用SSL连接到Kafka集群时,Apache Camel导致PKIX路径构建失败异常

增量导致构建失败

由于UnsupportedClassVersionError,使用JDK 6进行Maven构建失败

由于Google匿名使用数据问题,CircleCI构建失败

由于Lombok导致编译失败

由于Lombok导致编译失败

Doctest由于Unicode导致失败

由于 ModuleNotFoundError 导致 pytest 失败

为什么由于缺少自定义本地存储库的apklib依赖关系而导致构建失败?

iOS- 由于 pod 依赖文件中的方法名称过时而导致构建失败

具有MSBuild Runner的SonarQube 6.5由于HTTP 400错误而导致构建失败

尽管缺少堆栈ghci,但由于缺少包而导致堆栈构建失败

由于 broccoliBuilderError,Ember 构建失败

由于app:transformClassesWithJarMergingForDebug',构建失败

由于链接,IOS 构建失败

Selinux在使用AuthorizedKeysCommand时导致sshd失败

使用SQLAlchemy时SAM构建失败

使用Lambda时,Maven插件构建失败