On Thu, 30 Apr 2020, Bart via fpc-devel wrote:

Hi,

Given that I have fpctrunk installed in c:\pp
This implies that there is a c:\pp\units\i386-win32\rtl folder and in
that folder there is (a.o.) the file system.ppu

Now I have a test.pas file that simply consists of "begin end."

When I add c:\pp\units\i386-win32\rtl to the units path (yes, I know
that is stupid, but please have a little patience, you'll find out why
later on) and then try to compile test.pas I get confusing results:

(SYSTEM)   Loading unit SYSTEM
(SYSTEM)   PPU Name: C:\devel\fpc\3.2.0\units\i386-win32\rtl\system.ppu
(SYSTEM)   PPU Invalid Header (no PPU at the begin)
(SYSTEM)   PPU Name: C:\pp\units\i386-win32\rtl\system.ppu
(SYSTEM)   PPU Time: 2020/03/31 22:15:34
(SYSTEM)   PPU Flags: 4224
(SYSTEM)   PPU Crc: 5E999730
(SYSTEM)   PPU Crc: E5978BE9 (intfc)
(SYSTEM)   PPU Crc: E4BD4DAF (indc)
(SYSTEM)   Number of definitions: 3470
(SYSTEM)   Number of symbols: 9654
...
(SYSINITPAS) Finished loading unit SYSINITPAS
Linking test.exe
2 lines compiled, 0.1 sec, 28112 bytes code, 1300 bytes data

So, it seems I can point fpc 3.0.4 and fpc 3.3.1 to the wrong
system.ppu, it will simply ignore it and find the one specified in
fpc.cfg.
Not so for fpc 3.2.0 RC1.

It does try to load the one in fpc.cfg, but it is invalid:

(SYSTEM)   PPU Name: C:\devel\fpc\3.2.0\units\i386-win32\rtl\system.ppu
(SYSTEM)   PPU Invalid Header (no PPU at the begin)

Now it tries the one you specified:

(SYSTEM)   PPU Name: C:\pp\units\i386-win32\rtl\system.pp


Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to