[fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Ryan Joseph via fpc-pascal
Does anyone have any idea how this happened? I installed 3.2.0 from an 
installer so why is the PPU version wrong?

PPU Loading /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu
PPU Invalid Version 208

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal  schrieb am
Mi., 12. Aug. 2020, 10:30:

> Does anyone have any idea how this happened? I installed 3.2.0 from an
> installer so why is the PPU version wrong?
>
> PPU Loading
> /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu
> PPU Invalid Version 208
>

Does the compiler report the correct version? Namely 3.2.0? What if you
compile a simple program with no used units with -vu and check what the
compiler prints for the PPU version of the System unit?

Regards,
Sven

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Ryan Joseph via fpc-pascal


> On Aug 12, 2020, at 4:07 PM, Sven Barth  wrote:
> 
> Does the compiler report the correct version? Namely 3.2.0? What if you 
> compile a simple program with no used units with -vu and check what the 
> compiler prints for the PPU version of the System unit? 
> 

You mean like that? That empty program did compile at least.

~$ fpc -vu /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas 
Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas
(PROGRAM)  Registering new unit SYSTEM
(PROGRAM)  Load from TEST (implementation) unit SYSTEM
(SYSTEM)   Loading unit SYSTEM
(SYSTEM)   PPU Name: /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/rtl/system.ppu
(SYSTEM)   PPU Time: 2020/06/01 02:22:50
(SYSTEM)   PPU Flags: 159873
(SYSTEM)   PPU Crc: 798FAFCC
(SYSTEM)   PPU Crc: A0492A36 (intfc)
(SYSTEM)   PPU Crc: BDAFAB66 (indc)
(SYSTEM)   Number of definitions: 2625
(SYSTEM)   Number of symbols: 8067
(SYSTEM)   PPU Source: system.pp not available


Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Tomas Hajny

On 2020-08-12 12:30, Ryan Joseph via fpc-pascal wrote:
On Aug 12, 2020, at 4:07 PM, Sven Barth  
wrote:


Does the compiler report the correct version? Namely 3.2.0? What if 
you compile a simple program with no used units with -vu and check 
what the compiler prints for the PPU version of the System unit?




You mean like that? That empty program did compile at least.

~$ fpc -vu /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas
Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas
(PROGRAM)  Registering new unit SYSTEM
(PROGRAM)  Load from TEST (implementation) unit SYSTEM
(SYSTEM)   Loading unit SYSTEM
(SYSTEM)   PPU Name: 
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/rtl/system.ppu

(SYSTEM)   PPU Time: 2020/06/01 02:22:50
(SYSTEM)   PPU Flags: 159873
(SYSTEM)   PPU Crc: 798FAFCC
(SYSTEM)   PPU Crc: A0492A36 (intfc)
(SYSTEM)   PPU Crc: BDAFAB66 (indc)
(SYSTEM)   Number of definitions: 2625
(SYSTEM)   Number of symbols: 8067
(SYSTEM)   PPU Source: system.pp not available


Yes. Please, provide the same output if you add "uses process;" to 
empty.pas. Also, please provide output of "ls -l 
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu".


Tomas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Ryan Joseph via fpc-pascal


> On Aug 12, 2020, at 5:39 PM, Tomas Hajny  wrote:
> 
> Yes. Please, provide the same output if you add "uses process;" to empty.pas. 
> Also, please provide output of "ls -l 
> /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu".

Here's that. Is it possible I overwrote the files somehow? I was rebuilding the 
trunk and RTL just the other day to get some changes and maybe I did something 
unintended.

~$ ls -l /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu
-rw-r--r--  1 root  wheel  59458 Aug  9 09:40 
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu

and using process unit:

~$ fpc -vu /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas 
Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Users/ryanjoseph/Developer/Projects/FPC/Various/empty.pas
(PROGRAM)  Registering new unit SYSTEM
(PROGRAM)  Load from TEST (implementation) unit SYSTEM
(SYSTEM)   Loading unit SYSTEM
(SYSTEM)   PPU Name: /usr/local/lib/fpc/3.2.0/units/x86_64-darwin/rtl/system.ppu
(SYSTEM)   PPU Time: 2020/06/01 02:22:50
(SYSTEM)   PPU Flags: 159873
(SYSTEM)   PPU Crc: 798FAFCC
(SYSTEM)   PPU Crc: A0492A36 (intfc)
(SYSTEM)   PPU Crc: BDAFAB66 (indc)
(SYSTEM)   Number of definitions: 2625
(SYSTEM)   Number of symbols: 8067
(SYSTEM)   PPU Source: system.pp not available
(SYSTEM)   PPU Source: sysunixh.inc not available
(SYSTEM)   PPU Source: systemh.inc not available
(SYSTEM)   PPU Source: sysosh.inc not available
(SYSTEM)   PPU Source: pmutext.inc not available
(SYSTEM)   PPU Source: rtldefs.inc not available
(SYSTEM)   PPU Source: filerec.inc not available
(SYSTEM)   PPU Source: textrec.inc not available
(SYSTEM)   PPU Source: innr.inc not available
(SYSTEM)   PPU Source: cpuh.inc not available
(SYSTEM)   PPU Source: cpuinnr.inc not available
(SYSTEM)   PPU Source: mathh.inc not available
(SYSTEM)   PPU Source: currh.inc not available
(SYSTEM)   PPU Source: ustringh.inc not available
(SYSTEM)   PPU Source: setjumph.inc not available
(SYSTEM)   PPU Source: rttih.inc not available
(SYSTEM)   PPU Source: objpash.inc not available
(SYSTEM)   PPU Source: varianth.inc not available
(SYSTEM)   PPU Source: dynarrh.inc not available
(SYSTEM)   PPU Source: compproc.inc not available
(SYSTEM)   PPU Source: heaph.inc not available
(SYSTEM)   PPU Source: threadh.inc not available
(SYSTEM)   PPU Source: dynlibh.inc not available
(SYSTEM)   PPU Source: sysdlh.inc not available
(SYSTEM)   PPU Source: resh.inc not available
(SYSTEM)   PPU Source: excepth.inc not available
(SYSTEM)   PPU Source: system.inc not available
(SYSTEM)   PPU Source: sysos.inc not available
(SYSTEM)   PPU Source: errno.inc not available
(SYSTEM)   PPU Source: ostypes.inc not available
(SYSTEM)   PPU Source: ptypes.inc not available
(SYSTEM)   PPU Source: ctypes.inc not available
(SYSTEM)   PPU Source: pmutext.inc not available
(SYSTEM)   PPU Source: signal.inc not available
(SYSTEM)   PPU Source: x86_64/sig_cpu.inc not available
(SYSTEM)   PPU Source: ../x86/sig_x86.inc not available
(SYSTEM)   PPU Source: osmacro.inc not available
(SYSTEM)   PPU Source: oscdeclh.inc not available
(SYSTEM)   PPU Source: oscdecl.inc not available
(SYSTEM)   PPU Source: cgeneric.inc not available
(SYSTEM)   PPU Source: cgenstr.inc not available
(SYSTEM)   PPU Source: x86_64.inc not available
(SYSTEM)   PPU Source: generic.inc not available
(SYSTEM)   PPU Source: set.inc not available
(SYSTEM)   PPU Source: genset.inc not available
(SYSTEM)   PPU Source: cgenmath.inc not available
(SYSTEM)   PPU Source: math.inc not available
(SYSTEM)   PPU Source: genmath.inc not available
(SYSTEM)   PPU Source: gencurr.inc not available
(SYSTEM)   PPU Source: sstrings.inc not available
(SYSTEM)   PPU Source: flt_conv.inc not available
(SYSTEM)   PPU Source: flt_core.inc not available
(SYSTEM)   PPU Source: flt_pack.inc not available
(SYSTEM)   PPU Source: flt_pack.inc not available
(SYSTEM)   PPU Source: int64p.inc not available
(SYSTEM)   PPU Source: int64.inc not available
(SYSTEM)   PPU Source: astrings.inc not available
(SYSTEM)   PPU Source: ustrings.inc not available
(SYSTEM)   PPU Source: aliases.inc not available
(SYSTEM)   PPU Source: rttidecl.inc not available
(SYSTEM)   PPU Source: dynarr.inc not available
(SYSTEM)   PPU Source: objpas.inc not available
(SYSTEM)   PPU Source: except.inc not available
(SYSTEM)   PPU Source: variant.inc not available
(SYSTEM)   PPU Source: rtti.inc not available
(SYSTEM)   PPU Source: setjump.inc not available
(SYSTEM)   PPU Source: sysheap.inc not available
(SYSTEM)   PPU Source: heap.inc not available
(SYSTEM)   PPU Source: thread.inc not available
(SYSTEM)   PPU Source: threadvr.inc not available
(SYSTEM)   PPU Source: dynlib.inc not available
(SYSTEM)   PPU Source: sysfile.inc not available
(SYSTEM)   PPU Source: text.inc not available
(SYSTEM)   PPU Source: file.inc not available
(SYSTEM)   PPU Sour

Re: [fpc-pascal] 3.2.0 Invalid PPU Version

2020-08-12 Thread Tomas Hajny

On 2020-08-12 15:20, Ryan Joseph via fpc-pascal wrote:

On Aug 12, 2020, at 5:39 PM, Tomas Hajny  wrote:

Yes. Please, provide the same output if you add "uses process;" to 
empty.pas. Also, please provide output of "ls -l 
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu".


Here's that. Is it possible I overwrote the files somehow? I was
rebuilding the trunk and RTL just the other day to get some changes
and maybe I did something unintended.

~$ ls -l 
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu

-rw-r--r--  1 root  wheel  59458 Aug  9 09:40
/usr/local/lib/fpc/3.2.0/units/x86_64-darwin/fcl-process/process.ppu

 .
 .

Indeed, you probably overwrote the installed 3.2.0 unit with a different 
version (probably compiled with trunk compiler, because PPU version 208 
is used in the trunk compiler).


Tomas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Resource compilation

2020-08-12 Thread Sven Barth via fpc-pascal

Am 13.01.2019 um 18:38 schrieb Martok:

Update time!



[snip]

All of windres's tests pass now, except for the Dialog related ones. I would
consider it more or less finished. Any more things to do? Otherwise, I'll stack
it into some patches.


I know it's been some time, but I've now integrated this into trunk 
(took a bit of work, because I had to nicely integrate it into the build 
system) and also made sure that FPC can use fpcres for RC -> RES 
compilation as well. :)


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] fpcres now supports compilation of RC files

