vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 2
声望: 0

gcc -pthread -B /home/parallels/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DBRIGAND_NO_BOOST_SUPPORT=1 -Ivnpy/api/oes/include -Ivnpy/api/oes/vnoes -I/home/parallels/miniconda3/include/python3.7m -c vnpy/api/oes/vnoes/generated_files/classes_1.cpp -o build/temp.linux-x86_64-3.7/vnpy/api/oes/vnoes/generated_files/classes_1.o -std=c++17 -O3 -Wno-delete-incomplete -Wno-sign-compare
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from vnpy/api/oes/include/autocxxpy/autocxxpy.hpp:8:0,
from vnpy/api/oes/vnoes/generated_files/classes_1.cpp:4:
vnpy/api/oes/include/autocxxpy/callback_wrapper.hpp:76:106: warning: ‘selectany’ attribute directive ignored [-Wattributes]
AUTOCXXPY_SELECT_ANY pybind11::detail::overload_caster_t<ret_type> pybind11_static_caster<ret_type>::caster;
^~
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.

error: command 'gcc' failed with exit status 4
--------------------------------------------------------------

gcc版本
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
------------------------------------------------------------分割--------------------------
在ubuntu18.04编译vnpy2.02时出现这个错误,两天没能解决,看起来是编译oes模块时报的错。对应是执行setup.py 的下面这部份
vnoes = Extension(
"vnpy.api.oes.vnoes",
[
"vnpy/api/oes/vnoes/generated_files/classes_1.cpp",
"vnpy/api/oes/vnoes/generated_files/classes_2.cpp",
"vnpy/api/oes/vnoes/generated_files/module.cpp",
],
include_dirs=["vnpy/api/oes/include",
"vnpy/api/oes/vnoes", ],
define_macros=[("BRIGAND_NO_BOOST_SUPPORT", "1")],
undef_macros=[],
library_dirs=["vnpy/api/oes/libs"],
libraries=["oes_api"],
extra_compile_args=compiler_flags,
extra_link_args=extra_link_args,
runtime_library_dirs=["$ORIGIN"],
depends=[],
language="cpp",
)

希望了解的大神能支招搭救一下,不胜感激。。。

Administrator
avatar
加入于:
帖子: 8
声望: 1

内存不够,至少需要5G的可用物理内存。

Administrator
avatar
加入于:
帖子: 2146
声望: 99

内存不足吧?你的内存多大

Member
avatar
加入于:
帖子: 2
声望: 0

的确是内存不够导致,已编译成功,谢谢大家。

Member
avatar
加入于:
帖子: 1
声望: 0

实测,2G 物理内存+2G swap 可以编译。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3