Android NDK错误的GMP编译:Oops,mp_limb_t为64位,但此配置中的汇编代码需要32位

Android NDK错误的GMP编译:Oops,mp_limb_t为64位,但此配置中的汇编代码需要32位,android,gmp,Android,Gmp,我在64位系统上运行Arch Linux 我尝试按照以下说明操作: # download gmp, unpack cd $NDK_ROOT/sources wget ftp://ftp.gmplib.org/pub/gmp-4.2.4/gmp-4.2.4.tar.bz2 tar -jxvf gmp-4.2.4.tar.bz2 mv gmp-4.2.4 gmp cd gmp CFLAGS=-UHAVE_LOCALE_H ./configure --host=arm-unknown-linux -

我在64位系统上运行Arch Linux

我尝试按照以下说明操作:

# download gmp, unpack
cd $NDK_ROOT/sources
wget ftp://ftp.gmplib.org/pub/gmp-4.2.4/gmp-4.2.4.tar.bz2
tar -jxvf gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp

cd gmp
CFLAGS=-UHAVE_LOCALE_H ./configure --host=arm-unknown-linux --prefix=$SYSROOT/usr 
make
make install
发现;但是,我得到了错误(在这一点上,我没有任何线索,如果所有的输出都是相关的。我道歉,如果它太多):

我唯一能获得的ABI是标准:/ 此外,在同一链接[2]中,人们说标志-m32解决了这个问题,但是 我得到了错误

[jav@jav gmp]$ CFLAGS=-m32 ./configure --host=arm-unknown-linux --prefix=$SYSROOT/usr
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-unknown-linux-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=standard
checking compiler arm-unknown-linux-gcc -m32 ... no
checking compiler gcc -m32 ... no
checking compiler arm-unknown-linux-cc -m32 ... no
checking whether cc is gcc... yes
checking compiler cc -m32 ... no
configure: error: could not find a working compiler, see config.log for details
8月6日更新: 根据马克的建议。我设置了初步变量,但得到以下结果:

[jav@jav ~]$ $NDKROOT_64_r9c/build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=$NDKROOT_64_r9c/arm-linux-androideabi/
Auto-config: --toolchain=arm-linux-androideabi-4.6
Copying prebuilt binaries...
Copying sysroot headers and libraries...
Copying libstdc++ headers and libraries...
Copying files to: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/
Cleaning up...
Done.
[jav@jav ~]$ export CC="$NDKROOT_
$NDKROOT_32_r10  $NDKROOT_64_r9c  
[jav@jav ~]$ export CC="$NDKROOT_64_r9c/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=$NDKROOT_64_r9c/arm-linux-androideabi/sysroot"
[jav@jav ~]$ export CXX="$NDKROOT_64_r9c/arm-linux-androideabi/bin/arm-linux-androideabi-g++ --sysroot=$NDKROOT_64_r9c/arm-linux-androideabi/sysroot"
[jav@jav ~]$ $CXX
arm-linux-androideabi-g++: fatal error: no input files
compilation terminated.
[jav@jav ~]$ export AR="$NDKROOT_64_r9c/arm-linux-androideabi/bin/arm-linux-androideabi-ar"
[jav@jav ~]$ export SYSROOT="$NDKROOT_64_r9c/arm-linux-androideabi/sysroot"
[jav@jav ~]$ export PATH="$NDKROOT_64_r9c/arm-linux-androideabi/bin":$PATH
[jav@jav ~]$ cd android-ndk-r9c_64/
[jav@jav android-ndk-r9c_64]$ cd sources/
[jav@jav sources]$ cd gmp
[jav@jav gmp]$ CFLAGS=-UHAVE_LOCALE_H ./configure --host=arm-unknown-linux --prefix=$SYSROOT/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=standard
checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot is gcc... yes
checking compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -UHAVE_LOCALE_H ... yes
checking whether ARM gcc unsigned division works... yes
checking for arm-unknown-linux-gcc... /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot accepts -g... yes
checking for /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot option to accept ISO C89... none needed
checking for /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot option to accept ISO C99... -std=gnu99
checking for /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking how to run the C preprocessor... /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -std=gnu99 -E
checking build system compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -std=gnu99... no
checking build system compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -std=gnu99 -UHAVE_LOCALE_H ... no
checking build system compiler cc... no
checking build system compiler gcc... no
checking build system compiler c89... no
checking build system compiler c99... no
configure: error: Cannot find a build system compiler
很明显,编译器cc、gcc、c89和c99不存在,但我不知道如何修复它

