Re: [fpc-pascal] Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size

2023-04-08 Thread Bo Berglund via fpc-pascal
On Mon, 23 Aug 2021 23:01:39 +0200, Bart via fpc-devel wrote: Replying here since my attempt at replying in the devel group failed... >On Mon, Aug 23, 2021 at 8:04 PM Bart wrote: > >> And, of course, the guide on how to remove this utility >> (https://www.intel.com/content/www/us/en/support/ar

Re: [fpc-pascal] Building trunk

2018-12-01 Thread C Western
On 30/11/2018 10:26, Cyrax wrote: On 30/11/2018 12:23, Cyrax wrote: On 30/11/2018 11:12, C Western wrote: On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version i

Re: [fpc-pascal] Building trunk

2018-11-30 Thread Cyrax
On 30/11/2018 12:23, Cyrax wrote: On 30/11/2018 11:12, C Western wrote: On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.

Re: [fpc-pascal] Building trunk

2018-11-30 Thread Cyrax
On 30/11/2018 11:12, C Western wrote: On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have

Re: [fpc-pascal] Building trunk

2018-11-30 Thread C Western
On 30/11/2018 04:23, Cyrax wrote: On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29...)

Re: [fpc-pascal] Building trunk

2018-11-29 Thread Cyrax
On 30/11/2018 00:53, C Western wrote: On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29...) Colin _

Re: [fpc-pascal] Building trunk

2018-11-29 Thread C Western
On 26/11/2018 22:46, - - wrote: An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29...) Colin ___ fpc-pascal maillist

Re: [fpc-pascal] Building trunk

2018-11-26 Thread - -
An additional note - it may well be a ld version issue. On Ubuntu the ld version is 2.30, but on Fedora ld reports 2.31.1-13.fc29. (Maybe I should have held off upgrading to Fedora 29...) Colin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Cyrax
On 25/11/2018 14:58, Jonas Maebe wrote: On 25/11/18 13:51, Florian Klämpfl wrote: I am not aware that somewhere a fixed offset is applied. All info is read from the auxiliary data and the header. You can have a load address offset in case there is a PT_PHDR. From http://www.gabriel.urdhr.fr/2

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 14:18, Florian Klämpfl wrote: Am 25.11.2018 um 14:30 schrieb Colin Western: What generates the header? Is it fpc, an external linker or the loader? Can you please run the following C program: #include #include int main() { printf("AT_PHDR: %lx\n",getauxval(AT_PHDR)); pr

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 14:30 schrieb Colin Western: > What generates the header? Is it fpc, an external linker or the loader? > Can you please run the following C program: #include #include int main() { printf("AT_PHDR: %lx\n",getauxval(AT_PHDR)); printf("AT_PHNUM: %lx\n",getauxval(AT_PHNUM));

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Jonas Maebe
On 25/11/18 14:30, Colin Western wrote: What generates the header? Is it fpc, an external linker or the loader? The linker. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pa

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Colin Western
What generates the header? Is it fpc, an external linker or the loader? Colin Sent from my mobile. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:58 schrieb Jonas Maebe: > On 25/11/18 13:51, Florian Klämpfl wrote: >> I am not aware that somewhere a fixed offset is applied. All info is read >> from the auxiliary data and the header. > > You can have a load address offset in case there is a PT_PHDR. Yes. > From http://

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Jonas Maebe
On 25/11/18 13:51, Florian Klämpfl wrote: I am not aware that somewhere a fixed offset is applied. All info is read from the auxiliary data and the header. You can have a load address offset in case there is a PT_PHDR. From http://www.gabriel.urdhr.fr/2015/01/22/elf-linking/ : // Simplified

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:51 schrieb Florian Klämpfl: > Am 25.11.2018 um 13:06 schrieb C Western: > fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal That gives the same value as shown above, even after applying the patc

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 13:06 schrieb C Western: fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >>> That gives the same value as shown above, even after applying the patch. >>> Single stepping the code indicates that both

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 25/11/2018 12:01, Florian Klämpfl wrote: Am 25.11.2018 um 12:20 schrieb C Western: On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk>

Re: [fpc-pascal] Building trunk

2018-11-25 Thread Florian Klämpfl
Am 25.11.2018 um 12:20 schrieb C Western: > On 24/11/2018 22:21, Florian Klämpfl wrote: >> Am 24.11.2018 um 10:08 schrieb C Western: >>> On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western >>> > geschrieben: I

