codon icon indicating copy to clipboard operation
codon copied to clipboard

pip3 install codon-jit error is valid for C/ObjC but not for C++

Open yincangshiwei opened this issue 2 years ago • 5 comments

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 ‘{, message}’ from ‘’ to ‘codon::jit::JITResult’ static JITResult error(const std::string &message) { return {nullptr, message}; } ^ error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for codon-jit image

yincangshiwei avatar Dec 23 '22 06:12 yincangshiwei

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?

inumanag avatar Jan 04 '23 01:01 inumanag

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

yincangshiwei avatar Jan 29 '23 06:01 yincangshiwei

Same issue here

Jong-hun-Park avatar Feb 16 '23 18:02 Jong-hun-Park

@inumanag

yincangshiwei avatar Mar 16 '23 03:03 yincangshiwei

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.

clevey avatar Mar 21 '23 05:03 clevey