Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"configure: error: C compiler cannot create executables See `config.log' for more details" (# Command failed: ./distribute.sh -m "kivy" -d "pollygot") #627

Closed
hebozhe opened this issue Feb 26, 2018 · 1 comment

Comments

@hebozhe
Copy link

hebozhe commented Feb 26, 2018

Once again, the relevant details:

  • On Windows 10.
  • Built a set of four py files (one main.py) all in Python 2.7.9.
  • No longer sharing the file from Windows to the VM, instead downloaded all of the relevant files from Dropbox.
  • Using manually downloaded Miniconda2 as my interpreter.
  • Miniconda2 and all other files loaded in C:\Users\Me\Miniconda2...
  • Downloaded Kivy and other non-built-in modules from Windows command prompt.
  • Using Kivy Buildozer VM on Oracle VM VirtualBox.

Okay, back so soon, but here was the subsequent error:

# Check garden requirements
# Compile platform
# Run './distribute.sh -l'
# Cwd /home/kivy/Desktop/IdiomasApp/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph click cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer ffpyplayer_tito flask freetype gevent greenlet harfbuzz hostpython igraph itsdangerous jinja2 jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto markupsafe midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws werkzeug wokkel zeroconf zope
# Clean and build python-for-android
# Remove directory and subdirectory /home/kivy/Desktop/IdiomasApp/.buildozer/android/platform/python-for-android/dist/pollygot
# Run './distribute.sh -m "kivy" -d "pollygot"'
# Cwd /home/kivy/Desktop/IdiomasApp/.buildozer/android/platform/python-for-android
Check build dependencies for Ubuntu
Packages missing: cython 
It might break the compilation, except if you installed thoses packages manually.
Check environment
SDK located at /home/kivy/.buildozer/android/platform/android-sdk-20
NDK located at /home/kivy/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 19
Check NDK location
Check mandatory tools
Distribution will be located at /home/kivy/Desktop/IdiomasApp/.buildozer/android/platform/python-for-android/dist/pollygot
Entering in ARM environment
Compiler found at /home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
PATH is /home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/:/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/:/home/kivy/.buildozer/android/platform/android-ndk-r9c:/home/kivy/.buildozer/android/platform/android-sdk-20/tools:/home/kivy/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Leaving ARM environment
Read kivy recipe
Module kivy depend on pygame pyjnius android
Read pygame recipe
Module pygame depend on python sdl
Read pyjnius recipe
Module pyjnius depend on python sdl six
Read android recipe
Module android depend on pygame
Read python recipe
Module python depend on hostpython
Read sdl recipe
Module sdl depend on python
Ignored python, already processed
Ignored sdl, already processed
Read six recipe
Module six depend on python
Ignored pygame, already processed
Read hostpython recipe
Ignored python, already processed
Ignored python, already processed
Modules changed to hostpython python sdl six pygame pyjnius android kivy
Pure-Python modules changed to 
Run get packages
Download package for hostpython
Module hostpython already downloaded
Download package for python
Module python already downloaded
Download package for sdl
No package for sdl
Download package for six
Module six already downloaded
Download package for pygame
Module pygame already downloaded
Download package for pyjnius
Module pyjnius already downloaded
Download package for android
No package for android
Download package for kivy
Module kivy already downloaded
Run prebuild
Call prebuild_hostpython
Call prebuild_python
Call prebuild_sdl
Call prebuild_six
Call prebuild_pygame
Call prebuild_pyjnius
Call prebuild_android
Call prebuild_kivy
Run build
Skipped build_hostpython
Call build_python
Entering in ARM environment
Compiler found at /home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux4
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for arm-eabi-gcc... arm-linux-androideabi-gcc -DANDROID -mandroid  -fomit-frame-pointer --sysroot /home/kivy/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm
checking whether the C compiler works... no
configure: error: in `/home/kivy/Desktop/IdiomasApp/.buildozer/android/platform/python-for-android/build/python/Python-2.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
# Command failed: ./distribute.sh -m "kivy" -d "pollygot"
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

The only places in my buildozer.spec file (or anywhere else, for that matter) where the string "pollygot" appears:

[app]

# (str) Title of your application
title = PollyGot

# (str) Package name
package.name = pollygot

# (str) Package domain (needed for android/ios packaging)
package.domain = pollygot.test

I tried adding python2 and cython to the buildozer.spec requirements, but it threw the same error. Where ought I go from here?

Also, what details should I be looking for in config.log, and where do I find it on the Buildozer VM?

@hebozhe
Copy link
Author

hebozhe commented Feb 26, 2018

Solved it myself. Here's what I did:

  1. I totally restarted, as in deleted and reinstalled, the Kivy/Buildozer VM because I wasn't sure what changes I had made in my troubleshooting efforts.
  2. Then, I ran the "buildozer android_new debug" command.
  3. It threw some error, but got past the one mentioned in the original post.
  4. Then, I ran the "buildozer android debug" command from the same place, and the APK was compiled and completed.

The APK didn't work, though. At least it compiled, so I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants