Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread tobiasgiesen
Hello, here's a minimal Pascal program to call XGetWindowProperty: https://www.syncovery.com/minimalxtest.pas Cheers, Tobias On Mon, 26 Aug 2019 23:22:01 +0200 Pierre Muller wrote: > > > Le 26/08/2019 à 22:46, tobiasgie...@gmail.com a écrit : > > Hi Jonas, > > > > fantastic, that

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread Florian Klämpfl
Am 27. August 2019 15:03:46 schrieb tobiasgie...@gmail.com: > Hello, > > yes I will send you a minimal program to call XGetWindowProperty. > > Cheers, > Tobias > > > > On Tue, 27 Aug 2019 11:35:01 +0200 > Pierre Muller wrote: > >> Hi, >> >> >> the testsuite results show no difference, >>

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread tobiasgiesen
Hello, yes I will send you a minimal program to call XGetWindowProperty. Cheers, Tobias On Tue, 27 Aug 2019 11:35:01 +0200 Pierre Muller wrote: > Hi, > > the testsuite results show no difference, > this probably means that we have no test that checks > GCC compatibility for more than

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread Pierre Muller
Hi, the testsuite results show no difference, this probably means that we have no test that checks GCC compatibility for more than 8 parameters... Tobias, could you send us a small source that allows to check this? Thanks in advance, Pierre Le 26/08/2019 à 00:59, tobiasgie...@gmail.com a

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
schrieb am Di., 27. Aug. 2019, 01:38: > If anybody would like a near silent POWER9 system at home, > I can really recommend the new Blackbird mainboard with CPU bundles > from Raptor CS. The lower cost 4-core CPU uses so little power you > hardly even need a fan for it. > If only it wouldn't

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hi Pierre, wow that was fast and it works now! Lazarus (trunk) now compiles and runs without any changes on a POWER9 machine in little endian mode :=) Very beautiful! I couldn't be happier. Good work everyone! I'm running it on Ubuntu but I have also installed a few other Linux distributions,

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Pierre Muller
Le 26/08/2019 à 22:46, tobiasgie...@gmail.com a écrit : > Hi Jonas, > > fantastic, that looks great. I think now I can just wait until Pierre > Muller's snapshot is updated :=) As I followed the thread, I made a special issue for you, you should find the new snapshot of ftp site: $ cat

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hi Jonas, fantastic, that looks great. I think now I can just wait until Pierre Muller's snapshot is updated :=) Cheers, Tobias On Mon, 26 Aug 2019 21:42:37 +0200 Jonas Maebe wrote: > On 26/08/2019 20:56, Jonas Maebe wrote: > > On 26/08/2019 20:54, Florian Klaempfl wrote: > >> Am

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 20:56, Jonas Maebe wrote: > On 26/08/2019 20:54, Florian Klaempfl wrote: >> Am 26.08.2019 um 20:52 schrieb Jonas Maebe: >>> On 26/08/2019 14:22, Florian Klämpfl wrote: Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal : > Florian Klämpfl schrieb am

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 20:54, Florian Klaempfl wrote: > Am 26.08.2019 um 20:52 schrieb Jonas Maebe: >> On 26/08/2019 14:22, Florian Klämpfl wrote: >>> Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal >>> : >>> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, 14:01: > Try to

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klaempfl
Am 26.08.2019 um 20:52 schrieb Jonas Maebe: > On 26/08/2019 14:22, Florian Klämpfl wrote: >> Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal >> : >> >>> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, >>> 14:01: >>> Try to change the 48 in fpc/compiler/powerpc64/cpupara.pas

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 14:22, Florian Klämpfl wrote: > Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal > : > >> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, >> 14:01: >> >>> Try to change the 48 in fpc/compiler/powerpc64/cpupara.pas line to 32 as a >>> temporary test. >> >> Line 302 in

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
schrieb am Mo., 26. Aug. 2019, 19:53: > Hello, > > trying to recompile now ... since ppc64le support is not in 3.0.4, I > suppose I need to use a more recent version to compile it. So there is > no advantage in cross-compiling and I might as well try it with the > latest native fpc compiler? > >

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hello, trying to recompile now ... since ppc64le support is not in 3.0.4, I suppose I need to use a more recent version to compile it. So there is no advantage in cross-compiling and I might as well try it with the latest native fpc compiler? So I need to fix compiler errors myself, is that

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hello, many thanks, I will try it! I haven't compiled FPC for ppc64le myself so it can take a few days but I will let you know about the result. Cheers, Tobias On Mon, 26 Aug 2019 14:22:01 +0200 Florian Klämpfl wrote: > Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal > :

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klämpfl
Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal : > Florian Klämpfl schrieb am Mo., 26. Aug. 2019, > 14:01: > >> Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: >> >>> Hello, >>> >>> >>> >>> >>> while examining a crash when running Lazarus on ppc64le, I found the >>>

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
Florian Klämpfl schrieb am Mo., 26. Aug. 2019, 14:01: > Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: > > > Hello, > > > > > > while examining a crash when running Lazarus on ppc64le, I found the > > following issue in function calls. > > > > > > Calls to functions with more than

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klämpfl
Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: > Hello, > > > while examining a crash when running Lazarus on ppc64le, I found the > following issue in function calls. > > > Calls to functions with more than eight parameters seem to be > implemented differently from how gcc does it

[fpc-pascal] ppc64le ABI problem

2019-08-25 Thread tobiasgiesen
Hello, while examining a crash when running Lazarus on ppc64le, I found the following issue in function calls. Calls to functions with more than eight parameters seem to be implemented differently from how gcc does it in a C program. gcc uses the memory location 96(r1) for the ninth parameter,