rakudo / star

Rakudo Star (Raku distribution)
https://rakudo.org/
Artistic License 2.0
265 stars 41 forks source link

Cannot compile on FreeBSD #150

Closed fluca1978 closed 4 years ago

fluca1978 commented 4 years ago

Don't know if it is possible to get rakudo-star running on FreeBSD, however, this is what I do:

% sudo  perl Configure.pl --gen-moar  --gen-nqp --make-install --prefix /opt/rakudo/2019.03`
...
The following step can take a long time, please be patient.
/opt/rakudo/2019.03/bin/moar --libpath="blib" --libpath="/opt/rakudo/2019.03/share/nqp/lib" --libpath="/opt/rakudo/2019.03/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      : 148.369
Stage syntaxcheck:   0.000
Stage ast        :   0.000
Stage optimize   : *** Signal 9

Stop.
make[1]: stopped in /usr/home/luca/rakudo-star-2019.03/rakudo
*** Error code 1

Stop.
make: stopped in /usr/home/luca/rakudo-star-2019.03
Command failed (status 256): make

The system information is as follows:

 % uname -a                                                                                 
FreeBSD miguel 12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 GENERIC  amd64

% clang --version
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin

% javac --version
javac 13.0.1

% perl -v

This is perl 5, version 30, subversion 1 (v5.30.1) built for amd64-freebsd-thread-multi
...

Doing an explicit gmake produced:

% sudo gmake
...
The following step can take a long time, please be patient.
/opt/rakudo/2019.03/bin/moar --libpath="blib" --libpath="/opt/rakudo/2019.03/share/nqp/lib" --libpath="/opt/rakudo/2019.03/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      : 140.010
Stage syntaxcheck:   0.000
Stage ast        :   0.000
Stage optimize   : gmake[1]: *** [Makefile:513: CORE.setting.moarvm] Killed
gmake[1]: Leaving directory '/usr/home/luca/rakudo-star-2019.03/rakudo'
gmake: *** [Makefile:44: rakudo/perl6-m] Error 2

This makes me think there is something wrong with system resources.

fluca1978 commented 4 years ago

Sorry for the noise, increasing the swap space to 3 GB made it working, and now I've installed it on my FreeBSD.

 % /opt/rakudo/2019.03/bin/perl6 --version
This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03
implementing Perl 6.d.

For the record: I started the compilation process with 1GB of swap and 700 MB of memory, then I created a swap file of 2GB and added it to the system swap space and it worked.