计算化学公社

标题: 求助:安装QE6.7高版本gcc和低版本gcc均报错 [打印本页]

作者
Author:
心之体    时间: 2022-4-28 00:48
标题: 求助:安装QE6.7高版本gcc和低版本gcc均报错
本帖最后由 心之体 于 2022-4-28 15:22 编辑

用低版本gcc(4.8.5)configure的时候没问题,但make时会报错:
  1. Error: Assumed-shape array 'zmat' at (1) cannot be an argument to the procedure 'c_loc' because it is not C interoperable
复制代码
不过这是老问题了,就不说了。
高版本的gcc(11.2.0, 11.1.0, 9.4.0, 7.5.0都试了)直接在configure时报错:
  1. configure: error: Fortran compiler cannot create executables
  2. See `config.log' for more details
复制代码
于是我去config.log看了眼,发现错误在:(显示不全,详见二楼)
  1. configure:2536: $gccpath/bin/gfortran -V >&5
复制代码
手动试了下:
  1. gfortran: error: unrecognized command-line option '-V'
  2. gfortran: fatal error: no input files
  3. compilation terminated.
复制代码
用gfortran -gversion也是一样的结果,搜了下说是gcc在某个版本废弃了这两个选项,改用-v了。这可咋整?


作者
Author:
心之体    时间: 2022-4-28 15:20
本帖最后由 心之体 于 2022-4-28 15:21 编辑
  1. gfortran: error: unrecognized command-line option '-V'
  2. gfortran: fatal error: no input files
  3. compilation terminated.
  4. configure:2547: $? = 1
  5. configure:2536: path/gcc-11.1.0/gcc-11.2.0-oavcqmiasjjqp2lwaagcild76vfthykc/bin/gfortran -qversion >&5
  6. gfortran: error: unrecognized command-line option '-qversion'; did you mean '--version'?
  7. gfortran: fatal error: no input files
  8. compilation terminated.
复制代码

作者
Author:
心之体    时间: 2022-4-28 15:21
奇怪, config.log里内容贴在1楼不显示,请参见二楼
作者
Author:
abin    时间: 2022-4-28 16:02
qe_v6.6_intel2020u2_elpa2019_libxc_v4.3.4_hdf5_v1.12_skx_optimized
这个版本, 有兴趣吗?
支持的插件如文件名所示.
但是仅限于skx处理器平台使用.

需要机器具有singularity. AMD平台估计没法用.
更多咨询, 请查阅 https://gitee.com/hpc4you/linux





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