[fpc-devel] fpc calls crosscompiler from older version

Florian Klämpfl florian at freepascal.org
Thu Jan 3 18:36:23 CET 2019

Am 03.01.19 um 18:22 schrieb Bart:
> Hi,
> All of this is of course of my own doing but is it expected?
> I built and installed fpc trunk, just the 32-bit version.
> I have 3.0.4 32-bit, and for that release I also have the win32-win64
> cross-compiler installed.
> Having forgotten that I did not build the win32-win64 cross-compiler
> from trunk, I issued a
> fpc -TWin64 -Px86_64 test.pas.
> My path looks like C:\pp\bin\i386-win32;%oldpath%
> (Trunk resides in C:\pp\bin\i386-win32)
> And, as you can guess, the path to the 3.0.4 binaries is on %oldpath%
> And, lo and behold, fpc trunk executed the cross-compier from 3.0.4.
> I can understand why.
> But, is this desired behaviour?
> A message that no cross-compiler for the current version of the
> compiler was installed would make a little more sense to me.

Well, yes. fpc executes what it find. This is how it works currently. 
The fpc executable has not to match with the real compiler executable.

More information about the fpc-devel mailing list