Error while cross compiling on a local win32 drive
Original Reporter info from Mantis: carstenbager
-
Reporter name: Carsten G. Bager
Original Reporter info from Mantis: carstenbager
- Reporter name: Carsten G. Bager
Description:
When moving from the 2.0.5 compiler to the 2.2.2 compiler I have got a strange
problem with the Arm cross compiler for Win32
-----------
(Free Pascal Compiler version 2.2.2 [2008/08/26] for arm)
-----------
When I compile a project on a Samba (from the Win32 PC) drive it works ok.
But when I copy everything (compiler, linker etc.) to a local drive on the Win32 PC and
compile, I get this error (Tested under Win98 and XP and, the result is the same).
---------------
easypromain.pp(366,49) Warning: Object cprt21.o not found, Linking mayfail !
C:\FPC\ARMBIN\ld.exe: cannot find cprt21.o
easypromain.pp(366,49) Error: Error while linking
easypromain.pp(366,49) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted
-----------------
The cprt21.o is not present on the samba drive (or anywhere), so my conclusion is that the compiler acts different on a Samba drive than on a local drive, even if it is the same win32 PC that is used.
If I make a copy of cprt0.o and call it cprt21.o everything works (the bindery output is ok).
I compile with the following command
\Fpc\ArmBin\ppcrossarm.exe -Tlinux -gl -XX -dARM9LINUX -dUlibc -dDEBUG
-dRUNTIMECHECK easypromain.pp
In the cfg file -CX -XX -Xd is activated
My samba drive is hosted by a Linux PC, On the Linux PC I can compile the same project with a Linux cross compiler . this works OK.
Additional information:
I can send you a zip file (3 MB) with compiler linker and project in it. It can be unzipped at \ and will work out of the box.
Linker script from a compile on win32 drive
LOAD link.res
LOAD C:\Fpc\Lib\Ulibc\Arm\cprt21.o
LOAD threads.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\system.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\lineinfo.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\exeinfo.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\strings.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\objpas.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\cthreads.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\sysutils.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\classes.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\baseunix.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\unix.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\unixtype.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\initc.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\dl.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\unixutil.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\syscall.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\ctypes.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\errors.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\sysconst.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\types.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\typinfo.o
LOAD C:\Fpc\Lib\2.2.2\arm-linux\Fpc\rtlconsts.o
LOAD C:\Fpc\Lib\Ulibc\Arm/libulibc.so
LOAD C:\Fpc\Lib\Ulibc\Arm/libgcc_s.so
LOAD C:\Fpc\Lib\Ulibc\Arm/libpthread.so
LOAD C:\Fpc\Lib\Ulibc\Arm/libdl.so
LOAD C:\Fpc\Lib\Ulibc\Arm/libc.so
Linker script from a compile on a samba drive
LOAD link.res
LOAD J:\Fpc\Lib\Ulibc\Arm\cprt0.o
LOAD threads.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\system.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\lineinfo.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\exeinfo.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\strings.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\objpas.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\cthreads.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\sysutils.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\classes.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\baseunix.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\unix.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\unixtype.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\initc.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\dl.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\unixutil.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\syscall.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\ctypes.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\errors.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\sysconst.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\types.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\typinfo.o
LOAD J:\Fpc\Lib\2.2.2\arm-linux\Fpc\rtlconsts.o
LOAD J:\Fpc\Lib\Ulibc\Arm/libulibc.so
LOAD J:\Fpc\Lib\Ulibc\Arm/libgcc_s.so
LOAD J:\Fpc\Lib\Ulibc\Arm/libpthread.so
LOAD J:\Fpc\Lib\Ulibc\Arm/libdl.so
LOAD J:\Fpc\Lib\Ulibc\Arm/libc.so
Mantis conversion info:
- Mantis ID: 12400
- Version: 2.2.2