Re: [fpc-pascal] Building trunk

2018-11-25 Thread C Western
On 24/11/2018 22:21, Florian Klämpfl wrote: Am 24.11.2018 um 10:08 schrieb C Western: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk>> geschrieben:     I haven't been able to build trunk i386 fpc for a couple of weeks.

Re: [fpc-pascal] Building trunk

2018-11-24 Thread Florian Klämpfl
Am 24.11.2018 um 10:08 schrieb C Western: > On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: >> Am Fr., 23. Nov. 2018, 10:26 hat C Western > > geschrieben: >> >>     I haven't been able to build trunk i386 fpc for a couple of weeks. Is >>     this supposed to be workin

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 24/11/2018 15:19, C Western wrote: On 24/11/2018 12:30, Sven Barth via fpc-pascal wrote: Am Sa., 24. Nov. 2018, 10:09 hat C Western > geschrieben:     On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote:     > Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 24/11/2018 12:30, Sven Barth via fpc-pascal wrote: Am Sa., 24. Nov. 2018, 10:09 hat C Western > geschrieben: On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: > Am Fr., 23. Nov. 2018, 10:26 hat C Western mailto:l...@c-m-w.me.uk> >

Re: [fpc-pascal] Building trunk

2018-11-24 Thread Sven Barth via fpc-pascal
Am Sa., 24. Nov. 2018, 10:09 hat C Western geschrieben: > On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: > > Am Fr., 23. Nov. 2018, 10:26 hat C Western > > geschrieben: > > > > I haven't been able to build trunk i386 fpc for a couple of weeks. Is > > this

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 23/11/2018 13:58, Joost van der Sluis wrote: On 11/23/18 2:48 PM, C Western wrote: make distclean cycle OPT="-n" OS_TARGET=linux CPU_TARGET=i386 FPC=~/fpc/bootstrap/ppcx64 /home/ctcmw/fpc/trunk/fpcsrc/compiler/ppcross386 -Pi386 -XPi386-linux- -Xr -Fui386 -Fusystems -Fu../rtl/units/i386-lin

Re: [fpc-pascal] Building trunk

2018-11-24 Thread C Western
On 23/11/2018 09:50, Sven Barth via fpc-pascal wrote: Am Fr., 23. Nov. 2018, 10:26 hat C Western > geschrieben: I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't

Re: [fpc-pascal] Building trunk

2018-11-23 Thread Joost van der Sluis
On 11/23/18 2:48 PM, C Western wrote: make distclean cycle OPT="-n" OS_TARGET=linux CPU_TARGET=i386 FPC=~/fpc/bootstrap/ppcx64 /home/ctcmw/fpc/trunk/fpcsrc/compiler/ppcross386 -Pi386 -XPi386-linux- -Xr -Fui386 -Fusystems -Fu../rtl/units/i386-linux -Fii386 -FEi386/bin/i386-linux -FUi386/units/

Re: [fpc-pascal] Building trunk

2018-11-23 Thread C Western
The compiler I was starting with was obtained from a 3.0.4 release from the fpc website. Trying: make distclean cycle OPT="-n" OS_TARGET=linux CPU_TARGET=i386 FPC=~/fpc/bootstrap/ppcx64 goes further (or is it just different as it is a cross-compile?) but gives: make[1]: Entering directory '/

Re: [fpc-pascal] Building trunk

2018-11-23 Thread Pierre Muller
Hi, you should always try to start with a release compiler. If you have the latest i386 compiler installed start by: cd fpcsrc/compiler make distclean cycle OPT="-n" FPC=/path/to/release/ppc386 save the resulting ppc386 on success to /home/me/fpc/bootstrap/ppc386 and then start make distcle

Re: [fpc-pascal] Building trunk

2018-11-23 Thread Sven Barth via fpc-pascal
Am Fr., 23. Nov. 2018, 10:26 hat C Western geschrieben: > I haven't been able to build trunk i386 fpc for a couple of weeks. Is > this supposed to be working, or have I misconfigured something? (I don't > think I have changed anything.) The output is below. I don't think it is > significant, but

[fpc-pascal] Building trunk

2018-11-23 Thread C Western
I haven't been able to build trunk i386 fpc for a couple of weeks. Is this supposed to be working, or have I misconfigured something? (I don't think I have changed anything.) The output is below. I don't think it is significant, but I am building on a 64 bit system, but with a 32 bit starting c