现在,如果我在CFLAGS中使用-m32,我会得到:

[jav@jav gmp]$ CFLAGS=-m32 ./configure --host=arm-unknown-linux --prefix=$SYSROOT/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=standard
checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot is gcc... yes
checking compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32 ... no
configure: error: could not find a working compiler, see config.log for details
还有,my config.log: 调用命令行被激活

  $ ./configure --host=arm-unknown-linux --prefix=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot/usr

PATH: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/platform-tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/platform-tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/tools

## Core tests. ##

configure:3040: checking build system type
configure:3054: result: x86_64-unknown-linux-gnu
configure:3074: checking host system type
configure:3087: result: arm-unknown-linux-gnu
configure:3124: checking for a BSD-compatible install
configure:3192: result: /usr/bin/install -c
configure:3203: checking whether build environment is sane
configure:3253: result: yes
configure:3302: checking for arm-unknown-linux-strip
configure:3332: result: no
configure:3342: checking for strip
configure:3358: found /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/strip
configure:3369: result: strip
configure:3394: checking for a thread-safe mkdir -p
configure:3433: result: /usr/bin/mkdir -p
configure:3446: checking for gawk
configure:3462: found /usr/bin/gawk
configure:3473: result: gawk
configure:3484: checking whether make sets $(MAKE)
configure:3506: result: yes
configure:3589: checking whether to enable maintainer-specific portions of Makefiles
configure:3598: result: no
User:
ABI=
CC=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot
CFLAGS=-m32
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=standard
cclist=gcc cc
configure:5546: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -c conftest.c >&5
configure:5549: $? = 0
configure:5552: checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot is gcc
configure:5554: result: yes
configure:5568: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot 2>&1 | grep xlc >/dev/null
configure:5571: $? = 1
configure:5625: checking compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32 
Test compile: 
configure:5639: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32  conftest.c >&5
cc1: error: unrecognized command line option '-m32'
configure:5642: $? = 1
failed program was:

int main () { return 0; }
configure:6665: result: no
configure:6903: error: could not find a working compiler, see config.log for details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-m32
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-g++ --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-unknown-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI=''
ACLOCAL='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run aclocal-1.11'
AMTAR='$${TAR-tar}'
AR='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-ar'
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run autoconf'
AUTOHEADER='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run autoheader'
AUTOMAKE='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run automake-1.11'
AWK='gawk'
CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
CC='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
CCAS=''
CC_FOR_BUILD=''
CFLAGS='-m32'
CPP=''
CPPFLAGS=''
CPP_FOR_BUILD=''
CXX='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-g++ --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP=''
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 6.0.0'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='6.0.0'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ=''
STRIP='strip'
TAL_OBJECT=''
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='6.0.0'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='arm-unknown-linux-gnu'
host_alias='arm-unknown-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
mpn_objects=''
mpn_objs_in_libgmp=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "6.0.0"
#define PACKAGE_STRING "GNU MP 6.0.0"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "6.0.0"
#define WANT_ASSEMBLY 1
#define WANT_FFT 1
#define HAVE_HOST_CPU_arm 1

configure: exit 1

请帮忙。

我猜您的主机值是错误的。arm unknown linux意味着您希望您的gmp在32位arm linux上使用。如果您是为64位arm android交叉编译,正确的主机是aarch64 linux android。

