Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2024-03

Cannot build pas2js (on Windows)

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Hello,

sorry to bother but I am lost... I cannot build pas2js with the new instructions.

I did everything as described on
https://gitlab.com/freepascal.org/fpc/pas2js:

git clone https://gitlab.com/freepascal.org/fpc/pas2js.git pas2js cd pas2js
git config --local pull.rebase true
git clone https://gitlab.com/freepascal.org/fpc/source.git compiler cd compiler
git config --local pull.rebase true

make clean all output:

p:\software\pas2js>make clean all
process_begin: CreateProcess(NULL, pas2js.exe -iV, ...) failed. ./fpmake.exe clean --os=win32 --cpu=i386 -o -di386 --compiler=p:/software/FPC/3.2.2/bin/i386-win32/ppc386.exe -bu Warning: Removed non empty directory "bin\i386-win32" ./fpmake.exe compile --os=win32 --cpu=i386 -o -di386 --compiler=p:/software/FPC/3.2.2/bin/i386-win32/ppc386.exe -bu Start compiling package pas2js for target i386-win32. Warning: Source file "pas2js.pp" from package pas2js not found for i386-win32
The installer encountered the following error:
Could not compile target pas2js from package pas2js make: *** [all] Error 1

------

I see pas2js.pp in "pas2js\compiler\utils\pas2js\".

Anybody knows what I did wrong?

Thanks
Ondrej

Ondrej Pokorny
to Ondrej Pokorny

I found it: I had the FPCDIR variable set (from the past, obviously). Once I cleared FPCDIR, everything works. Well, I don't know how that happened and why the FPCDIR was set...

Thanks
Ondrej