tadzik / rakudobrew

Perl 6 installation manager
MIT License
185 stars 42 forks source link

Failed to build Moar on Fedora 25 (Cloud Edition) #112

Closed unclechu closed 7 years ago

unclechu commented 7 years ago

I run it again after fail to get last short part of log:

$ rakudobrew build moar  
48619f8364791c7949dd2f87549d54bb1422b7ef
HEAD is now at 48619f8... Handle Baggy (|) Mixy, Mixy (|) Baggy in dispatch
ATTENTION: no --prefix supplied, building and installing to /home/unclechu/.rakudobrew/moar-nom/install
Using /home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m (version 2017.03-36-ga147a17 / MoarVM 2017.03-87-g5d73bf4).
Cleaning up ...
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar src/vm/moar/ModuleLoaderVMConfig.nqp src/Perl6/ModuleLoader.nqp > gen/moar/ModuleLoader.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/ModuleLoader.moarvm --encoding=utf8 \
    gen/moar/ModuleLoader.nqp
gcc -c -fPIC -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG  -I/home/unclechu/.rakudobrew/moar-nom/install/include/libatomic_ops \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/dyncall -I/home/unclechu/.rakudobrew/moar-nom/install/include/moar \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/sha1 -I/home/unclechu/.rakudobrew/moar-nom/install/include/tinymt  -I/home/unclechu/.rakudobrew/moar-nom/install/include/libtommath \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/libuv -I/home/unclechu/.rakudobrew/moar-nom/install/include  -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomic_ops/src -I3rdparty/libtommath -I3rdparty/dynasm -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback -o dynext/perl6_ops.o src/vm/moar/ops/perl6_ops.c
gcc -c -fPIC -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -Wdeclaration-after-statement -Werror=declaration-after-statement -O3 -DNDEBUG  -I/home/unclechu/.rakudobrew/moar-nom/install/include/libatomic_ops \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/dyncall -I/home/unclechu/.rakudobrew/moar-nom/install/include/moar \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/sha1 -I/home/unclechu/.rakudobrew/moar-nom/install/include/tinymt  -I/home/unclechu/.rakudobrew/moar-nom/install/include/libtommath \
    -I/home/unclechu/.rakudobrew/moar-nom/install/include/libuv -I/home/unclechu/.rakudobrew/moar-nom/install/include  -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomic_ops/src -I3rdparty/libtommath -I3rdparty/dynasm -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback -o dynext/container.o src/vm/moar/ops/container.c
gcc  -L/home/unclechu/.rakudobrew/moar-nom/install/lib -shared -fPIC -O3 -DNDEBUG -Wl,-rpath,"//home/unclechu/.rakudobrew/moar-nom/install/lib"  -O3 -DNDEBUG -lm -lpthread -lrt -ldl -o dynext/libperl6_ops_moar.so dynext/perl6_ops.o dynext/container.o -lmoar 
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Ops.moarvm --encoding=utf8 \
    src/vm/moar/Perl6/Ops.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/DebugPod.moarvm --encoding=utf8 \
    src/Perl6/DebugPod.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Pod.moarvm --encoding=utf8 \
    src/Perl6/Pod.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/World.moarvm --encoding=utf8 \
    src/Perl6/World.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar src/Perl6/Actions.nqp > gen/moar/Perl6-Actions.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Actions.moarvm --encoding=utf8 \
    gen/moar/Perl6-Actions.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Grammar.moarvm --encoding=utf8 \
    src/Perl6/Grammar.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar src/Perl6/Optimizer.nqp > gen/moar/Perl6-Optimizer.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Optimizer.moarvm --encoding=utf8 \
    gen/moar/Perl6-Optimizer.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Compiler.moarvm --encoding=utf8 \
    src/Perl6/Compiler.nqp
/usr/bin/perl tools/build/gen-version.pl /home/unclechu/.rakudobrew/moar-nom/install > gen/moar/main-version.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar src/main.nqp gen/moar/main-version.nqp > gen/moar/main.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=perl6.moarvm \
    --vmlibs=dynext/libperl6_ops_moar.so=Rakudo_ops_init gen/moar/main.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar -f tools/build/common_bootstrap_sources > gen/moar/Metamodel.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/Metamodel.moarvm --encoding=utf8 \
    gen/moar/Metamodel.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar src/Perl6/Metamodel/BOOTSTRAP.nqp src/Perl6/Metamodel/EXPORTHOW.nqp  > gen/moar/BOOTSTRAP.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m --target=mbc --output=blib/Perl6/BOOTSTRAP.moarvm --encoding=utf8 \
        --vmlibs=dynext/libperl6_ops_moar.so=Rakudo_ops_init gen/moar/BOOTSTRAP.nqp
/home/unclechu/.rakudobrew/moar-nom/install/bin/nqp-m tools/build/gen-cat.nqp moar -f tools/build/moar_core_sources > gen/moar/CORE.setting
The following step can take a long time, please be patient.
/home/unclechu/.rakudobrew/moar-nom/install/bin/moar --libpath="/home/unclechu/.rakudobrew/moar-nom/install/share/nqp/lib" --libpath="/home/unclechu/.rakudobrew/moar-nom/install/share/nqp/lib" perl6.moarvm --nqp-lib=blib --setting=NULL --ll-exception --optimize=3 --target=mbc --stagestats --output=CORE.setting.moarvm gen/moar/CORE.setting
Stage start      :   0.000
Stage parse      : Makefile:469: recipe for target 'CORE.setting.moarvm' failed
make: *** [CORE.setting.moarvm] Killed
Command failed (status 512): make
Failed running /usr/bin/perl Configure.pl --backends=moar --gen-moar --git-reference="/home/unclechu/.rakudobrew/bin/../git_reference" --make-install  at /home/unclechu/.rakudobrew/bin/rakudobrew line 58.
        main::run("/usr/bin/perl Configure.pl --backends=moar --gen-moar --git-r"...) called at /home/unclechu/.rakudobrew/bin/rakudobrew line 386
        main::build_impl("moar", undef, "") called at /home/unclechu/.rakudobrew/bin/rakudobrew line 116
# uname -a
Linux metafedor25.localdomain 4.10.8-200.fc25.x86_64 #1 SMP Fri Mar 31 13:20:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# hostnamectl 
   Static hostname: metafedor25.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: e720de6302e5435783bbd543f0a2f90a
           Boot ID: c67f1fc32d764dd09456fba1bddbdd19
    Virtualization: kvm
  Operating System: Fedora 25 (Cloud Edition)
       CPE OS Name: cpe:/o:fedoraproject:fedora:25
            Kernel: Linux 4.10.8-200.fc25.x86_64
      Architecture: x86-64
MasterDuke17 commented 7 years ago

"Killed" like that usually means the OOM killer struck. How much ram do you have in your vm? Rakudo somewhere around 2G, so if you only have around that much you may need to add some swap.

tadzik commented 7 years ago

Yep, looks like you ran out of ram during rakudo compilation itself, so not rakudobrew's fault. Feel free to reopen if rakudo compiles normally without rakudobrew, but from what I can see, as @MasterDuke17 says, your VM is just too small for rakudo in general.