llvmlite/numba 编译:g++:错误:无法识别的命令行选项“-Wcovered-switch-default" [英] llvmlite / numba compile: g++: error: unrecognized command line option ‘-Wcovered-switch-default’

查看:117
本文介绍了llvmlite/numba 编译:g++:错误:无法识别的命令行选项“-Wcovered-switch-default"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从 https://github.com/numba 编译 llvmlite 或 numba,我得到了>

Trying to compile llvmlite or numba from https://github.com/numba I am getting

g++: error: unrecognized command line option ‘-Wcovered-switch-default’

任何有关如何解决此问题的帮助将不胜感激.- 标记

any help on how to fix this would be most appreciated. - mark

推荐答案

参见 https://github.com/numba/numba/wiki/Build-0.33-on-ubuntu-16.04 寻求解决方案:基本上确保使用发行版附带的 llvm:

See https://github.com/numba/numba/wiki/Build-0.33-on-ubuntu-16.04 for a solution: basically make sure to the use the llvm that comes with the distribution:

apt-get install llvm-3.9
export LLVM_CONFIG=$(which llvm-config-3.9)

=> 会正常工作

为什么?因为你可以从 http://llvm.org 下载的 llvm 是用 clang 构建的,而附带的那个与 distribuiotn 是用 g++ 构建的(我认为)

Why? its beause the llvm that you can downlaod from http://llvm.org was built with clang, whereas the one that comes with the distribuiotn was built with g++ (I think)

这篇关于llvmlite/numba 编译:g++:错误:无法识别的命令行选项“-Wcovered-switch-default"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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