gmp 4.2.4对于最新的android版本来说可能太旧了,您将得不到任何上游支持。试试最新的GMP版本(6.0.0)。你需要一个交叉编译器来交叉编译…@vinc17:我得到了与gmp4.2相同的输出。4@MarcGlisse当前位置我认为我发布的第一个链接包含了我需要的所有信息。那么,我如何才能成功地调用这个交叉编译器呢?您似乎跳过了该链接中的准备工作:
export CC=…
等等。这是一个非常有用的答案,因为在我的
windows7 msys2
环境中,我遇到了类似的错误,在检查
--host
变量后,结果是错误的。它在另一个Windows系统变量和/或msys2的
.bashrc
变量下注册为
x86\u 64-pc-msys
。我已经通过在
configure
中输入
--host=x86\u 64-pc-mingw64
覆盖了该变量,然后它的配置性能良好。
[jav@jav gmp]$ CFLAGS=-m32 ./configure --host=arm-unknown-linux --prefix=$SYSROOT/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=standard
checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot is gcc... yes
checking compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32 ... no
configure: error: could not find a working compiler, see config.log for details
  $ ./configure --host=arm-unknown-linux --prefix=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot/usr

PATH: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/platform-tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/platform-tools{PATH}
PATH: /home/jav/adt-bundle-linux-x86_64/sdk/tools

## Core tests. ##

configure:3040: checking build system type
configure:3054: result: x86_64-unknown-linux-gnu
configure:3074: checking host system type
configure:3087: result: arm-unknown-linux-gnu
configure:3124: checking for a BSD-compatible install
configure:3192: result: /usr/bin/install -c
configure:3203: checking whether build environment is sane
configure:3253: result: yes
configure:3302: checking for arm-unknown-linux-strip
configure:3332: result: no
configure:3342: checking for strip
configure:3358: found /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/strip
configure:3369: result: strip
configure:3394: checking for a thread-safe mkdir -p
configure:3433: result: /usr/bin/mkdir -p
configure:3446: checking for gawk
configure:3462: found /usr/bin/gawk
configure:3473: result: gawk
configure:3484: checking whether make sets $(MAKE)
configure:3506: result: yes
configure:3589: checking whether to enable maintainer-specific portions of Makefiles
configure:3598: result: no
User:
ABI=
CC=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot
CFLAGS=-m32
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=standard
cclist=gcc cc
configure:5546: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -c conftest.c >&5
configure:5549: $? = 0
configure:5552: checking whether /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot is gcc
configure:5554: result: yes
configure:5568: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot 2>&1 | grep xlc >/dev/null
configure:5571: $? = 1
configure:5625: checking compiler /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32 
Test compile: 
configure:5639: /home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot -m32  conftest.c >&5
cc1: error: unrecognized command line option '-m32'
configure:5642: $? = 1
failed program was:

int main () { return 0; }
configure:6665: result: no
configure:6903: error: could not find a working compiler, see config.log for details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-m32
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-g++ --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-unknown-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI=''
ACLOCAL='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run aclocal-1.11'
AMTAR='$${TAR-tar}'
AR='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-ar'
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run autoconf'
AUTOHEADER='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run autoheader'
AUTOMAKE='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run automake-1.11'
AWK='gawk'
CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
CC='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-gcc --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
CCAS=''
CC_FOR_BUILD=''
CFLAGS='-m32'
CPP=''
CPPFLAGS=''
CPP_FOR_BUILD=''
CXX='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/bin/arm-linux-androideabi-g++ --sysroot=/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot'
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP=''
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 6.0.0'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='6.0.0'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ=''
STRIP='strip'
TAL_OBJECT=''
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='6.0.0'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='arm-unknown-linux-gnu'
host_alias='arm-unknown-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/jav/android-ndk-r9c_64/sources/gmp/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
mpn_objects=''
mpn_objs_in_libgmp=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/jav/android-ndk-r9c_64/arm-linux-androideabi/sysroot/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "6.0.0"
#define PACKAGE_STRING "GNU MP 6.0.0"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "6.0.0"
#define WANT_ASSEMBLY 1
#define WANT_FFT 1
#define HAVE_HOST_CPU_arm 1

configure: exit 1