计算化学公社

 找回密码 Forget password
 注册 Register
Views: 2589|回复 Reply: 3
打印 Print 上一主题 Last thread 下一主题 Next thread

[Quantum ESPRESSO] 求助:安装QE6.7高版本gcc和低版本gcc均报错

[复制链接 Copy URL]

10

帖子

0

威望

75

eV
积分
85

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
本帖最后由 心之体 于 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了。这可咋整?

10

帖子

0

威望

75

eV
积分
85

Level 2 能力者

2#
 楼主 Author| 发表于 Post on 2022-4-28 15:20:11 | 只看该作者 Only view this author
本帖最后由 心之体 于 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.
复制代码

10

帖子

0

威望

75

eV
积分
85

Level 2 能力者

3#
 楼主 Author| 发表于 Post on 2022-4-28 15:21:06 | 只看该作者 Only view this author
奇怪, config.log里内容贴在1楼不显示,请参见二楼

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

4#
发表于 Post on 2022-4-28 16:02:24 | 只看该作者 Only view this author
qe_v6.6_intel2020u2_elpa2019_libxc_v4.3.4_hdf5_v1.12_skx_optimized
这个版本, 有兴趣吗?
支持的插件如文件名所示.
但是仅限于skx处理器平台使用.

需要机器具有singularity. AMD平台估计没法用.
更多咨询, 请查阅 https://gitee.com/hpc4you/linux
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-19 19:57 , Processed in 0.151175 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list