[fpc-pascal] 204 Compiler

Carsten Bager carsten at beas.dk
Wed Aug 30 15:55:06 CEST 2006


> I have downloaded the 204 source code and compiled a cross 
> compiler to Arm to run on a Windows PC 
> 
> When compiling some code that has worked with the 202 compiler I 
> get this error:
> ----
> Assembling led
> Assembling with smartlinking led
> L:\FPC\ARMBIN\AR.EXE: creating libpled.a
> Forkert kommando eller filnavn  (This means wrong command or 
> filename)

I have found out that the file that the compiler are looking fore is "ar" 
for some reason the compiler dos not know where to find "ar" the 
second time it looks fore it. 
If I place a ar.exe en the same folder where I am compiling the error
"Forkert kommando eller filnavn  (This means wrong command or 
filename)"
Disappears, but the linker error remains.

If I remove the {$SMARTLINK ON} directive in the pas file, the 
linker stops complaining.

> Linking led
> libpled.a: could not read symbols: Archive has no index; run ranlib to 
> add one
> led.pas(13,11) Error: Error while linking
> -----
> 
> Between calling ar.exe and the linker it looks like the compiler calls a 
> program that is not present  
> 
> 
> I build the same compiler on a Linux PC and that is working.

> 
> This is the command I use on the Windows PC
> "make clean all FPCTARGET= OS_TARGET=linux 
> CPU_TARGET=arm BINUTILSPREFIX=arm-linux-"
> 
> This is the command I use on the Linux PC
> make clean all cycle OS_TARGET=linux CPU_TARGET=arm 
> PP=/pp/bin/fpc BINUTILSPREFIX=arm-linux-
> 
> Dos anybody have a hint
> 
> Carsten
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal





More information about the fpc-pascal mailing list