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

2021-08-22 Thread Nikolai Zhubr via fpc-devel
Hi, 23.08.2021 0:46, Bart via fpc-devel: I have now finally resorted to that. Wrote a simple program to do that for me (no sed on windows). Just in case: http://gnuwin32.sourceforge.net/packages/sed.htm Regards, Nikolai Then adjusted my build script to run that program, build fpc, then do

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

2021-08-22 Thread 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 out the "{$linklib common}" line in .\oracle\src\oraoci.pp I have now f

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

2021-08-22 Thread Bart via fpc-devel
On Sun, Aug 22, 2021 at 10:20 AM Bart wrote: > So, this baffles me. As does this: C:\devel\fpc\trunk\packages\oracle>type README.txt These units provides interface to Oracle Call Interface. For the older 'oraoci' unit to compile you need oracle server installed, these units was tested and perf

Re: [fpc-devel] Using -a or -s option forces change to external assembler

2021-08-22 Thread Tomas Hajny via fpc-devel
On 2021-08-22 20:43, Jonas Maebe via fpc-devel wrote: On 22/08/2021 16:48, Christo Crause via fpc-devel wrote: Would it make sense to implement an alternative interpretation, where the internal assembler is used if specified/default with just an output writer for the -a case? The compiler on

Re: [fpc-devel] Using -a or -s option forces change to external assembler

2021-08-22 Thread Jonas Maebe via fpc-devel
On 22/08/2021 16:48, Christo Crause via fpc-devel wrote: > Would it make sense to implement an alternative interpretation, where > the internal assembler is used if specified/default with just an output > writer for the -a case? The compiler only supports activating a single assembler writer at a

[fpc-devel] Using -a or -s option forces change to external assembler

2021-08-22 Thread Christo Crause via fpc-devel
On Linux 64 bit the compiler defaults to using the internal assembler. When adding the -a command line option an external assembler is called. This is unexpected based on the description of the -a option. Specifying -Aelf (to force using the internal assembler) is also ignored when used with -a, w

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

2021-08-22 Thread Bart via fpc-devel
On Sun, Aug 22, 2021 at 1:51 PM wkitty42--- via fpc-devel wrote: > if that Common.dll file is only valid for 64bit windows builds, perhaps the > better thing to do is to wrap the $linklib line in a check to see if you are > building 64bit... if 64bit then loadlib otherwise, noop... seems logical

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

2021-08-22 Thread wkitty42--- via fpc-devel
On 8/22/21 1:56 AM, J. Gareth Moreton via fpc-devel wrote: It might be to do with the order that directories are searched. If it finds the 64-bit version ghost, then it will throw an error. I've requested to change the error to a warning instead in the post, but was shot down. if that Common.

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

2021-08-22 Thread J. Gareth Moreton via fpc-devel
It might be to do with the order that directories are searched. If it finds the 64-bit version ghost, then it will throw an error. I've requested to change the error to a warning instead in the post, but was shot down. Gareth aka. Kit On Sun 22/08/21 09:20 , "Bart via fpc-devel" fpc-devel@lis

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

2021-08-22 Thread 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 out the "{$linklib common}" line in .\oracle\src\oraoci.pp Tha cannot b