计算化学公社

标题: 求教大神,想查看intel编译器目录,怎样找到路径? [打印本页]

作者
Author:
wmg166    时间: 2023-8-2 11:04
标题: 求教大神,想查看intel编译器目录,怎样找到路径?
求教大神,我安装了intel编译器,想查看intel编译器目录,想查找路径,我直接  find -name compilervars.sh 查找一下文件路径。为什么没显示路径?  怎样查找路径? 


作者
Author:
丁越    时间: 2023-8-2 11:14
假如你安装的是oneapi,以root身份安装的话在/opt/intel/oneapi中。个人用户安装就在家目录的~/intel目录下。
直接locate ifort可以查看路径
作者
Author:
乐平    时间: 2023-8-2 11:15
本帖最后由 乐平 于 2023-8-2 11:22 编辑

你截图里至少有 parallel_studio_xe_2018_cluster_edition, l_BaseKit_p_2023.1,l_HPCKit_p_2023.1(即常说的 Intel OneAPI), 你安装的是哪个版本的 Intel 编译器?

另外,如果你在安装的时候没有修改路径,也就是说,你用是默认路径。
那么你应该在 /opt/intel 路径下找。一般而言,

对于 parallel_studio 而言,
  1. source /opt/intel/parallel_studio_xe_2018/psxevars.sh intel64         (注意路径要对应你自己的安装路径)
复制代码



对于 Intel OneAPI 而言,
  1. source /opt/intel/oneapi/setvars.sh intel64      (注意路径要对应你自己的安装路径)
复制代码



另外,我看你的截图里有 VASP 6.1.2,建议看看 VASP wiki 官方推荐的编译器
https://www.vasp.at/wiki/index.php/Toolchains



作者
Author:
abdoman    时间: 2023-8-2 14:25
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。
作者
Author:
wmg166    时间: 2023-8-2 18:23
abdoman 发表于 2023-8-2 14:25
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。

好像找到了 : 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
作者
Author:
wmg166    时间: 2023-8-2 18:24
abdoman 发表于 2023-8-2 14:25
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。

