[fpc-devel] Arm Hardfloat

Den Jean Den.Jean at telenet.be
Fri Oct 5 00:37:14 CEST 2012


On Friday 05 October 2012 00:12:46 Thomas Schatzl wrote:
> Let's start from the beginning. What's your starting compiler? 2.7.0 I
> guess? (which is the only option anyway for hardfloat).
on i386 i used cross binutils from fedora packages 
cross-binutils-common.noarch  2.22.52.0.3-1.fc17 
cross-gcc-common.noarch  4.7.1-0.1.20120606.fc17   
fpc 2.7.1 latest svn

> Binutils/gas
on arm

$ fpc -v
Free Pascal Compiler version 2.7.1 [2012/10/04] for arm
created from on i386 svn trunk using crosszip ....

$ as --version
as called with --version
GNU assembler (GNU Binutils) 2.22.0.20120323


> Are you sure (the correct) gas is in the path? (It's strange because the
correct ?
> compilation before found correct gas; afaik fpmake/packages are only
> compiled at the end)

> Can you also try a "make distclean"? And check if the packages directory
> does not contain any fpmake executables, object or ppu files afterwards;
already removed them by hand beforing this (make clean in that dir,
stil had 1 .o and fpcmake (-> delp . and rm fpmake)
> if so, please remove them. Fpmake sometimes gets messed up if parts of a
> previous compilation are still there. Further, at the moment, fpc
> silently allows linking of mixed armel and armhf object files, which
> does not work.
thx for info 
> > fpmake.pp(34) Fatal: There were 2 errors compiling module, stopping
> > Fatal: Compilation aborted
> > make[2]: *** [fpmake] Error 1
> > make[2]: Leaving directory `/home/jan/svn/fpc/packages'
> 
> Can you enter the "/home/jan/svn/fpc/packages"  directory and issue the
> following command (maybe before doing a distclean):
too late, nice to know 
> /home/jan/svn/fpc/compiler/ppcarm fpmake.pp -n
> -Fu/home/jan/svn/fpc/packages/fpmkunit/units_bs/arm-linux
> -Fu/home/jan/svn/fpc/rtl/units/arm-linux -dFPC_ARMHF -Aas -O- -CaEABIHF
> -CfVFPV3_D16 -Cparmv7 -s
> 
> (note the additional "-s" param) and paste the resulting ppas.bat after
> it fails here? The line that invokes gas should use the correct gas. And
> it should have a correct "--march=armv7-a" parameter.
I already had replaced as with a shell script that shows me the passed parameters:
e.g now I have:
as called with -mfloat-abi=hard -meabi=5 -march=armv7-a -mfpu=vfpv3-d16 -o arm/units/arm-linux/pp.o arm/units/arm-linux/pp.s
> Thomas

thx 



More information about the fpc-devel mailing list