Discussion:
[fpc-devel] Annoying error when building compiler on i386-win32
J. Gareth Moreton via fpc-devel
2021-04-05 18:33:16 UTC
Permalink
Hi everyone,

I have a slightly annoying error when building the compiler for
i386-win32.  I mentioned it to Sven a while ago, and the cause is due to
the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven
confirmed for me).

Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll,
invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

Simply commenting out "{$linklib common}" on line 19 of the above file
fixes the problem.  I would like to propose that this error be changed
to a warning, since apparently not having the library present doesn't
cause issues for compilation, just possibly execution later on.

Gareth aka. Kit
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-
Sven Barth via fpc-devel
2021-04-06 05:37:32 UTC
Permalink
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for
i386-win32.  I mentioned it to Sven a while ago, and the cause is due
to the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven
confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll,
invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above file
fixes the problem.  I would like to propose that this error be changed
to a warning, since apparently not having the library present doesn't
cause issues for compilation, just possibly execution later on.
No. If you have a messed up system, that is not *our* fault.

Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://lis
Florian Klämpfl via fpc-devel
2021-04-06 08:35:48 UTC
Permalink
Post by Sven Barth via fpc-devel
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for i386-win32. I mentioned it to Sven a while ago, and the cause is due to the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above file fixes the problem. I would like to propose that this error be changed to a warning, since apparently not having the library present doesn't cause issues for compilation, just possibly execution later on.
No. If you have a messed up system, that is not *our* fault.
But isn’t the complaint valid to a certain degree: if one cross compiles from x86_64-win64 to i386-win32, then the wrong DLLs are checked due to folder redirection, no? We have only code in place for the other direction (i386-win32 to x86_64-win64).
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://lists.freepasc
Michael Van Canneyt via fpc-devel
2021-04-06 08:42:53 UTC
Permalink
Post by Sven Barth via fpc-devel
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for i386-win32. I mentioned it to Sven a while ago, and the cause is due to the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above file fixes the problem. I would like to propose that this error be changed to a warning, since apparently not having the library present doesn't cause issues for compilation, just possibly execution later on.
No. If you have a messed up system, that is not *our* fault.
But isn’t the complaint valid to a certain degree: if one cross compiles from x86_64-win64 to i386-win32, then the wrong DLLs are checked due to folder redirection, no? We have only code in place for the other direction (i386-win32 to x86_64-win64).
The weird behaviour of windows is is not a valid reason to remove a {$linklib} statement.

Michael.
Florian Klämpfl via fpc-devel
2021-04-06 08:45:01 UTC
Permalink
Post by Michael Van Canneyt via fpc-devel
Post by Sven Barth via fpc-devel
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for i386-win32. I mentioned it to Sven a while ago, and the cause is due to the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above file fixes the problem. I would like to propose that this error be changed to a warning, since apparently not having the library present doesn't cause issues for compilation, just possibly execution later on.
No. If you have a messed up system, that is not *our* fault.
But isn’t the complaint valid to a certain degree: if one cross compiles from x86_64-win64 to i386-win32, then the wrong DLLs are checked due to folder redirection, no? We have only code in place for the other direction (i386-win32 to x86_64-win64).
The weird behaviour of windows is is not a valid reason to remove a {$linklib} statement.
No. But the compiler could take care of the fact to look into the right directory as we do in the i386-win32 to x86_64-win64 case.
Michael Van Canneyt via fpc-devel
2021-04-06 08:55:10 UTC
Permalink
Post by Florian Klämpfl via fpc-devel
Post by Michael Van Canneyt via fpc-devel
Post by Sven Barth via fpc-devel
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for i386-win32. I mentioned it to Sven a while ago, and the cause is due to the fact that my copy of common.dll is 64-bit, not 32-bit (as Sven confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above file fixes the problem. I would like to propose that this error be changed to a warning, since apparently not having the library present doesn't cause issues for compilation, just possibly execution later on.
No. If you have a messed up system, that is not *our* fault.
But isn’t the complaint valid to a certain degree: if one cross compiles from x86_64-win64 to i386-win32, then the wrong DLLs are checked due to folder redirection, no? We have only code in place for the other direction (i386-win32 to x86_64-win64).
The weird behaviour of windows is is not a valid reason to remove a {$linklib} statement.
No. But the compiler could take care of the fact to look into the right directory as we do in the i386-win32 to x86_64-win64 case.
Absolutely.

Michael.
J. Gareth Moreton via fpc-devel
2021-04-06 10:20:11 UTC
Permalink
I'm trying to avoid removing the $linklib statement, but currently it's
the only way to build the i386-win32 compiler on my 64-bit system.  I'm
suggesting turning the error into a warning, if the correct DLL can't be
found, because it doesn't affect successful compilation of the unit.

Of course, being able to locate the correct 32-bit DLL or some such is
better overall, although I would still propose a warning over an error.

Gareth aka. Kit
Post by Michael Van Canneyt via fpc-devel
Am 06.04.2021 um 07:37 schrieb Sven Barth via fpc-devel
Post by J. Gareth Moreton via fpc-devel
Hi everyone,
I have a slightly annoying error when building the compiler for
i386-win32.  I mentioned it to Sven a while ago, and the cause is
due to the fact that my copy of common.dll is 64-bit, not 32-bit
(as Sven confirmed for me).
Compiling .\oracle\src\oraoci.pp
oraoci.pp(1437) Error: Invalid DLL C:\WINDOWS\system32\common.dll,
invalid header size
oraoci.pp(1437) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Simply commenting out "{$linklib common}" on line 19 of the above
file fixes the problem.  I would like to propose that this error be
changed to a warning, since apparently not having the library
present doesn't cause issues for compilation, just possibly
execution later on.
No. If you have a messed up system, that is not *our* fault.
But isn’t the complaint valid to a certain degree: if one cross
compiles from x86_64-win64 to i386-win32, then the wrong DLLs are
checked due to folder redirection, no? We have only code in place for
the other direction (i386-win32 to x86_64-win64).
The weird behaviour of windows is is not a valid reason to remove a {$linklib} statement.
Michael.
_______________________________________________
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Continue reading on narkive:
Search results for '[fpc-devel] Annoying error when building compiler on i386-win32' (Questions and Answers)
8
replies
whats bether ps3 or xbox 360?
started 2008-01-18 18:29:54 UTC
video & online games
Loading...