Sign in Join

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

Mailing lists / fpc-devel / 2004-05

Build fails on system without fpcmake on path.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

Hi,

Since a few weeks building a new fpc snapshot with only a release compiler fails on (win32) systems, when fpcmake is not on the path.

The old make files used to test whether $(FPCMAKE) is filled, before making the Package.fpc file. If there was no fpcmake, $(FPCMAKE) was empty and no Package.fpc was created. (I think that I don't need Package.fpc in my snapshot). Why would I need a Package.fpc, when I install the rtl in a directory?

The current make files have some error detection and set FPCMAKE to __missing_command__ and then run $(FPCMAKE) -p -Twin32 Makefile.fpc, which fails.

Is fpcmake really required for building a snapshot? If so, why doesn't it use a compiled snapshot one in fpc/utils/fpcm ?

If it a Package.fpc is not absolutely needed, I think it would be better to restore the old situation and not create Package.fpc files if fpcmake is not available.

Regards,
Vincent.

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

Reply by email

Vincent Snijders

Hi,

Since a few weeks building a new fpc snapshot with only a release compiler fails on (win32) systems, when fpcmake is not on the path.

The old make files used to test whether $(FPCMAKE) is filled, before making the Package.fpc file. If there was no fpcmake, $(FPCMAKE) was empty and no Package.fpc was created. (I think that I don't need Package.fpc in my snapshot). Why would I need a Package.fpc, when I install the rtl in a directory?

The current make files have some error detection and set FPCMAKE to __missing_command__ and then run $(FPCMAKE) -p -Twin32 Makefile.fpc, which fails.

Is fpcmake really required for building a snapshot? If so, why doesn't it use a compiled snapshot one in fpc/utils/fpcm ?

If it a Package.fpc is not absolutely needed, I think it would be better to restore the old situation and not create Package.fpc files if fpcmake is not available.

Regards,
Vincent.

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

Reply by email

Olle Raab
to Vincent Snijders

04-05-17 11.05, skrev Vincent Snijders följande:

Show quoted text 10 lines
Hi, Since a few weeks building a new fpc snapshot with only a release compiler fails on (win32) systems, when fpcmake is not on the path. The old make files used to test whether $(FPCMAKE) is filled, before making the Package.fpc file. If there was no fpcmake, $(FPCMAKE) was empty and no Package.fpc was created. (I think that I don't need Package.fpc in my snapshot). Why would I need a Package.fpc, when I install the rtl in a directory?

I am not shure, but I think fpcmake creates a package description file. So fpcmake is needed for creating packages.

The current make files have some error detection and set FPCMAKE to __missing_command__ and then run $(FPCMAKE) -p -Twin32 Makefile.fpc, which fails.

I did add this feature.

Without this error detection, what's happend is that, becuse $(FPCMAKE) is empty, the following command is attempted:

-p -Twin32 ...

Since a preceding hyphen, tells make to ignore errors, this is a source for hard to find bugs.

The error detection could have been done when the makefile was preprocessed, but then the abscense of any tool would have stoped make. This solution makes it possilbe to detect that kinds of error at runtime, only if the tool realy is about to be used.

Perhaps you can test if $(FOCMAKE) is __missing_command__ instead of testing if its empty.

Show quoted text 6 lines
Is fpcmake really required for building a snapshot? If so, why doesn't it use a compiled snapshot one in fpc/utils/fpcm ? If it a Package.fpc is not absolutely needed, I think it would be better to restore the old situation and not create Package.fpc files if fpcmake is not available.

Olle

Reply by email