2020-08-12 Thread Sven Barth via fpc-pascal

Hello together!

Thanks to the work of Martok the fpcres utility is now able to compile 
RC files into RES files.


To compile an RC file to a RES file you need to pass the "-of res" 
argument as otherwise the RC reader won't be used (it's a "catch all" 
TResourceReader descendant and thus not registered by default). You can 
specify include paths for the preprocessor using "--include " and 
defines can be declared using "-D sym" (including defines with values 
using "-D sym=val").


The Free Pascal compiler is capable of using fpcres for resource 
compilation as well, but due to bootstrapping issues that currently 
needs to be enabled using a new option "-FF". Once a FPC release with a 
fpcres supporting RC files is released we'll make that option the 
default and deprecate windres/gorc (I currently plan to merge this into 
3.2.1, thus 3.2.2 would support this and future 3.3.1 (and thus 3.4) 
would then use fpcres by default).


Please test this with your applications and report your problems as this 
is the biggest change regarding resource compilation since their 
introduction.


Compatibility note: due to build dependencies the FileInfo unit was 
moved from fcl-base to fcl-extra, so please keep a look out for stale 
PPU files.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] RTL semaphore supported?

2020-08-12 Thread Ryan Joseph via fpc-pascal
Are semaphores actually supported in the RTL? I don't see they're available on 
macOS (compiling with trunk even).

https://www.freepascal.org/docs-html/3.0.0/rtl/system/semaphoreinit.html

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] RTL semaphore supported?

2020-08-12 Thread Sven Barth via fpc-pascal

Am 13.08.2020 um 06:36 schrieb Ryan Joseph via fpc-pascal:

Are semaphores actually supported in the RTL? I don't see they're available on 
macOS (compiling with trunk even).

https://www.freepascal.org/docs-html/3.0.0/rtl/system/semaphoreinit.html


No, these functions where there only temporary. The RTL functionality 
for semaphores was only ever implemented for *nix systems, but not for 
Windows and was only used internally in the System unit, but even that 
changed some years ago, thus it was decided to remove it.


The way to go with semaphores would be to implement the Delphi 
compatible TSemaphore in the unit SyncObjs.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal