[fpc-pascal] FPC_ARMEL system calls
Luca Olivetti
luca at ventoso.org
Mon Jun 2 21:34:31 CEST 2008
En/na Luca Olivetti ha escrit:
> En/na Henry Vermaak ha escrit:
>
>> i think what florian means is that you have to use an eabi ppcarm as a
>> starting compiler if you'd like to compile fpc in your scratchbox. so
>> you'll have to create one by cross compiling from i386 or whatever
>> arch you're using.
>>
>> so you'll have to make compiler_cycle CPU_TARGET=arm OPT="-dFPC_ARMEL"
>> bla bla bla, then copy the ppcarm to somewhere your scratchbox can see
>> it, then specify it as the starting compiler with make blablabla
>> FPC=/path/to/ppcarm
>
> Yeah, I thought that I could cross-compile from arm to armel, but now
> I'm currently building the gnu crossbinutils to do that from (the
> codesourcery ones I have give a linker error), but I suspect I'll end up
> with the same linker error down the road.
Not quite.
I created the binutils
wget http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2
tar xvjf binutils-2.18.tar.bz2
cd binutils-2.18
./configure --prefix=/home/luca/crossbinutils --target=armel-linux
make
make install
I created a ppcarm with compiler cycle:
make clean compiler_cycle OS_TARGET=linux CPU_TARGET=arm
BINUTILSPREFIX=/home/luca/crossbinutils/bin/armel-linux- OPT=-dFPC_ARMEL
FPC=/scratchbox/users/luca/home/luca/fpc/lib/fpc/2.3.1/ppc386
But the resulting ppcarm doesn't work under scratchbox:
[sbox-CHINOOK_ARMEL: ~/fpc-svn] > make clean zipinstall OPT=-dFPC_ARMEL
FPC=./ppcarm
qemu: uncaught target signal 6 (Aborted) - exiting
qemu: uncaught target signal 6 (Aborted) - exiting
qemu: uncaught target signal 6 (Aborted) - exiting
qemu: uncaught target signal 6 (Aborted) - exiting
qemu: uncaught target signal 6 (Aborted) - exiting
Makefile:199: *** The Makefile doesn't support target syscall-Error:,
please run fpcmake first. Stop.
[sbox-CHINOOK_ARMEL: ~/fpc-svn] > ./ppcarm
Error: unimplemented syscall 90004c
qemu: uncaught target signal 6 (Aborted) - exiting
If I try to run in in the tablet:
~ $ ./ppcarm
Illegal instruction
I guess I'll stick to i386 for a while ;-)
Bye
--
Luca
More information about the fpc-pascal
mailing list