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

2021-08-23 Thread Sven Barth via fpc-devel
Am 23.08.2021 um 19:33 schrieb Bart via fpc-devel: On Mon, Aug 23, 2021 at 7:16 PM Bart wrote: I tried to build with only the path to the starting compiler in %PATH%: PATH /devel/fpc/3.2.2/bin/i386-Win32 make clean make all OPT=... That failed on make clean: That error goes away if I add

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

2021-08-23 Thread Bart via fpc-devel
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/articles/32459/processors/processor-utilities-and-programs.html) > do not apply. > No XtuService in "Apps and Features", no XtuService.exe.

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 8:15 PM Yuriy Sydorov via fpc-devel wrote: > On 64bit Windows system32 contains only 64 bit system files. syswow64 > contains only 32 bit files and is seen as system32 for 32 bit apps. For > some reason you have the 64 bit dll in the 32 bit syswow64 folder. You need > to

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

2021-08-23 Thread Yuriy Sydorov via fpc-devel
On August 23, 2021 19:41:41 Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 3:35 PM Yuriy Sydorov via fpc-devel wrote: Just move common.dll from SysWOW64 to system32. The file is placed wrongly by some installer. If I understand Tomas correctly then that would not make any difference:

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 7:45 PM Bart wrote: > Productname: Intel(R) Extreme Tuning Utility And, of course, the guide on how to remove this utility (https://www.intel.com/content/www/us/en/support/articles/32459/processors/processor-utilities-and-programs.html) do not apply. No XtuService in

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

2021-08-23 Thread Bart via fpc-devel
Looking with Windows Explorer at the Common.dll in question: Productname: Intel(R) Extreme Tuning Utility File version 7.3.0.33 Product version 7.3.0.33 Modified: 24-02-2021 (that's dd-mm-) In the tab "Previos Version" it says: no previous version. This must have been installed in some

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 7:16 PM Bart wrote: > I tried to build with only the path to the starting compiler in %PATH%: > > PATH /devel/fpc/3.2.2/bin/i386-Win32 > make clean > make all OPT=... > > That failed on make clean: That error goes away if I add C:\Windows to the path. However, then I

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 3:19 PM Bart wrote: > Should I start the build process with a %PATH% that does NOT have > C:\Windows\system32 in it? I tried to build with only the path to the starting compiler in %PATH%: PATH /devel/fpc/3.2.2/bin/i386-Win32 make clean make all OPT=... That failed on

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 2:45 PM Michael Van Canneyt via fpc-devel wrote: > Use objdump, provided with FPC: Thanks! C:\devel\fpc\trunk>objdump -f \windows\SysWOW64\Common.dll \windows\SysWOW64\Common.dll: file format pei-x86-64 architecture: i386:x86-64, flags 0x012f: HAS_RELOC,

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 3:35 PM Yuriy Sydorov via fpc-devel wrote: > Just move common.dll from SysWOW64 to system32. The file is placed wrongly > by some installer. If I understand Tomas correctly then that would not make any difference: wether or not that specific common.dll is in system2 or

Re: [fpc-devel] Building a debug version of FPC-main on Windows

2021-08-23 Thread Marco van de Voort via fpc-devel
Op 8/23/2021 om 4:20 PM schreef Werner Pamler via fpc-devel: Am 23.08.2021 um 14:06 schrieb Marco van de Voort via fpc-devel: Op 8/23/2021 om 1:36 PM schreef Werner Pamler via fpc-devel: make install all OPT=%OPTIONS% INSTALL_PREFIX=%FPC_DEST_DIR% PP=%BOOTSTRAP_COMPILER% Shouldn't this

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Tomas Hajny via fpc-devel
On 2021-08-23 16:20, Marco van de Voort via fpc-devel wrote: Op 8/23/2021 om 3:11 PM schreef Bart via fpc-devel: dows trickery - feel free to complain at Microsoft. ;-) OK, just for my understanding of this: I cannot see the file there (system32) FPC looks for it there Windows just says it's

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Marco van de Voort via fpc-devel
Op 8/23/2021 om 3:11 PM schreef Bart via fpc-devel: dows trickery - feel free to complain at Microsoft. ;-) OK, just for my understanding of this: I cannot see the file there (system32) FPC looks for it there Windows just says it's there (and silently redirects to syswow64 folder) FPC looks at

Re: [fpc-devel] Building a debug version of FPC-main on Windows

2021-08-23 Thread Werner Pamler via fpc-devel
Am 23.08.2021 um 14:06 schrieb Marco van de Voort via fpc-devel: Op 8/23/2021 om 1:36 PM schreef Werner Pamler via fpc-devel: make install all OPT=%OPTIONS% INSTALL_PREFIX=%FPC_DEST_DIR% PP=%BOOTSTRAP_COMPILER% Shouldn't this (install all) be the other way around? Classically one builds it

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Tomas Hajny via fpc-devel
On 2021-08-23 15:11, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 3:01 PM Tomas Hajny via fpc-devel wrote: The compiler finds the DLL by looking to C:\Windows\system32. As mentioned in another e-mail, the fact that this request is redirected to C:\Windows\SysWOW64 instead by the

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

