[fpc-pascal] EABI problems with FPC (fyi)
Benedikt Schindler
BeniSchindler at gmx.de
Tue Apr 7 10:23:09 CEST 2009
fyi:
when i build the fpc sources i get a error message (see below).
The make process tries to use an old not functional data2inc programm.
Why didn't the make process use the new compiled one?
I deleted all old bin files and restarted the compiler.
(i hope he take the new data2inc programm now)
it stopped with errors .... the data2inc programm seems to be build not
early enough.
i copyed corsscompiled data2inc, etc. programms on my device.
is started the compiling again. .... i could tell you more in a few hours.
Beni
/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc/compiler/ppcarm -Ur -Xs -O2 -n
-vwni -Fu..
-Fu/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc/rtl/units/arm-linux -FE.
-FUunits/arm-linux -dFPC_ARMEL -O- -dFPC_ABI_EABI -darm -dRELEASE
fpcsubst.pp
Target OS: Linux for ARMEL
Compiling fpcsubst.pp
Compiling usubst.pp
usubst.pp(56,5) Note: Local variable "I" not used
Assembling usubst
Writing Resource String Table file: fpcsubst.rst
Assembling fpcsubst
Linking ./fpcsubst
350 lines compiled, 16.7 sec
1 note(s) issued
/usr/local/bin/data2inc -b -s fpinc.cfg fpcfg.inc fpcfg
make[5]: *** [fpcfg.inc] Illegal instruction
make[5]: Leaving directory
`/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc/compiler/utils'
make[4]: *** [utils_all] Error 2
make[4]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc/compiler'
make[3]: *** [cycle] Error 2
make[3]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc/compiler'
make[2]: *** [compiler_cycle] Error 2
make[2]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc'
make[1]: *** [build-stamp.arm-linux] Error 2
make[1]: Leaving directory `/media/mmcblk0p3/fpcbuild-2.3.x/fpcsrc'
make: *** [fpcsrc/build-stamp.arm-linux] Error 2
root at om-gta02:/media/mmcblk0p3/fpcbuild-2.3.x#
Benedikt Schindler schrieb:
> Hi,
>
> i also try to get free pascal running on my freerunner.
> i needed many tries to get a running ppcarm for my device.
> (In reality i didn't know why it worked in the last run ... but it
> did, and so i don't ask :) )
>
> now i let the freerunner recompile the hole fpcbuild.
> But that could take some time. ... you know how fast our devices are :)
> i hope that all things will work well after that .
>
> i used these compiler options : OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI"
> NOGDB=1
>
> i tell you if it works or not.
> it could just be hours from now :)
>
> Have you cross compiled the hole free pascal or just the ppcarm?
>
> you should be able to crosscompile the "hello" programm by using the
> "crossppcarm" compiler on your normal machine.
> (And don't forget to use "-dFPC_ARMEL -O- -dFPC_ABI_EABI".)
>
> Beni
>
> ik schrieb:
>>
>> On Mon, Apr 6, 2009 at 4:26 PM, Jonas Maebe
>> <jonas.maebe at elis.ugent.be <mailto:jonas.maebe at elis.ugent.be>> wrote:
>>
>>
>> On 06 Apr 2009, at 15:15, ik wrote:
>>
>> I tried to create an Hello World program in OpenMoko (after
>> creating arm
>> fpc). When I try to compile it, ld gives the following error
>> message:
>>
>> /usr/bin/ld: ERROR: Source object
>> /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI
>> version 0, but
>> target hello has EABI version 4
>>
>>
>> See http://bugs.freepascal.org/view.php?id=13454 for some flags
>> you have to use, and a patch that you can try. And note that
>> ARMEL/EABI is very much untested.
>>
>>
>> I can see that, now I have segfult ... Is there a way to do a real
>> cross compile, that is to be in a normal environment and just make
>> the result set to ARM EABI ?
>>
>> And any of you wish, I can give ssh access to my Moko (when it is
>> booted to the microsd) to test FPC on ARM EABI better, or help me
>> understand how to test it myself, and might even fix/add things.
>>
>>
>>
>>
>>
>>
>> Jonas
>>
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> <mailto:fpc-pascal at lists.freepascal.org>
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>>
>>
>> Thanks,
>> Ido
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> _______________________________________________
> 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