Unauthorized sincos during LAPACK build

Following the instructions here I created the Fortran NDK toolchain binding (OSX, NDK-7b) with the goal of creating a LAPACK / BLAS.

Using android-cmake with source 3.4.0 net lib seems to me almost successful. However, the BLAS assembly fails when one of the tests is bound (with an error indicating unresolved sincosand sincosf). A small search shows that these features are not available in older versions of Android. I am wondering what is the best way to solve these features?

The following is an example of a connection error:

cd / Users / marc / software / lapack-3.4.0 / Android / BLAS / TESTING && & & / opt / local / bin / cmake -E cmake_link_script CMakeFiles / xblat2c.dir / link.txt --verbose = 1 / opt / local / share / java / android -ndk-macosx / toolchains / arm-linux-androideabi-4.7.0 / prebuilt / darwin-x86 / bin / arm-linux-androideabi-gfortran -Wl, -gc-sections -Wl, - z, nocopyreloc -Wl, - fix-cortex-a8 -Wl, - no- undefined -lstd ++ -lsup ++ CMakeFiles / xblat2c.dir / cblat2.fo -o ../../ bin / xblat2c -rdynamic - L / Users / marc / software / lapack-3.4.0 / Android / systemlibs / armeabi-v7a -L / opt / local / share / java / android-ndk-macosx / toolchains / arm-linux-androideabi- 4.7.0 / prebuilt / darwin-x86 / user / libs / armeabi-v7a ../../ lib / libblas.a -lm -Wl, -rpath, / Users / marc / software / lapack-3.4.0 / Android / systemlibs / armeabi -v7a: /opt/local/share/java/android-ndk-macosx/toolchains/arm-linux-androideabi-4.7.0 / prebuilt / darwin-x86 / user / libs / armeabi-v7a / Wholesale / local / shares / Java / Android-NDK-MacOSX / compiled tools / lever Linux-androideabi -

4.7.0//Darwin-x86/Library/GCC/-Linux-androideabi/4.7.0/../../../../-Linux-androideabi/Library/libgfortran.a(c99_functions.o): cexpf': /opt/local/share/java/android-ndk-macosx/src/build/../gcc/gcc-4.7.0/libgfortran/intrinsics/c99_functions.c:910: undefined reference to sincosf '

+3
1

GCC , sincos . . arm-linux-androideabi gcc/config/linux.h :

/* Whether we have sincos that follows the GNU extension.  */
#undef TARGET_HAS_SINCOS
#define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC)

Bionic , Android 2.3 sincosf/sincos/sincosl [1]. , Bionic, GCC, , sincos; [2].

[1] http://source-android.frandroid.com/bionic/libc/docs/CHANGES.TXT

[2] https://bugs.launchpad.net/linaro-android/+bug/908125

+2

All Articles