Crosscompilation win32 -> win64 fails on odbc import library (import libary prefix lost)
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
According to makefile
IMPORTLIBPREFIX=libimp
But the compiler while building x86_64-win64 searches for libodbc32.a
In the same time in the units\x86_64-win64\libimpodbc32.a exists.
[0.341] Unit "dynlibs" not used in odbcsql
[0.341] Searching file libodbc32.a... not found
[0.341] Searching file libodbc32.a... not found
[0.341] Searching file units\x86_64-win64\libodbc32.a... not found
[0.341] Searching file .\src\libodbc32.a... not found
[0.341] Searching file C:\projects\fpc\rtl\units\x86_64-win64\libodbc32.a... not found
[0.341] Searching file C:\projects\fpc\compiler\libodbc32.a... not found
[0.341] Searching file C:\projects\fpc\compiler\libodbc32.a... not found
[0.341] Searching file odbc32.dll... not found
[0.341] Searching file .\src\odbc32.dll... not found
[0.341] Searching file C:\projects\fpc\rtl\units\x86_64-win64\odbc32.dll... not found
[0.341] Searching file C:\projects\fpc\compiler\odbc32.dll... not found
[0.341] Searching file C:\WINDOWS\odbc32.dll... not found
[0.341] Searching file C:\WINDOWS\system\odbc32.dll... not found
[0.341] Searching file C:\WINDOWS\system32\odbc32.dll... found
[0.341] Invalid DLL C:\WINDOWS\system32\odbc32.dll, invalid header size
[0.341] There were 1 errors compiling module, stopping
Steps to reproduce:
C:\fpc\bin\i386-win32\make.exe all OS_TARGET=win64 CPU_TARGET=x86_64 FPC=C:\fpc\bin\i386-win32\ppc386.exe NOGDB=1 CROSSCOMPILE=1 OPT=-va
Mantis conversion info:
- Mantis ID: 19245
- OS: windows 2003 server
- Platform: win32
- Version: 2.5.1