kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
781 stars 240 forks source link

libffi recipe build hangs during configuration #889

Closed randdvorak closed 9 months ago

randdvorak commented 9 months ago

Versions

Describe the bug running python3 toolchain.py build python3 Kivy hangs upon building libffi during configuration.

To Reproduce from master branch: python3 toolchain.py build python3 Kivy

Expected behavior libffi congfigure runs normally

Logs

from configuration log:
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.4, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ../configure -host x86_64-apple-darwin13

## --------- ##
## Platform. ##
## --------- ##

hostname = Rands-Mac-Pro-38.lan
uname -m = x86_64
uname -r = 22.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.6.0: Tue Nov  7 21:48:06 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
         Darwin Kernel Version 22.6.0: Tue Nov  7 21:48:06 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_X86_64
Kernel configured for up to 12 processors.
6 processors are physically available.
12 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7 8 9 10 11
Primary memory available: 128.00 gigabytes
Default processor set: 781 tasks, 2834 threads, 12 processors
Load average: 23.42, Mach factor: 0.51
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/gnu/bin/
PATH: /usr/local/bin/
PATH: /bin/
PATH: /usr/bin/
PATH: ./

## ----------- ##
## Core tests. ##
## ----------- ##

configure:3073: looking for aux files: ltmain.sh compile missing install-sh config.guess config.sub
configure:3086:  trying ../
configure:3115:   ../ltmain.sh found
configure:3115:   ../compile found
configure:3115:   ../missing found
configure:3097:   ../install-sh found
configure:3115:   ../config.guess found
configure:3115:   ../config.sub found
configure:3236: checking build system type
configure:3251: result: x86_64-apple-darwin22.6.0
configure:3271: checking host system type
configure:3285: result: x86_64-apple-darwin13
configure:3305: checking target system type
configure:3319: result: x86_64-apple-darwin13
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 x86_64-apple-darwin13-strip
configure:3708: result: no
configure:3718: checking for strip
configure:3739: found /usr/bin/strip
configure:3750: result: strip
configure:3776: checking for a race-free mkdir -p
configure:3820: result: ../install-sh -c -d
configure:3827: checking for gawk
configure:3862: result: no
configure:3827: checking for mawk
configure:3862: result: no
configure:3827: checking for nawk
configure:3862: result: no
configure:3827: checking for awk
configure:3848: found /usr/bin/awk
configure:3859: result: awk
configure:3870: checking whether make sets $(MAKE)
configure:3893: result: yes
configure:3923: checking whether make supports nested variables
configure:3941: result: yes
configure:4105: checking for x86_64-apple-darwin13-gcc
configure:4137: result: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator
configure:4535: checking for C compiler version
configure:4544: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator --version >&5
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-ios-simulator
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4555: $? = 0
configure:4544: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -v >&5
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-ios-simulator
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4555: $? = 0
configure:4544: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4555: $? = 1
configure:4544: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:4555: $? = 1
configure:4544: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:4555: $? = 1
configure:4575: checking whether the C compiler works
configure:4597: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -miphoneos-version-min=9.0 -fembed-bitcode   conftest.c  >&5
configure:4601: $? = 0
configure:4651: result: yes
configure:4654: checking for C compiler default output file name
configure:4656: result: a.out
configure:4662: checking for suffix of executables
configure:4669: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -o conftest -miphoneos-version-min=9.0 -fembed-bitcode   conftest.c  >&5
configure:4673: $? = 0
configure:4696: result: 
configure:4718: checking whether we are cross compiling
configure:4726: xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator -o conftest -miphoneos-version-min=9.0 -fembed-bitcode   conftest.c  >&5
configure:4730: $? = 0
configure:4737: ./conftest
dyld[47347]: DYLD_ROOT_PATH not set for simulator program

Additional context I don't know if my particular setup is causing the problem, but I tried downgrading libffi version with the same results. openSSlL builds normally

github-actions[bot] commented 9 months ago

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. For troubleshooting advice and other frequently asked questions, consult the latest Kivy for iOS FAQ. Let us know if this comment was made in error, and we'll be happy to reopen the issue.