yuki-kimoto / SPVM

SPVM Language
https://metacpan.org/pod/SPVM
MIT License
60 stars 14 forks source link

cc memory too many error to test TestCase::Module::Array 147Kbyte file in precompilation. #519

Closed yuki-kimoto closed 2 months ago

yuki-kimoto commented 2 months ago

cc memory too many error to test TestCase::Module::Array 147Kbyte file in precompilation.

cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
t/03_precompile/.spvm_build/work/src/SPVM/TestCase/Module/Array.precompile.c file cannnot be compiled by the following command:
cc -c -o t/03_precompile/.spvm_build/work/object/SPVM/TestCase/Module/Array.precompile.o -std=gnu99 -O3 -pthread -fPIC -I/home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Builder/include t/03_precompile/.spvm_build/work/src/SPVM/TestCase/Module/Array.precompile.c
 at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Builder/CC.pm line 253.
        SPVM::Builder::CC::compile_source_file(SPVM::Builder::CC=HASH(0x5648aa0ae638), SPVM::Builder::CompileInfo=HASH(0x5648aa710a68)) called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Builder/CC.pm line 566
        SPVM::Builder::CC::compile_class(SPVM::Builder::CC=HASH(0x5648aa0ae638), "TestCase::Module::Array", HASH(0x5648aa063af8)) called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Builder.pm line 197
        SPVM::Builder::build(SPVM::Builder=HASH(0x5648aa0646c8), "TestCase::Module::Array", HASH(0x5648aa064938)) called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Builder.pm line 131
        SPVM::Builder::build_jit(SPVM::Builder=HASH(0x5648aa0646c8), "TestCase::Module::Array", HASH(0x5648a887e6f0)) called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Global.pm line 134
        SPVM::Global::load_dynamic_lib(SPVM::Builder::Native::Runtime=HASH(0x5648a9295860), "TestCase::Module::Array") called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM/Global.pm line 63
        SPVM::Global::build_class("TestCase::Module::Array", "t/03_precompile/08_module/Array.t", 9) called at /home/kimoto/labo/modules/SPVM/blib/lib/SPVM.pm line 18
        SPVM::import("SPVM", "TestCase::Module::Array") called at t/03_precompile/08_module/Array.t line 9
        main::BEGIN() called at t/03_precompile/08_module/Array.t line 9
        eval {...} called at t/03_precompile/08_module/Array.t line 9
BEGIN failed--compilation aborted at t/03_precompile/08_module/Array.t line 9.

This is a problem. Method unit precompilation and native method are required.

yuki-kimoto commented 2 months ago

This is my environment problem.