2021-08-23 Thread Yuriy Sydorov via fpc-devel
On August 23, 2021 16:17:03 Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 2:57 PM Tomas Hajny via fpc-devel wrote: The problem is that MS Windows employs a special trickery by which the path to c:\windows\system32 (almost surely in your PATH) translates to c:\windows\SysWOW64

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 2:57 PM Tomas Hajny via fpc-devel wrote: > The problem is that MS Windows employs a special trickery by which the > path to c:\windows\system32 (almost surely in your PATH) translates to > c:\windows\SysWOW64 _for_32-bit_binaries_ (only!). So in reality, that > directory

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 3:01 PM Tomas Hajny via fpc-devel wrote: > The compiler finds the DLL by looking to C:\Windows\system32. As > mentioned in another e-mail, the fact that this request is redirected to > C:\Windows\SysWOW64 instead by the underlying operating system is a MS > Windows

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Tomas Hajny via fpc-devel
On 2021-08-23 14:37, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 2:28 PM Tomas Hajny via fpc-devel wrote: Does it exist in C:\Windows\SysWOW64\ on your machine? Yes, there is a common.dll there. I think that syswow64 is not in my %PATH%, but currently I'm at work and cannot check. I

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

2021-08-23 Thread Tomas Hajny via fpc-devel
On 2021-08-23 14:31, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 1:36 PM Werner Pamler via fpc-devel wrote: > Does anybody have a common.dll in \windows\system32 at all? I don't have it, neither in system32 nor in SysWOW64. OK. Just pulled the current revision of fpc-trunk, and did

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Michael Van Canneyt via fpc-devel
On Mon, 23 Aug 2021, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 2:28 PM Tomas Hajny via fpc-devel wrote: Does it exist in C:\Windows\SysWOW64\ on your machine? Yes, there is a common.dll there. I think that syswow64 is not in my %PATH%, but currently I'm at work and cannot check.

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 2:28 PM Tomas Hajny via fpc-devel wrote: > Does it exist in C:\Windows\SysWOW64\ on your machine? Yes, there is a common.dll there. I think that syswow64 is not in my %PATH%, but currently I'm at work and cannot check. I also do not know how to examine wether this one

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 1:36 PM Werner Pamler via fpc-devel wrote: > > Does anybody have a common.dll in \windows\system32 at all? > > I don't have it, neither in system32 nor in SysWOW64. OK. > Just pulled the current revision of fpc-trunk, and did not observe this > error (Win 10, fpc3.2.2

Re: [fpc-devel] Untranslatable (hardcoded) messages

2021-08-23 Thread Tomas Hajny via fpc-devel
On 2021-08-23 14:25, Bart via fpc-devel wrote: On Mon, Aug 23, 2021 at 12:23 PM Tomas Hajny via fpc-devel wrote: Hi *, Not directly related at all, but while trying to have a look at the compiler code related to the error message about the DLL header size, I realized that there are quite a

Re: [fpc-devel] Untranslatable (hardcoded) messages (Was: Re: Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size)

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 12:23 PM Tomas Hajny via fpc-devel wrote: > > Hi *, > > Not directly related at all, but while trying to have a look at the > compiler code related to the error message about the DLL header size, I > realized that there are quite a few error messages (including this one) >

Re: [fpc-devel] Building a debug version of FPC-main on Windows

2021-08-23 Thread Marco van de Voort via fpc-devel
Op 8/23/2021 om 1:36 PM schreef Werner Pamler via fpc-devel: make install all OPT=%OPTIONS% INSTALL_PREFIX=%FPC_DEST_DIR% PP=%BOOTSTRAP_COMPILER% Shouldn't this (install all) be the other way around? Classically one builds it before one installs it.

[fpc-devel] Building a debug version of FPC-main on Windows

2021-08-23 Thread Werner Pamler via fpc-devel
I am using the following script to build a debug version of FPC-main on Windows: set BINUTILS_DIR=C:\Lazarus\fpc_bootstrap_compiler\3.2.2\i386-win32 set BOOTSTRAP_COMPILER=%BINUTILS_DIR%\ppc386.exe set FPC_DEST_DIR=c:\Lazarus\fpc-main set BIN_DIR=bin\i386-win32 set

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

2021-08-23 Thread Werner Pamler via fpc-devel
Am 23.08.2021 um 11:52 schrieb Bart via fpc-devel: Does anybody have a common.dll in \windows\system32 at all? I don't have it, neither in system32 nor in SysWOW64. Just pulled the current revision of fpc-trunk, and did not observe this error (Win 10, fpc3.2.2 32-bit bootstrap compiler)

[fpc-devel] Untranslatable (hardcoded) messages (Was: Re: Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size)

2021-08-23 Thread Tomas Hajny via fpc-devel
Hi *, Not directly related at all, but while trying to have a look at the compiler code related to the error message about the DLL header size, I realized that there are quite a few error messages (including this one) hardcoded in ogcoff.pas instead of having these messages in errore.msg and

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

2021-08-23 Thread Bart via fpc-devel
On Mon, Aug 23, 2021 at 10:49 AM Florian Klämpfl via fpc-devel wrote: > Are you sure this common.dll is 32 Bit? C:\Windows\SysWOW64 may contain only > 32 Bit DLLs. I have no idea how to test this. Mind you: a simple test program with {$linklib common} fails for me for either 32 or 64, wether

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

2021-08-23 Thread Florian Klämpfl via fpc-devel
> Am 22.08.2021 um 10:20 schrieb Bart via fpc-devel > : > > On Sun, Aug 22, 2021 at 5:40 AM J. Gareth Moreton via fpc-devel > wrote: > >> This is a problem I run into all the time Basically, the DLL is 64-bit >> and hence is invalid in a 32-bit binary. This can be bypassd by >> commenting