llvmlite / numba compile: g++: error: unrecognized command line option ‘-Wcovered-switch-default’

家住魔仙堡 提交于 2021-02-19 06:22:05

问题


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


回答1:


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)

=> will work ok

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)



来源:https://stackoverflow.com/questions/35795582/llvmlite-numba-compile-g-error-unrecognized-command-line-option-wcovere

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!