是这个吗?
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
作者
Author:
wmg166    时间: 2023-8-2 18:27
乐平 发表于 2023-8-2 11:15
你截图里至少有 parallel_studio_xe_2018_cluster_edition, l_BaseKit_p_2023.1,l_HPCKit_p_2023.1(即常 ...

是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
作者
Author:
abdoman    时间: 2023-8-3 08:56
wmg166 发表于 2023-8-2 18:27
是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh

你source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
然后which icc 看有没有找到编译器,就知道了哦
作者
Author:
乐平    时间: 2023-8-3 10:57
wmg166 发表于 2023-8-2 18:27
是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh

是,这三个是等价的。

作者
Author:
wmg166    时间: 2023-8-3 15:44
abdoman 发表于 2023-8-3 08:56
你source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
然后whi ...

[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
[root@localhost /]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found


怎么办
作者
Author:
wmg166    时间: 2023-8-3 15:45
乐平 发表于 2023-8-3 10:57
是,这三个是等价的。

[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
[root@localhost /]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found


咋办  大神
作者
Author:
乐平    时间: 2023-8-3 15:59
wmg166 发表于 2023-8-3 15:45
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edit ...

……

你用 source 激活的是 Intel 的编译器,然后你调用 gcc ……

打个比方,你找你大哥帮忙,结果一进门叫人家嫂子……
作者
Author:
abdoman    时间: 2023-8-3 16:46
wmg166 发表于 2023-8-3 15:45
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edit ...

echo $SHELL; 看root默认是csh 还是bash

# csh 就
source compilervars.csh
#bash 就
source compilervars.sh

看看返回什么,默认是
compilervars.sh [-arch] <arch> [-platform <platform>]

  <arch> must be one of the following:
      ia32           : Set up for IA-32 target.
      intel64        : Set up for Intel(R)64 target.
  <platform> must be of the following:
      android        : Set to Android* target.
      linux          : Set to Linux* target.(default)

If the arguments to the sourced script are ignored (consult docs
for your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE to pass <arch> to the script
and COMPILERVARS_PLATFORM to pass <platform>

作者
Author:
wmg166    时间: 2023-8-4 10:53
乐平 发表于 2023-8-3 15:59
……

你用 source 激活的是 Intel 的编译器,然后你调用 gcc ……

大神  您比喻的很形象, 我应该怎样操作,输入什么代码?  
作者
Author:
wmg166    时间: 2023-8-4 11:04
abdoman 发表于 2023-8-3 16:46
echo $SHELL; 看root默认是csh 还是bash

# csh 就

[root@localhost ~]# echo $SHELL
/bin/bash
[root@localhost ~]# source compilervars.sh
-bash: compilervars.sh: No such file or directory

咋办 ?  大神
作者
Author:
乐平    时间: 2023-8-4 12:56
wmg166 发表于 2023-8-4 11:04
[root@localhost ~]# echo $SHELL
/bin/bash
[root@localhost ~]# source compilervars.sh

你自己在标题上也写了也问了 “如何找到路径?”

说白了,程序就是快递小哥,你想寄快递,是不是要告诉快递小哥具体的地址?
比如 XX省 YY市 ZZ街 A楼 B号房间 收件人姓名 联系方式
这样快递小哥才能给你寄到啊

你之前还能 cd 到具体路径(相当于来到了 XX省 YY市 ZZ街 A楼 B号房间,所以之前你可以直接喊人名了),怎么这次你就不知道 cd 到具体路径了呢……
即使不事先 cd 到具体路径,也可以 source 的时候写路径,如下
  1. source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
复制代码


另外,你的 Linux 系统是哪个发行版本? CentOS? Ubuntu? Rocky Linux?
是新安装的吗? 如果是,你是否安装了 gcc 编译器?从前面的报错看,可能没有安装 gcc,你需要根据发行版本来确定安装命令
CentOS 输入

  1. sudo yum install -y centos-release-scl
  2. sudo yum install -y devtoolset-9
  3. scl enable devtoolset-9 bash
复制代码



Rocky Linux 输入

  1. sudo dnf install epel-release
  2. sudo dnf install gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran
复制代码


Ubuntu 输入
  1. sudo apt install make build-essential g++ gfortran
复制代码



查看  gcc 的版本
  1. gcc -v
复制代码

作者
Author:
wmg166    时间: 2023-8-5 17:55
乐平 发表于 2023-8-2 11:15
你截图里至少有 parallel_studio_xe_2018_cluster_edition, l_BaseKit_p_2023.1,l_HPCKit_p_2023.1(即常 ...

我安装的是 paralellel_studio  ,这是我的输入,没找到,该咋办  求指点

[root@localhost ~]# find -name compilervars.sh
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
[root@localhost /]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found
[root@localhost bin]# cd
[root@localhost ~]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/
-bash: cd: ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/: No such file or directory
[root@localhost ~]# source compilervars.sh intel64
-bash: compilervars.sh: No such file or directory
[root@localhost ~]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/
-bash: cd: ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/: No such file or directory
[root@localhost ~]# cd /home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found
[root@localhost bin]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/
-bash: cd: ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/: No such file or directory
[root@localhost bin]# cd
[root@localhost ~]# /home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/
-bash: /home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/: Is a directory
[root@localhost ~]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/
-bash: cd: ./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/: No such file or directory
[root@localhost ~]# echo $SHELL
/bin/bash
[root@localhost ~]# source compilervars.sh
-bash: compilervars.sh: No such file or directory
[root@localhost ~]# source /opt/intel/parallel_studio_xe_2018/psxevars.sh intel64         (注意路径要对应你自己的安装路径)
-bash: syntax error near unexpected token `('
[root@localhost ~]# source ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
-bash: ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh: No such file or directory
[root@localhost ~]#

作者
Author:
乐平    时间: 2023-8-5 22:06
wmg166 发表于 2023-8-5 17:55
我安装的是 paralellel_studio  ,这是我的输入,没找到,该咋办  求指点

[root@localhost ~]# find -n ...

哎…… 你仔细看了我写的内容没有……

我后面写了如何查看 gcc 版本,以及如何安装 gcc
作者
Author:
wmg166    时间: 2023-8-6 10:49
乐平 发表于 2023-8-5 22:06
哎…… 你仔细看了我写的内容没有……

我后面写了如何查看 gcc 版本,以及如何安装 gcc

大神   安装您的指点,安装上gcc了 :
[root@localhost ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-9/root/usr --mandir=/opt/rh/devtoolset-9/root/usr/share/man --infodir=/opt/rh/devtoolset-9/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-9.3.1-20200408/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)

作者
Author:
wmg166    时间: 2023-8-6 10:54
wmg166 发表于 2023-8-6 10:49
大神   安装您的指点,安装上gcc了 :
[root@localhost ~]# gcc -v
Using built-in specs.

接下来,是不是已经加载intel编译器了 ?  接下来为了避免每次都这么加载,输入这些吗:   source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
作者
Author:
乐平    时间: 2023-8-6 14:10
本帖最后由 乐平 于 2023-8-6 15:21 编辑
wmg166 发表于 2023-8-6 10:54
接下来,是不是已经加载intel编译器了 ?  接下来为了避免每次都这么加载,输入这些吗:   source /home/ ...
是不是已经加载intel编译器了 ?

你目前只加载了 gcc,还没加载 Intel 编译器。
如果你需要用到 Intel 编译器,需要输入
  1. source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
复制代码


然后检测是否成功加载了 Intel C 编译器
  1. icc -v
复制代码

检测是否成功加载了 Intel Fortran 编译器
  1. ifort -v
复制代码

检测是否成功加载了 Intel C++ 编译器
  1. icpc -v
复制代码

检测是否成功加载了 Intel MKL 数学库
  1. echo $MKLROOT
复制代码

检测是否成功加载了 Intel mpi
  1. which mpirun
复制代码
接下来为了避免每次都这么加载

什么叫为了避免每次都这么加载……  
需要用到编译器的时候,gcc 和 Intel 编译器都需要加载。
建议直接写入提交任务的脚本里,不建议直接写入 ~/.bashrc 环境变量文件里。

作者
Author:
wmg166    时间: 2023-8-6 15:14
乐平 发表于 2023-8-6 14:10
你目前只加载了 gcc,还没加载 Intel 编译器。
如果你需要用到 Intel 编译器,需要输入

[root@localhost ~]# source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
compilervars.sh [-arch] <arch> [-platform <platform>]

  <arch> must be one of the following:
      ia32           : Set up for IA-32 target.
      intel64        : Set up for Intel(R)64 target.
  <platform> must be of the following:
      android        : Set to Android* target.
      linux          : Set to Linux* target.(default)

If the arguments to the sourced script are ignored (consult docs
for your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE to pass <arch> to the script
and COMPILERVARS_PLATFORM to pass <platform>

作者
Author:
wmg166    时间: 2023-8-6 15:16
[root@localhost ~]# icc -v
icc version 18.0.0 (gcc version 9.0.0 compatibility)

作者
Author:
wmg166    时间: 2023-8-6 15:16
[root@localhost ~]# ifort -v
ifort version 18.0.0

作者
Author:
wmg166    时间: 2023-8-6 15:19
本帖最后由 wmg166 于 2023-8-6 15:20 编辑
wmg166 发表于 2023-8-6 15:16
[root@localhost ~]# ifort -v
ifort version 18.0.0

大神,威武,基本都加载了,好像没有这个,怎么办:
ipcp -v
bash: ipcp: command not found

作者
Author:
乐平    时间: 2023-8-6 15:22
本帖最后由 乐平 于 2023-8-6 15:23 编辑
wmg166 发表于 2023-8-6 15:19
大神,威武,基本都加载了,好像没有这个,怎么办:
ipcp -v
bash: ipcp: command not found

icpc -v

前面笔误写错了,已经更正

另外,
  1. source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
复制代码



作者
Author:
wmg166    时间: 2023-8-6 15:27
乐平 发表于 2023-8-6 15:22
icpc -v

前面笔误写错了,已经更正

icpc -v
icpc version 18.0.0 (gcc version 9.0.0 compatibility)
   

大神厉害
作者
Author:
wmg166    时间: 2023-8-6 16:28
乐平 发表于 2023-8-6 15:22
icpc -v

前面笔误写错了,已经更正

大神,加载了 gcc和 Intel 编译器,之后,是不是要编译,产生库文件,是这样编译吗?
我输入: cd /home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/mkl/interfaces/fftw3xf   

make libintel64

最后一行出现:ar: creating libfftw3xf_intel.a
rm -rf ./obj_intel
make[1]: Leaving directory '/home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/mkl/interfaces/fftw3xf'
[root@localhost fftw3xf]#

作者
Author:
乐平    时间: 2023-8-6 20:50
wmg166 发表于 2023-8-6 16:28
大神,加载了 gcc和 Intel 编译器,之后,是不是要编译,产生库文件,是这样编译吗?
我输入: cd /home ...

这是编译 Intel MKL 对应的快速傅里叶变换库 fftw3 Fortran 版本。
你成功了。
作者
Author:
wmg166    时间: 2023-8-11 17:14
乐平 发表于 2023-8-6 20:50
这是编译 Intel MKL 对应的快速傅里叶变换库 fftw3 Fortran 版本。
你成功了。

太好了  ,谢谢大神指导,我接下来打算安装 vasp软件。  
作者
Author:
乐平    时间: 2023-8-11 20:30
wmg166 发表于 2023-8-11 17:14
太好了  ,谢谢大神指导,我接下来打算安装 vasp软件。

我看你第一个帖子里贴图是 vasp 6.1.2 ?

如果你的老师买了版权,建议下载最新的 vasp 6.4.1
作者
Author:
wmg166    时间: 2023-8-16 17:01
大神  解压vasp 6.1.2后,运行 make std   或者 make all 出错,咋办?

[root@localhost ~]# cd /opt/vasp.6.1.2/
bash: cd: /opt/vasp.6.1.2/: No such file or directory
[root@localhost ~]# cd /opt
[root@localhost opt]# ls
intel  parallel_studio_xe_2018_cluster_edition  rh  software  vasp.6.1.2_patched
[root@localhost opt]# cd  vasp.6.1.2_patched
[root@localhost vasp.6.1.2_patched]# ls
arch  bin  build  makefile  README.md  src  testsuite  tools
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux.intel.
cp: missing destination file operand after 鈇rch/makefile.include.linux.intel.?
Try 'cp --help' for more information.
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux_intel.
cp: missing destination file operand after 鈇rch/makefile.include.linux_intel.?
Try 'cp --help' for more information.
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux_intel .
[root@localhost vasp.6.1.2_patched]# ls
arch  bin  build  makefile  makefile.include.linux_intel  README.md  src  testsuite  tools
[root@localhost vasp.6.1.2_patched]# mv makefile.include.linux_intel makefile.include  
[root@localhost vasp.6.1.2_patched]# make std
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
make[1]: rsync: Command not found
make[1]: *** [makefile:154: lib] Error 127
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]# make all
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
make[1]: rsync: Command not found
make[1]: *** [makefile:154: lib] Error 127
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]#

作者
Author:
wmg166    时间: 2023-8-16 17:24
wmg166 发表于 2023-8-16 17:01
大神  解压vasp 6.1.2后,运行 make std   或者 make all 出错,咋办?

[root@localhost ~]# cd /opt/v ...

我 yum install rsync
运行  make std
出现提示:
make[3]: *** [makefile:31: sites.o] Error 2
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[2]: *** [makefile:12: all] Error 2
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[1]: *** [makefile:156: parser] Error 2
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]# make all
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib -j1
make[2]: Entering directory '/opt/vasp.6.1.2_patched/build/std/lib'
make libdmy.a
make[3]: Entering directory '/opt/vasp.6.1.2_patched/build/std/lib'
make[3]: 'libdmy.a' is up to date.
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/lib'
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/lib'
rsync -ru ../../src/parser .
cp makefile.include parser
make -C parser -j1
make[2]: Entering directory '/opt/vasp.6.1.2_patched/build/std/parser'
make libparser.a
make[3]: Entering directory '/opt/vasp.6.1.2_patched/build/std/parser'
icpc -D YY_parse_DEBUG=1 -c sites.cpp -o sites.o
In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: type name is not allowed
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                                 ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                  from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: type name is not allowed
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                                      ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: identifier "__is_assignable" is undefined
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                 ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/ios_base.h(46),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/ios(42),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/ostream(38),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/iostream(39),
                 from sites.cpp(2):
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined
        if (__builtin_is_constant_evaluated())
            ^

compilation aborted for sites.cpp (code 2)
make[3]: *** [makefile:31: sites.o] Error 2
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[2]: *** [makefile:12: all] Error 2
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[1]: *** [makefile:156: parser] Error 2
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2





欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3