[fpc-devel] Exception problems in FPC 3.0.0

Sergio Flores relfos at gmail.com
Tue Oct 27 15:29:10 CET 2015

Yury, I think you're right, I'm using the precompiled binary that indeed
seems to been compiled in soft-fpu mode, so that would explain everything,
as OpenGL is probably triggering hard fpu exceptions that are not being

I tried your asm function, however adding it makes the app crash at startup.

I added it to initialization of my OpenGLES unit,
Seems that just having the function laying around, even without calling it,
causes the crash.

Checking the android log, it says the following:
E/AndroidRuntime(10684): java.lang.UnsatisfiedLinkError: dlopen failed:
cannot locate symbol "TERRA_OPENGLES_$$_LOADOPENGL" referenced by

LoadOpenGL() is the only pascal function that is contained in this unit (it
just loads the opengles library dynamically and assigns function pointers).
For some reason, adding the assembler function to this unit makes this
function disappear, what causes this very weird behaviour?

Full unit code here:

Commenting both the function and the function call makes the game startup
again without crashing (albeit still crashes whevener a float exception

Probably recompiling FPC with hard float support would be the best
solution, however compiling FPC in Windows is a frustrating game of trial
and errors. I had written a .bat file that I used with 2.6.2, but it no
longer works in 3.0.0. Once I have some free time I guess I will have to
try discovering whats problem. Or if anyone has 3.0.1 compiled with
hard-floats and can provide a download link, i would be thankful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151027/887b3f19/attachment.html>

More information about the fpc-devel mailing list