Hi
I get the following strace out put when executing a fpc cross compiled
binary using ppcrossarm (generated from latest fpc svn using following
script :-
#!/bin/bash
ALLOPTS="CPU_TARGET=arm OS_TARGET=linux BINUTILSPREFIX=arm-linux-
CROSSBINDIR=/home/nataraj/arm-2008q1/bin FPC=/usr/local/bin/ppc
El Wed, 04 Jun 2008 21:25:20 +0200
Luca Olivetti <[EMAIL PROTECTED]> escribió:
> Anyway, I tried passing -k'L
> /path/where/I/copied/all/the/target/libraries' and it's progressing
> (it isn't finding some libraries that are there, like libc) but I see
> a bunch of messages like these:
>
> /home/
El Wed, 04 Jun 2008 20:49:47 +0200
Florian Klaempfl <[EMAIL PROTECTED]> escribió:
> I've fixed some stuff, so it should work with -O2 as well.
This time is the oabi compiler that fails (natively compiled on real
arm hardware).
I tried both starting with 2.2.0 and with a 2.3.1 one made with -O-:
Henry Vermaak escribió:
native compiling won't make a difference, since you should link to the
same libraries.
Surely you're right, but native compiling wouldn't left me wondering if
the problems are due to the bleeding edge compiler or to some quirk in
the crossbinutils[*] or the libraries'
2008/6/5 Luca Olivetti <[EMAIL PROTECTED]>:
> Henry Vermaak escribió:
>
>> why don't you just cross-compile your program?
>
> because it's too darn difficult? (not that native compiling is an easy
> walkbut see my problems trying to cross-compile the gtk2 hello program)
>
my best (and uneducat
Henry Vermaak escribió:
why don't you just cross-compile your program?
because it's too darn difficult? (not that native compiling is an easy
walkbut see my problems trying to cross-compile the gtk2 hello program)
Bye
--
Luca
___
fpc-pascal m
Nataraj S Narayan escribió:
Hi Luca
Please give me the full command used for cross compiling with all the
options.
Is it "-O-" or just "-O"?
It is "-O-", i.e. turn off optimizations. If you update from svn you
shouldn't need that.
As per the full command, it's somewhere in one of my pre
2008/6/4 Nataraj S Narayan <[EMAIL PROTECTED]>:
> Hi Henry, Luca
>
> I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the
> qemu-system-arm emulated machine and tried to compile a Helloworld.pas.
> fpc showed some errors related to FPU and stopped. Then i copied many *.o
> and *.
Hi Luca
Please give me the full command used for cross compiling with all the
options.
Is it "-O-" or just "-O"?
I am able to run the ppcarm which was generated by cross compiling, on the
qemu system, and am able to compile and run a siple writeln app. But when
copying and executing to the ARM
Hi Henry, Luca
I got a 'ppcarm' after compiling the fpc-svn. I copied the pparm to the
qemu-system-arm emulated machine and tried to compile a Helloworld.pas.
fpc showed some errors related to FPU and stopped. Then i copied many *.o
and *.ppu files from host to qemu machine. This time fpc compiled
2008/6/4 Florian Klaempfl <[EMAIL PROTECTED]>:
> I've fixed some stuff, so it should work with -O2 as well.
won't the startup code need to change for eabi? i can at least see a
problem with the exit syscall there that won't work with eabi.
henry
___
fp
2008/6/4 Florian Klaempfl <[EMAIL PROTECTED]>:
> I've fixed some stuff, so it should work with -O2 as well.
thanks, it works here now.
henry
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pas
En/na Luca Olivetti ha escrit:
runs but it doesn't print anything, neither under scratchbox nor on the
tablet.
Thanks to Henry Vermaak I rebuilt the cross compiler with -O- and now it
prints "hello" :-)
I'm trying to cross-compile the gtk2 example but it seems the compiler
is ignoring -X
I've fixed some stuff, so it should work with -O2 as well.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
for info:
the problem here is that the arm eabi compiler (and/or rtl) must be
built with -O- to work.
henry
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
2008/6/4 Luca Olivetti <[EMAIL PROTECTED]>:
> Could you send me your compiled hello program?
>
sent in private.
henry
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
En/na Henry Vermaak ha escrit:
what output does:
qemu-arm -strace hello
h, my qemu-arm doesn't have a -strace option:
$ devkits/cputransp/bin/qemu-arm-cvs -strace
users/luca/home/luca/fpc-svn/hello
qemu-arm version 0.9.0, Copyright (c) 2003-2007 Fabrice Bellard
usage: qemu-arm [-h] [-g
2008/6/3 Luca Olivetti <[EMAIL PROTECTED]>:
>
> the syscall number should be put in r7
> Also the alignment of the parameters in the registers is different.
> Of course I cannot make head or tails of syscall.inc, so it's possible that
> everything is already done as it should be.
mov r7, r0 puts t
En/na Luca Olivetti ha escrit:
En/na Luca Olivetti ha escrit:
En/na Luca Olivetti ha escrit:
The following program:
program hello;
begin
writeln('hello');
end.
runs but it doesn't print anything, neither under scratchbox nor on
the tablet.
I installed strace on the tablet:
~ $ strace ./
En/na Luca Olivetti ha escrit:
En/na Luca Olivetti ha escrit:
The following program:
program hello;
begin
writeln('hello');
end.
runs but it doesn't print anything, neither under scratchbox nor on
the tablet.
I installed strace on the tablet:
~ $ strace ./hello
execve("./hello", ["./hell
En/na Luca Olivetti ha escrit:
The following program:
program hello;
begin
writeln('hello');
end.
runs but it doesn't print anything, neither under scratchbox nor on the
tablet.
I installed strace on the tablet:
~ $ strace ./hello
execve("./hello", ["./hello"], [/* 59 vars */]) = 0
syscal
En/na Henry Vermaak ha escrit:
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
more info (everything compiled with -dFPC_ARMEL -O- -gl):
[EMAIL PROTECTED]:~/source/armtest$ qemu-arm armtest
Error: Bad syscall:
Henry Vermaak escribió:
yes, this works for me. luca, can you try?
Not now (busy at work), later today maybe.
--
Luca
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Henry Vermaak schrieb:
Const
+{$ifdef FPC_ABI_EABI}
+ syscall_nr_base = $0;
+{$else FPC_ABI_EABI}
syscall_nr_base = $90;
+{$endif FPC_ABI_EABI}
but i'll confirm in a while.
yes, this works for me.
Fixed in svn.
___
fpc-pascal maillist -
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
> 2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
>> 2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
>>>
>>> more info (everything compiled with -dFPC_ARMEL -O- -gl):
>>>
>>> [EMAIL PROTECTED]:~/source/armtest$ qemu-arm armtest
>>> Error: Bad syscall: 90004c
>>>
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
> 2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
>>
>> more info (everything compiled with -dFPC_ARMEL -O- -gl):
>>
>> [EMAIL PROTECTED]:~/source/armtest$ qemu-arm armtest
>> Error: Bad syscall: 90004c
>> qemu: unhandled CPU exception 0x2 - aborting
>> R00=f
2008/6/3 Henry Vermaak <[EMAIL PROTECTED]>:
>
> more info (everything compiled with -dFPC_ARMEL -O- -gl):
>
> [EMAIL PROTECTED]:~/source/armtest$ qemu-arm armtest
> Error: Bad syscall: 90004c
> qemu: unhandled CPU exception 0x2 - aborting
> R00=ffda R01=4007f750 R02=4007f758 R03=
> R04=
2008/6/2 Luca Olivetti <[EMAIL PROTECTED]>:
> En/na Luca Olivetti ha escrit:
>
>> I guess I'll stick to i386 for a while ;-)
>
> I really think I should. I created a full cross compiler just like Florian
> :-D
> I compiled a simple hello world and it doesn't run (like the compiler):
>
> sbox-CHINOO
En/na Luca Olivetti ha escrit:
I guess I'll stick to i386 for a while ;-)
I really think I should. I created a full cross compiler just like
Florian :-D
I compiled a simple hello world and it doesn't run (like the compiler):
sbox-CHINOOK_ARMEL: ~] > fpc-svn/hello
Error: unimplemented syscal
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 y
2008/6/2 Luca Olivetti <[EMAIL PROTECTED]>:
>
> 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
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_cycl
2008/6/2 Luca Olivetti <[EMAIL PROTECTED]>:
> En/na Luca Olivetti ha escrit:
>>
>> En/na Florian Klaempfl ha escrit:
>>
> How did you get the native start compiler?
http://freepascal.org/down/arm/linux.var (it's 2.2.0)
>>>
>>> Well, this is the point :) This is not an armel compiler.
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
How did you get the native start compiler?
http://freepascal.org/down/arm/linux.var (it's 2.2.0)
Well, this is the point :) This is not an armel compiler. You need to
cross compile one first.
Ok, I'll try. Thank you.
I ha
En/na Florian Klaempfl ha escrit:
How did you get the native start compiler?
http://freepascal.org/down/arm/linux.var (it's 2.2.0)
Well, this is the point :) This is not an armel compiler. You need to
cross compile one first.
Ok, I'll try. Thank you.
Bye
--
Luca
Luca Olivetti schrieb:
En/na Florian Klaempfl ha escrit:
make clean all OS_TARGET=linux CPU_TARGET=arm
BINUTILSPREFIX=armel-linux- OPT=-dFPC_ARMEL FPC=fpc
works fine for me, at least it compiles ;)
Yeah, but that's not native :-/
How did you get the native start compiler?
http://freepasc
En/na Florian Klaempfl ha escrit:
make clean all OS_TARGET=linux CPU_TARGET=arm
BINUTILSPREFIX=armel-linux- OPT=-dFPC_ARMEL FPC=fpc
works fine for me, at least it compiles ;)
Yeah, but that's not native :-/
How did you get the native start compiler?
http://freepascal.org/down/arm/linux.va
Luca Olivetti schrieb:
En/na Florian Klaempfl ha escrit:
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Just updated.
make clean a
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Just updated.
make
En/na Florian Klaempfl ha escrit:
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Just updated.
make clean all OS_TARGET=linux CPU_T
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Just updated.
make clean all OS_TARGET=linux CPU_TARGET=arm
BINUTILSPREFIX=armel-lin
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Just updated.
Here are the results:
a) under scratchbox (qemu emulated arm)
(http://maemo.org/development/sdk
En/na Florian Klaempfl ha escrit:
This is what needs to be fixed the other two options might be a
workaround not usable. You use trunk I suppose?
Yes
Bye
--
Luca
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
Luca Olivetti schrieb:
En/na Florian Klaempfl ha escrit:
Luca Olivetti schrieb:
Florian Klaempfl escribió:
But you used OPT=-dFPC_ARMEL?
Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT'
And then you got the errors about floats?
No, I get that if I omit the -CfSOFT
I simply tried al
En/na Florian Klaempfl ha escrit:
Luca Olivetti schrieb:
Florian Klaempfl escribió:
But you used OPT=-dFPC_ARMEL?
Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT'
And then you got the errors about floats?
No, I get that if I omit the -CfSOFT
I simply tried all the permutations ;-)
Luca Olivetti schrieb:
Florian Klaempfl escribió:
But you used OPT=-dFPC_ARMEL?
Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT'
And then you got the errors about floats?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://list
Florian Klaempfl escribió:
But you used OPT=-dFPC_ARMEL?
Yes, I used OPT='-dFPC_ARMEL -dFPC_ABI_EABI -CfSOFT'
Bye
--
Luca
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
grepping for abi_eabi I found that the different syscall convention
is in rtl/linux/arm/syscall.inc, but it is conditioned to
FPC_ABI_EABI, not to FPC_ARMEL, so in order to have a fully eabi
compliant c
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
grepping for abi_eabi I found that the different syscall convention
is in rtl/linux/arm/syscall.inc, but it is conditioned to
FPC_ABI_EABI, not to FPC_ARMEL, so in order to have a fully eabi
compliant compiler should I use "-d
En/na Florian Klaempfl ha escrit:
grepping for abi_eabi I found that the different syscall convention is
in rtl/linux/arm/syscall.inc, but it is conditioned to FPC_ABI_EABI,
not to FPC_ARMEL, so in order to have a fully eabi compliant compiler
should I use "-dFPC_ARMEL -dFPC_ABI_EABI"?
The
Luca Olivetti schrieb:
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
The latter is the recent change to use the correct dynamic linker,
and the former to change the alignment of some structures (required
by the eabi specification).
Indeed, i_linux sets e.g. the calling co
En/na Luca Olivetti ha escrit:
En/na Florian Klaempfl ha escrit:
The latter is the recent change to use the correct dynamic linker,
and the former to change the alignment of some structures (required
by the eabi specification).
Indeed, i_linux sets e.g. the calling conventions to eabi and th
En/na Florian Klaempfl ha escrit:
The latter is the recent change to use the correct dynamic linker, and
the former to change the alignment of some structures (required by the
eabi specification).
Indeed, i_linux sets e.g. the calling conventions to eabi and this is
what the compiler/rtl che
Luca Olivetti schrieb:
[Beware, I'm neither an arm expert nor an fpc internals one, that's why
I'm asking instead of patching, patching that I wouldn't know how to do
anyway].
Due to my (insofar) failed experiment to get an arm-eabi compiler, I
took a look at where FPC_ARMEL is used.
FPC_AR
[Beware, I'm neither an arm expert nor an fpc internals one, that's why
I'm asking instead of patching, patching that I wouldn't know how to do
anyway].
Due to my (insofar) failed experiment to get an arm-eabi compiler, I
took a look at where FPC_ARMEL is used.
FPC_ARMEL is apparently only u
55 matches
Mail list logo