You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i found diffrent thing in ndk r9b.
until ndk ~r9, function tgammaf is not defined at math.h.
so rust has fake tgammaf function in src/rt/rust_android_dummy.cpp
now, ndk r9b has tgammaf that is defined at sysroot/usr/include/math.h.(android-18)
so, it causes complie problem
/home/ksh8281/rust_android/rust/src/rt/rust_android_dummy.cpp: In function 'void tgammaf()':
/home/ksh8281/rust_android/rust/src/rt/rust_android_dummy.cpp:63:25: error: declaration of C function 'void tgammaf()' conflicts with
/home/ksh8281/rust_android/ndk/bin/../sysroot/usr/include/math.h:349:7: error: previous declaration 'float tgammaf(float)' here
make: *** [arm-linux-androideabi/rt/stage2/rust_android_dummy.o] Error 1
i tried to find prefer solution, but i cannot found best solution yet.(i think deleteing our tgammaf causes compatibility problem in order version of ndk)
The text was updated successfully, but these errors were encountered:
I think it is not useful.
If we want to maintain compatibility with old NDK, many variation of compile option should be guaranteed.
Let's make official NDK version which Rust basically require for android as r9b. then we can remove dummy function of tgammaf().
update for ndk r9b (#10323)
````
Android NDK, Revision 9b (October 2013)
Important changes:
Updated include/android/*h and math.h for all Android API levels up to 18,
including the addition of levels 13, 15, 16 and 17.
For information on added APIs,
see commit messages for Changes 68012 and 68014. (Issues 47150, 58528, and 38423)
````
https://android-review.googlesource.com/#/c/68014/
i found diffrent thing in ndk r9b.
until ndk ~r9, function tgammaf is not defined at math.h.
so rust has fake tgammaf function in src/rt/rust_android_dummy.cpp
now, ndk r9b has tgammaf that is defined at sysroot/usr/include/math.h.(android-18)
so, it causes complie problem
i tried to find prefer solution, but i cannot found best solution yet.(i think deleteing our tgammaf causes compatibility problem in order version of ndk)
The text was updated successfully, but these errors were encountered: