编辑设置以允许GCC编译中的参数不匹配 [英] Edit setup to allow argument mismatch in gcc compilation

查看:0
本文介绍了编辑设置以允许GCC编译中的参数不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装this python package。不幸的是,由于排名不匹配,我遇到了编译错误。

here已报告此程序包的错误。错误报告指出,最实用的解决方案似乎是将编译器标志-休眠-参数-不匹配添加到安装脚本中。

我不知道该如何着手做这件事。Setup.py脚本仅包含以下内容:

from numpy.distutils.core import setup
from numpy.distutils.core import Extension
import os
import glob
    
ext_modules = [ Extension('orthpol_light',
                      glob.glob(os.path.join('src','*.f'))) ]

setup(
    name='orthpol_light',
    version = "1.0.1",
    license = "COPYING.LESSER",
    description = "Light python wrapper for the ORTHPOL package",
    long_description=open("README.rst").read(),
    url="http://www.limitcycle.it",
    author = "Daniele Bigoni",
    author_email = "dabi@limitcycle.it",
    ext_modules = ext_modules
)

我要把旗帜放在这里吗?我真的不知道。导致错误的文件位于src/r1mach.f

感谢帮助!

推荐答案

修复程序已在您链接的adapt-to-gcc10分支https://bazaar.launchpad.net/~catastropeia/pyorthpol/adapt-to-gcc10/revision/68

中实现

随后相关命令变为

ext_modules = [ Extension('orthpol_light',
                          glob.glob(os.path.join('src','*.f')),
                          extra_f77_compile_args=['-fallow-argument-mismatch']) ]

这篇关于编辑设置以允许GCC编译中的参数不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