Repository navigation
Closed as not planned
Labels
Description
Versions
- Python: 3.10
- OS: Linux, WSL
- Kivy: latest
- Cython:
- OpenJDK:
- P4A: latest
Description
There seems to be an error in the configuration of libffi and GNU Autoconf which causes failure in compiling the python application.
Logs
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libffi configure 3.4.2, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ /home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/configure --host=aarch64-linux-android --prefix=/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi --disable-builddir --enable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = kyrios
uname -m = x86_64
uname -r = 6.4.10-zen2-1-zen
uname -s = Linux
uname -v = #1 ZEN SMP PREEMPT_DYNAMIC Sun, 13 Aug 2023 01:33:59 +0000
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/
PATH: /opt/android-sdk/ndk/25.2.9519653/
PATH: /opt/android-sdk/tools/
PATH: /home/reactormonk/dev/reach/kivy/venv/bin/
PATH: /home/tass/perl5/bin/
PATH: /home/reactormonk/.cargo/bin/
PATH: /opt/android-sdk/platform-tools/
PATH: /home/reactormonk/.node_modules/bin/
PATH: /home/reactormonk/.local/bin/
PATH: /home/reactormonk/.gem/ruby/2.3.0/bin/
PATH: /home/reactormonk/dev/nim/nim/compiler/c2nim/
PATH: /home/reactormonk/dev/nim/nim/bin/
PATH: /home/reactormonk/bin/
PATH: /home/reactormonk/.nimble/bin/
PATH: /home/reactormonk/.gem/ruby/2.3.0/bin/
PATH: /home/reactormonk/.nimble/bin/
PATH: /opt/google-cloud-cli/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /home/reactormonk/.dotnet/tools/
PATH: /usr/lib/jvm/default/bin/
PATH: /usr/bin/site_perl/
PATH: /usr/bin/vendor_perl/
PATH: /usr/bin/core_perl/
PATH: /home/reactormonk/.npm/bin/
PATH: /home/reactormonk/.local/bin/
PATH: Unknown command/
PATH: "bin"
To see a list of supported npm commands, run/
PATH:
npm help/
PATH: /home/reactormonk/.pub-cache/bin/
PATH: /cmdline-tools/latest/bin/
PATH: /opt/android-sdk/cmdline-tools/latest/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3072: looking for aux files: ltmain.sh compile missing install-sh config.guess config.sub
configure:3085: trying ./
configure:3114: ./ltmain.sh found
configure:3114: ./compile found
configure:3114: ./missing found
configure:3096: ./install-sh found
configure:3114: ./config.guess found
configure:3114: ./config.sub found
configure:3235: checking build system type
configure:3250: result: x86_64-pc-linux-gnu
configure:3270: checking host system type
configure:3284: result: aarch64-unknown-linux-android
configure:3304: checking target system type
configure:3318: result: aarch64-unknown-linux-android
configure:3417: checking for gsed
configure:3453: result: sed
configure:3482: checking for a BSD-compatible install
configure:3555: result: /usr/bin/install -c
configure:3566: checking whether build environment is sane
configure:3621: result: yes
configure:3673: checking for aarch64-linux-android-strip
configure:3705: result: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded
configure:3776: checking for a race-free mkdir -p
configure:3820: result: /usr/bin/mkdir -p
configure:3827: checking for gawk
configure:3848: found /usr/bin/gawk
configure:3859: result: gawk
configure:3870: checking whether make -j16 sets $(MAKE)
configure:3893: result: yes
configure:3923: checking whether make -j16 supports nested variables
configure:3941: result: yes
configure:4105: checking for aarch64-linux-android-gcc
configure:4137: result: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC
configure:4535: checking for C compiler version
configure:4544: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC --version >&5
Android (9352603, based on r450784d1) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6)
Target: aarch64-unknown-linux-android25
Thread model: posix
InstalledDir: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin
configure:4555: $? = 0
configure:4544: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -v >&5
Android (9352603, based on r450784d1) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6)
Target: aarch64-unknown-linux-android25
Thread model: posix
InstalledDir: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin
clang-14: warning: argument unused during compilation: '-fomit-frame-pointer' [-Wunused-command-line-argument]
clang-14: warning: argument unused during compilation: '-fPIC' [-Wunused-command-line-argument]
configure:4555: $? = 0
configure:4544: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -V >&5
clang-14: error: argument to '-V' is missing (expected 1 value)
clang-14: error: no input files
configure:4555: $? = 1
configure:4544: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -qversion >&5
clang-14: error: unknown argument '-qversion'; did you mean '--version'?
clang-14: error: no input files
configure:4555: $? = 1
configure:4544: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -version >&5
clang-14: error: unknown argument '-version'; did you mean '--version'?
clang-14: error: no input files
configure:4555: $? = 1
configure:4575: checking whether the C compiler works
configure:4597: /opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC -DANDROID -I/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/reactormonk/.local/share/python-for-android/build/python-installs/unnamed_dist_3/arm64-v8a/include/python3.1 -L/home/reactormonk/.local/share/python-for-android/build/libs_collections/unnamed_dist_3/arm64-v8a conftest.c >&5
ld: error: cannot open crtbegin_dynamic.o: No such file or directory
ld: error: cannot open crtend_android.o: No such file or directory
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4601: $? = 1
configure:4641: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libffi"
| #define PACKAGE_TARNAME "libffi"
| #define PACKAGE_VERSION "3.4.2"
| #define PACKAGE_STRING "libffi 3.4.2"
| #define PACKAGE_BUGREPORT "https://github.com/libffi/libffi/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libffi"
| #define VERSION "3.4.2"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:4646: error: in `/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi':
configure:4648: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/missing'\'' aclocal-1.16'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_LTLDFLAGS=''
AM_RUNTESTFLAGS=''
AM_V='$(V)'
AR='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar'
AUTOCONF='${SHELL} '\''/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/missing'\'' automake-1.16'
AWK='gawk'
BUILD_DOCS_FALSE=''
BUILD_DOCS_TRUE=''
CC='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC'
CPPFLAGS='-DANDROID -I/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/reactormonk/.local/share/python-for-android/build/python-installs/unnamed_dist_3/arm64-v8a/include/python3.1'
CSCOPE='cscope'
CTAGS='ctags'
CXX='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-target aarch64-linux-android25 -fomit-frame-pointer -march=armv8-a -fPIC'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FFI_DEBUG_FALSE=''
FFI_DEBUG_TRUE=''
FFI_EXEC_TRAMPOLINE_TABLE=''
FFI_EXEC_TRAMPOLINE_TABLE_FALSE=''
FFI_EXEC_TRAMPOLINE_TABLE_TRUE=''
FGREP=''
FILECMD=''
GREP=''
HAVE_LONG_DOUBLE=''
HAVE_LONG_DOUBLE_VARIANT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=' -L/home/reactormonk/.local/share/python-for-android/build/libs_collections/unnamed_dist_3/arm64-v8a'
LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=''
LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=''
LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=''
LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} '\''/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPT_LDFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libffi'
PACKAGE_BUGREPORT='https://github.com/libffi/libffi/issues'
PACKAGE_NAME='libffi'
PACKAGE_STRING='libffi 3.4.2'
PACKAGE_TARNAME='libffi'
PACKAGE_URL=''
PACKAGE_VERSION='3.4.2'
PATH_SEPARATOR=':'
PRTDIAG=''
RANLIB='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib'
READELF='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readelf'
SECTION_LDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='/opt/android-sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded'
TARGET='aarch64-unknown-linux-android'
TARGETDIR=''
TARGET_OBJ=''
TESTSUBDIR_FALSE=''
TESTSUBDIR_TRUE=''
VERSION='3.4.2'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_enable_builddir_sed='sed'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='aarch64-unknown-linux-android'
host_alias='aarch64-linux-android'
host_cpu='aarch64'
host_os='linux-android'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/reactormonk/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_25/libffi'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sys_symbol_underscore=''
sysconfdir='${prefix}/etc'
target='aarch64-unknown-linux-android'
target_alias='aarch64-linux-android'
target_cpu='aarch64'
target_os='linux-android'
target_vendor='unknown'
toolexecdir=''
toolexeclibdir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libffi"
#define PACKAGE_TARNAME "libffi"
#define PACKAGE_VERSION "3.4.2"
#define PACKAGE_STRING "libffi 3.4.2"
#define PACKAGE_BUGREPORT "https://github.com/libffi/libffi/issues"
#define PACKAGE_URL ""
#define PACKAGE "libffi"
#define VERSION "3.4.2"
configure: exit 77
Activity
RobertFlatt commentedon Aug 18, 2023
https://github.com/Android-for-Python/Android-for-Python-Users#c-compiler-cannot-create-executables
TobiasHT5 commentedon Aug 18, 2023
@RobertFlatt Personally I'm using p4a directly without buildozer, and this seems to be the main source of the problem.
RobertFlatt commentedon Aug 18, 2023
The easy way to test would be to try with Buildozer.
If if fails update WSL, if it works you have a workaround.
I don't have any other suggestion.
misl6 commentedon Aug 22, 2023
Hi @ht-thomas , can you please post the full log?
TobiasHT5 commentedon Aug 22, 2023
hey @misl6 ,
These are the arguments are passed to p4a the latest, this is the log from the command line. I tried to write it to a stdout that can record everything in a file but this is all I could collect from the log.
RobertFlatt commentedon Aug 22, 2023
https://github.com/Android-for-Python/Android-for-Python-Users#c-compiler-cannot-create-executables
TobiasHT5 commentedon Aug 22, 2023
Hey @RobertFlatt ,
I've checked out the link you've shared multiple times and it doesn't apply to my situation because in the first case I'm using Ubuntu 22.04 instead of WSL and also I'm using p4a directly without buildozer. I've always been using p4a without buildozer.
HyTurtle commentedon Aug 22, 2023
By latest p4a which branch do you mean? If not
developI would see if the issue remains there and if so a fuller log of the failed buildRobertFlatt commentedon Aug 23, 2023
Thanks @ht-thomas , at the very top of this thread is it says
If that is incorrect and you are not using WSL, then my comment does not apply.
TobiasHT5 commentedon Aug 23, 2023
@HyTurtle the p4a version I'm running is 2023.05.21, the one which was recently released.
Julian-O commentedon Nov 20, 2023
@ht-thomas: Even if you are running on Ubuntu now, is there a chance you are using an NTFS drive volume created in Windows?
TobiasHT5 commentedon Nov 20, 2023
@Julian-O I highly doubt that since the whole machine was formatted. But I think the bug is in the NDK which p4a supports