Discussion:
ieee_exceptions
Stephen Kirby
2018-01-26 19:17:03 UTC
Permalink
Hi,

Trying to cross-compile some Fortran code (so I can run on Android device)
which has a lot of Ieee_exceptions calls (for arithmetic
underflow/overflow/divide by zero, etc.). In x86_64 GCC7.2.0 I see
libgfortran.a contains ieee_exceptions.o where they seem to be defined. A
check of the android NDK android-26 libs (libm.a or libc.a) shows that
there are no equivalent definitions.

Is this something that can be added to a future version of Android NDK
libm.a?

More immediate for my purposes, if anyone could point me to source code
that defines these IEEE_EXCEPTIONS so I can cross-compile for Android that
would be really excellent.

TIA,
Steve
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/339e1bc4-555c-48f4-93d7-8884e84e1837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Elliott Hughes' via android-ndk
2018-01-26 20:39:59 UTC
Permalink
this isn't in any platform's libm. i think you already answered your own
question: link against libgfortran.a.
Post by Stephen Kirby
Hi,
Trying to cross-compile some Fortran code (so I can run on Android device)
which has a lot of Ieee_exceptions calls (for arithmetic
underflow/overflow/divide by zero, etc.). In x86_64 GCC7.2.0 I see
libgfortran.a contains ieee_exceptions.o where they seem to be defined. A
check of the android NDK android-26 libs (libm.a or libc.a) shows that
there are no equivalent definitions.
Is this something that can be added to a future version of Android NDK
libm.a?
More immediate for my purposes, if anyone could point me to source code
that defines these IEEE_EXCEPTIONS so I can cross-compile for Android that
would be really excellent.
TIA,
Steve
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/20065e1f-ab63-4e4c-b99f-a8acbdeae631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stephen Kirby
2018-01-26 22:27:05 UTC
Permalink
Exactly! Thanks Elliott. This occurred to me about 5 mins. after I sent
it out and I was about to write as much here.
Regards,
Steve
Post by 'Elliott Hughes' via android-ndk
this isn't in any platform's libm. i think you already answered your own
question: link against libgfortran.a.
Post by Stephen Kirby
Hi,
Trying to cross-compile some Fortran code (so I can run on Android
device) which has a lot of Ieee_exceptions calls (for arithmetic
underflow/overflow/divide by zero, etc.). In x86_64 GCC7.2.0 I see
libgfortran.a contains ieee_exceptions.o where they seem to be defined. A
check of the android NDK android-26 libs (libm.a or libc.a) shows that
there are no equivalent definitions.
Is this something that can be added to a future version of Android NDK
libm.a?
More immediate for my purposes, if anyone could point me to source code
that defines these IEEE_EXCEPTIONS so I can cross-compile for Android that
would be really excellent.
TIA,
Steve
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/08ec8199-c4ab-4338-ae6a-a25a1ba3f8cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...