Sign in Join

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

Mailing lists / pas2js / 2020-11

pas2js Build on win32

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

Hello,

I got a new PC. I Installed FPC 3.2.0 from the setup found on the freepascal homepage. Then I did a SVN checkout for pas2js and I now want to make it.

The command is just "make clean all" in the pas2js directory (I use the full math to FPC make) :

d:\ENTWICKLUNG\FPC\pas2js>d:\ENTWICKLUNG\FPC\3.2.0\bin\i386-win32\make clean all

This is the error message:

process_begin: CreateProcess(NULL, pas2js.exe -iV, ...) failed. make: Nothing to be done for `clean'.
c:/ENTWICKLUNG/FPC/3.2.0/bin/i386-Win32/ppc386.exe fpmake.pp *fpmake.pp(4,47) Fatal: Can't find unit fpmkunit used by fpmake* Fatal: Compilation aborted
make: *** [fpmake.exe] Error 1

Can somebody help me what am I missing? I used the same approach on my old PC and it worked OK. Also compiling FPC trunk works fine on the new PC.

Thanks
Ondrej

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20201109/188b607b/attachment.htm>

Reply by email

Mattias Gaertner
to Ondrej Pokorny
Hello, I got a new PC. I Installed FPC 3.2.0 from the setup found on the freepascal homepage.

Did it create a fpc.cfg?

[...] c:/ENTWICKLUNG/FPC/3.2.0/bin/i386-Win32/ppc386.exe fpmake.pp *fpmake.pp(4,47) Fatal: Can't find unit fpmkunit used by fpmake*

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
On Mon, 9 Nov 2020 12:36:56 +0100 Ondrej Pokorny wrote: > Hello, > > I got a new PC. I Installed FPC 3.2.0 from the setup found on the > freepascal homepage. Did it create a fpc.cfg?

That was it, thanks! Strange that I was able to build the complete FPC trunk even with no fpc.cfg but not pas2js.

Ondrej

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote 12 lines
On 09.11.2020 13:10, Mattias Gaertner via Pas2js wrote: > On Mon, 9 Nov 2020 12:36:56 +0100 > Ondrej Pokorny wrote: > >> Hello, >> >> I got a new PC. I Installed FPC 3.2.0 from the setup found on the >> freepascal homepage. > Did it create a fpc.cfg? That was it, thanks! Strange that I was able to build the complete FPC trunk even with no fpc.cfg but not pas2js.

It's perfectly normal.

The Makefiles from FPC are made such way that this is possible. if you build pas2js in the FPC tree using those makefiles, it also will be built.

But if you checkout the pas2js and build using that, then a preconfigured fpc is needed.

Michael.

Reply by email

Mattias Gaertner
to Ondrej Pokorny: That was it, thanks! Strange that I was able to build the complete FPC trunk even with no…
Show quoted text 12 lines
On 09.11.2020 13:10, Mattias Gaertner via Pas2js wrote: > On Mon, 9 Nov 2020 12:36:56 +0100 > Ondrej Pokorny wrote: > >> Hello, >> >> I got a new PC. I Installed FPC 3.2.0 from the setup found on the >> freepascal homepage. > Did it create a fpc.cfg? That was it, thanks! Strange that I was able to build the complete FPC trunk even with no fpc.cfg but not pas2js.

The fpc sources have everything to build themselves except for the starting compiler exe. They skip your fpc.cfg.

Mattias

Reply by email

Ondrej Pokorny
to Michael Van Canneyt: It's perfectly normal. The Makefiles from FPC are made such way that this is possible. if…
Michael Van Canneyt wrote 19 lines
On Mon, 9 Nov 2020, Ondrej Pokorny wrote: > On 09.11.2020 13:10, Mattias Gaertner via Pas2js wrote: >> On Mon, 9 Nov 2020 12:36:56 +0100 >> Ondrej Pokorny wrote: >> >>> Hello, >>> >>> I got a new PC. I Installed FPC 3.2.0 from the setup found on the >>> freepascal homepage. >> Did it create a fpc.cfg? > > That was it, thanks! Strange that I was able to build the complete > FPC trunk even with no fpc.cfg but not pas2js. It's perfectly normal. The Makefiles from FPC are made such way that this is possible. if you build pas2js in the FPC tree using those makefiles, it also will be built.

I understand - for somebody who knows it, it is obvious :) I was puzzled because
1.) I expected the setup to create a valid fpc.cfg for me. 2.) When I was able to build FPC trunk, I expected the fpc.cfg to be there.

I remember to always generate fpc.cfg for the trunk compiler, but failed to realize that it may be missed in FPC stable as well.

Thanks for all the information!

Ondrej

Reply by email