[fpc-devel] Exception problems in FPC 3.0.0
Yury Sidorov
jura at cp-lab.com
Wed Oct 28 18:15:34 CET 2015
On 10/28/2015 3:07 PM, Sergio Flores wrote:
>>Building a cross compiler is a trivial task even on Windows.
>>Read here ho to do that:http://wiki.freepascal.org/Android
>
> I know how to build a crosscompiler, the problem is that doing it in
> Windows you sometimes get very weird errors (like the building process
> stopping with error message saying CreateProcess(null) failed without
> any other explanation) or the NDK linker just hangs.
I've never experienced such issues. You should try to use different NDK
versions. I use ndk-r8d. It is stable.
> Nevertheless I was now able to build FPC crosscompiler from the latest
> sources it with hard float support.
> And now the compiled app crashes at startup with linking errors, saying
> it cant find my own functions in the library.
It's very weird.
> After investigating it, during the compilation some perfectly innocent
> functions are reporting invalid instructions (I dont have the log here,
> but it was instructions that started with Vsomething, if thats a clue).
> However a .a lib is still generated and the compilation ends with
> 'sucess'...
Do you use static .a libs?
> For the time I've returned to use the old crosscompiler I compiled
> myself with hard float support around 1 year ago, which works fine,
> with that I can run the app without any crashes.
The issue seems to be specific for your environment only. If you not try
to find out the reason, it will never be fixed.
> I've read the link about the crosscompiler, I'm using the same compiler
> switches etc, all seems correct.
> Maybe something in the ARM7 code generation got broken in the last months?
The 3.0 branch was created in January.
Yury.
More information about the fpc-devel
mailing list