m0_59424811 2024-09-18 12:08 采纳率: 62.5%
浏览 32
已结题

centos7系统下abinit安装时make出错

安装abinit时./configre命令通过了,但是make出现错误Deferred-length character component 'key' at (1) is not yet supported
版本

img

img

全部错误信息
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
../../../src/78_effpot/m_hashtable_strval.F90:415.27:

character(len=c_sizeof(key)) :: tmp
                       1

Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an interoperable data entity
../../../src/78_effpot/m_hashtable_strval.F90:405.27:

character(len=c_sizeof(key)) :: tmp
                       1

Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an interoperable data entity
../../../src/78_effpot/m_hashtable_strval.F90:396.27:

character(len=c_sizeof(key)) :: tmp
                       1

Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an interoperable data entity
../../../src/78_effpot/m_hashtable_strval.F90:387.27:

character(len=c_sizeof(key)) :: tmp
                       1

Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an interoperable data entity
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
../../../src/78_effpot/m_hashtable_strval.F90:377.66:

      call self%vec(i)%print_entry(label=label, prefix=prefix)
                                                              1

Error: 'print_entry' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:363.38:

      call self%vec(i)%print_all()
                                  1

Error: 'print_all' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:348.16:

    s=s+self%vec(i)%sum_entry(label=label, prefix=prefix)
            1

Error: 'sum_entry' at (1) should be a FUNCTION
../../../src/78_effpot/m_hashtable_strval.F90:350.17:

    s=s+ self%vec(i)%sum_val()
             1

Error: 'sum_val' at (1) should be a FUNCTION
../../../src/78_effpot/m_hashtable_strval.F90:322.32:

      CALL tbl%vec(i)%free()
                            1

Error: 'free' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:310.43:

CALL tbl%vec(hash)%get(key=key,val=val)
                                       1

Error: 'get' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:299.43:

CALL tbl%vec(hash)%put(key=key,val=val)
                                       1

Error: 'put' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
../../../src/78_effpot/m_hashtable_strval.F90:256.63:

    call self%child%print_entry(label=label, prefix=prefix)
                                                           1

Error: 'print_entry' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:217.35:

    call self%child%print_all()
                               1

Error: 'print_all' at (1) should be a SUBROUTINE
../../../src/78_effpot/m_hashtable_strval.F90:203.16:

    s=s+self%child%sum_entry(label=label, prefix=prefix)
            1

Error: 'sum_entry' at (1) should be a FUNCTION
../../../src/78_effpot/m_hashtable_strval.F90:169.18:

      s=s+self%child%sum_val()
              1

Error: 'sum_val' at (1) should be a FUNCTION
../../../src/78_effpot/m_hashtable_strval.F90:70.41:

 CHARACTER(len=:), ALLOCATABLE :: key
                                     1

Error: Deferred-length character component 'key' at (1) is not yet supported
make[3]: *** [m_hashtable_strval.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/effpot_xml.Tpo .deps/effpot_xml.Po
make[3]: Leaving directory /root/local/src/abinit-9.8.2/build/src/78_effpot' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /root/local/src/abinit-9.8.2/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/local/src/abinit-9.8.2/build'
make: *** [all] Error 2

  • 写回答

22条回答 默认 最新

  • 专家-赤兔[在线] 全栈领域优质创作者 2024-09-18 12:09
    关注

    以下回复引自免费微信小程序:皆我百晓生。 如问题解决,还请采纳。如仍有疑问,请回复留言或私信博主,以便获得更精准的帮助。

    解决方法:

    1. 在MAKE命令的路径中添加/USR/BIN/MAKE
    2. 重启机器,然后尝试再次运行MAKE命令。
    3. 如果问题仍然存在,可能需要检查MAKEFILE文件中的某些配置选项或设置,例如在ABINIT_PATHABINIT_INCLUDE_DIR等关键位置进行更改。如果这些设置正确,则可能是配置问题导致的错误。
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 9月24日
  • 修改了问题 9月18日
  • 创建了问题 9月18日

悬赏问题

  • ¥15 12864只亮屏 不显示汉字
  • ¥20 三极管1000倍放大电路
  • ¥15 vscode报错如何解决
  • ¥15 前端vue CryptoJS Aes CBC加密后端java解密
  • ¥15 python随机森林对两个excel表格读取,shap报错
  • ¥15 基于STM32心率血氧监测(OLED显示)相关代码运行成功后烧录成功OLED显示屏不显示的原因是什么
  • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。
  • ¥30 求给定范围的全体素数p的(p-2)/p的连乘积值
  • ¥15 VFP如何使用阿里TTS实现文字转语音?
  • ¥100 需要跳转番茄畅听app的adb命令