fglock / Perlito

"Perlito" Perl programming language compiler
http://fglock.github.io/Perlito/
Other
414 stars 47 forks source link

can't "make" under Windows 10 w/Strawberry Perl 5.18 x64 #64

Closed 62mkv closed 3 years ago

62mkv commented 3 years ago

Hi all. I've tried to build this project using Strawberry Perl 5.18.4 by running make and here is what I've got:

----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.TXT for more info
----------------------------------------------
Perl executable: C:\Perl518\perl\bin\perl.exe
Perl version   : 5.18.4 / MSWin32-x64-multi-thread

C:\Perl518>cd c:/code/perlito

c:\Code\perlito>make
perl perlito5.pl --bootstrapping -Isrc5/lib -Cperl5 src5/util/perlito5.pl > perlito5-new.pl && cp perlito5-new.pl perlito5.pl
perl perlito5.pl --bootstrapping -I./src5/lib -Cjs src5/util/perlito5.pl > perlito5.js
syntax error at perlito5.pl line 9700, near "sub Perlito5::AST::Num::emit_javascript2 "
Can't use global @_ in "my" at perlito5.pl line 9701, near "= @_"
syntax error at perlito5.pl line 10392, near "}"
syntax error at perlito5.pl line 10408, near "}"
syntax error at perlito5.pl line 12227, near "}"
syntax error at perlito5.pl line 12235, near "}"
syntax error at perlito5.pl line 12596, near "}"
syntax error at perlito5.pl line 13195, near "}"
syntax error at perlito5.pl line 13815, near "}"
syntax error at perlito5.pl line 14046, near "}"
perlito5.pl has too many errors.
make: *** [build-5js] Error 255

can you advice what are prerequisites for a properly building this project? can it be done under Windows at all? Many thanks

62mkv commented 3 years ago

the project was simply cloned by git clone https://github.com/fglock/Perlito.git command

62mkv commented 3 years ago

ok, I was able to build it using Ubuntu 20.04 under WSL 2