codon
codon copied to clipboard
pip3 install codon-jit error is valid for C/ObjC but not for C++
cc1plus: 警告:command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [默认启用]
In file included from codon/jit.cpp:765:0:
/root/.codon/include/codon/compiler/jit_extern.h: 在静态成员函数‘static codon::jit::JITResult codon::jit::JITResult::error(const string&)’中:
/root/.codon/include/codon/compiler/jit_extern.h:19:64: 错误:‘nullptr’在此作用域中尚未声明
static JITResult error(const std::string &message) { return {nullptr, message}; }
^
/root/.codon/include/codon/compiler/jit_extern.h:19:80: 错误:could not convert ‘{
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for codon-jit
Hi @yincangshiwei
This seems to be an issue with Cython or your Python environment—we do not use this flag at all. Which OS/Python distro this is, please?
Hi@yincangshiwei
This seems to be an issue with Cython or your Python environment—we do not use this flag at all. Which OS/Python distro this is, please?
centos7 system.python version 3.85
Same issue here
@inumanag
try to update your gcc/g++ version. when i use default gcc 5.4 of ub16, same error appear. after upgrade gcc to version 9 and set to /usr/bin default gcc softlink, install success.