[Android] [PATCH 2/7] contrib: Disable asm in Android

Edward Wang edward.c.wang at compdigitec.com
Wed Jul 25 00:02:07 CEST 2012


On 12-07-23 10:44 AM, Rafaël Carré <funman at videolan.org> wrote:
> Not needed anymore, the problems were limited to tests so i disabled them
It appears that the problems are not limited to tests, as gcypt is 
failing to link:

configure:45636: checking for gcry_control in -lgcrypt
configure:45661: i686-android-linux-gcc 
--sysroot=/opt/android-ndk-r8/platforms/android-9/arch-x86 -std=gnu99 -o 
conftest -g -O2 -fstrict-aliasing -funsafe-math-optimizations -g 
-march=pentium -ffunction-sections -funwind-tables -frtti 
-fno-exceptions 
-I/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/include 
-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast 
-Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var 
-Werror-implicit-function-declaration -pipe -fvisibility=hidden 
-ffast-math -funroll-loops 
-I/opt/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include 
-I/opt/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/libs/x86/include 
-I/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/include 
-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined 
-L/opt/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/libs/x86 
-L/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib 
conftest.c -lgcrypt 
-L/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib 
-lgcrypt -lgpg-error  >&5
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-add.o): 
In function `_gcry_mpi_add':
mpi-add.c:(.text+0x31c): undefined reference to `_gcry_mpih_sub_n'
mpi-add.c:(.text+0x376): undefined reference to `_gcry_mpih_sub_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-bit.o): 
In function `_gcry_mpi_rshift':
mpi-bit.c:(.text+0x51e): undefined reference to `_gcry_mpih_rshift'
mpi-bit.c:(.text+0x671): undefined reference to `_gcry_mpih_rshift'
mpi-bit.c:(.text+0x6e9): undefined reference to `_gcry_mpih_rshift'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-div.o): 
In function `_gcry_mpi_tdiv_qr':
mpi-div.c:(.text+0x57a): undefined reference to `_gcry_mpih_lshift'
mpi-div.c:(.text+0x5a0): undefined reference to `_gcry_mpih_lshift'
mpi-div.c:(.text+0x762): undefined reference to `_gcry_mpih_rshift'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-div.o): 
In function `_gcry_mpi_tdiv_q_2exp':
mpi-div.c:(.text+0x86b): undefined reference to `_gcry_mpih_rshift'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-inline.o): 
In function `_gcry_mpih_add':
mpi-inline.c:(.text+0xda): undefined reference to `_gcry_mpih_add_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-inline.o): 
In function `_gcry_mpih_sub':
mpi-inline.c:(.text+0x20e): undefined reference to `_gcry_mpih_sub_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-mul.o): 
In function `_gcry_mpi_mul_ui':
mpi-mul.c:(.text+0x93): undefined reference to `_gcry_mpih_mul_1'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-mul.o): 
In function `_gcry_mpi_mul_2exp':
mpi-mul.c:(.text+0x18b): undefined reference to `_gcry_mpih_lshift'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpi-pow.o): 
In function `_gcry_mpi_powm':
mpi-pow.c:(.text+0x207): undefined reference to `_gcry_mpih_lshift'
mpi-pow.c:(.text+0x966): undefined reference to `_gcry_mpih_lshift'
mpi-pow.c:(.text+0xa7c): undefined reference to `_gcry_mpih_rshift'
mpi-pow.c:(.text+0xafd): undefined reference to `_gcry_mpih_rshift'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-div.o): 
In function `_gcry_mpih_divrem':
mpih-div.c:(.text+0x39c): undefined reference to `_gcry_mpih_sub_n'
mpih-div.c:(.text+0x4d5): undefined reference to `_gcry_mpih_submul_1'
mpih-div.c:(.text+0x500): undefined reference to `_gcry_mpih_add_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `mul_n_basecase':
mpih-mul.c:(.text+0x9c): undefined reference to `_gcry_mpih_mul_1'
mpih-mul.c:(.text+0xfe): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x123): undefined reference to `_gcry_mpih_addmul_1'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `mul_n':
mpih-mul.c:(.text+0x1fb): undefined reference to `_gcry_mpih_addmul_1'
mpih-mul.c:(.text+0x23a): undefined reference to `_gcry_mpih_addmul_1'
mpih-mul.c:(.text+0x322): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x351): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x3a9): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x3dd): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x4b3): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x4ea): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x51d): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x5a3): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x647): undefined reference to `_gcry_mpih_add_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `_gcry_mpih_sqr_n_basecase':
mpih-mul.c:(.text+0x726): undefined reference to `_gcry_mpih_mul_1'
mpih-mul.c:(.text+0x788): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x7ad): undefined reference to `_gcry_mpih_addmul_1'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `_gcry_mpih_sqr_n':
mpih-mul.c:(.text+0x874): undefined reference to `_gcry_mpih_addmul_1'
mpih-mul.c:(.text+0x8b3): undefined reference to `_gcry_mpih_addmul_1'
mpih-mul.c:(.text+0x97d): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0x9a5): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0xa5f): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0xa90): undefined reference to `_gcry_mpih_sub_n'
mpih-mul.c:(.text+0xb08): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0xbac): undefined reference to `_gcry_mpih_add_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `_gcry_mpih_mul_karatsuba_case':
mpih-mul.c:(.text+0xf57): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x1066): undefined reference to `_gcry_mpih_add_n'
/media/data/vlc_android_x86/vlc/contrib/i686-android-linux/lib/libgcrypt.a(mpih-mul.o): 
In function `_gcry_mpih_mul':
mpih-mul.c:(.text+0x1239): undefined reference to `_gcry_mpih_mul_1'
mpih-mul.c:(.text+0x129b): undefined reference to `_gcry_mpih_add_n'
mpih-mul.c:(.text+0x12c0): undefined reference to `_gcry_mpih_addmul_1'
collect2: ld returned 1 exit status

So this patch is still needed.

Regards,
         Edward Wang


More information about the Android mailing list