[fpc-pascal] Using other fpc installation

kapibara kapibara.pas at aol.com
Wed Aug 16 23:08:15 CEST 2017


The old SVN version is now in play, so far so good! But then "Can't find 
unit system" happened:

roger at bikupan:~/fpc/fptest_working$ fpc fptest.pas
Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling fptest.pas
Fatal: Can't find unit system used by fptest
Fatal: Compilation aborted
Error: /home/roger/fpc/fpc_svn/compiler/ppcx64 returned an error exitcode


Before that I had changed the path:
roger at bikupan:~/fpc/fptest_working$ 
PATH=/home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin
roger at bikupan:~/fpc/fptest_working$ export 
PATH=/home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin

roger at bikupan:~/fpc/fptest_working$ which fpc
/home/roger/fpc/fpc_svn/bin/fpc



On 08/16/2017 10:27 PM, Tomas Hajny wrote:
> On Wed, August 16, 2017 22:16, kapibara via fpc-pascal wrote:
>> Ah, so FP has no versions other than the official releases then? (2.6.0,
>> 2.6.2, 2.6.4 and so on)
>>
>> Why doesn't FP use the same compiler revision as the SVN sources it
>> comes with? Because the fp executable is compiled at the same time as fpc?
> It uses the sources from which it has been compiled (the same way fpc does
> too). Fp is a separate make target. It may be part of a snapshot, and it
> may be compiled from SVN sources by you as well (it has some additional
> prerequisites if you want to have the debugger integrated, and it requires
> some additional FPC packages compiled first, but nothing special apart
> from that).
>
>
>> Alright then, I'll try instead:
>>
>> fpc test.pas
>>
>>
>> Btw, why have fpc and also ppcx64? Does fpc call ppcx64?
> Yes - or another compiler binary if (cross-)compiling for a different
> CPU/platform (e.g. ppc386, ppcarm, ppcjvm, etc.).
>
> Tomas
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170816/0065cf23/attachment.html>


More information about the fpc-pascal mailing list