-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Hey guys, the new ccache compilation route causes me issues... I haven't tried to step through the code to see exactly what's going on but have included some error messages below in case you can spot anything obvious...
My problem is that i get an error when linking a bunch of compiled c++ ".o" files for one of the packages I'm including in my android distribution.
The P4A call I'm using to set off compilation looks like this:
python -m pythonforandroid.toolchain apk --private /home/hottwaj/prog/src/testapp --package=org.hottwaj.testapp --name="testapp" --version=0.2 --requirements=sdl,python2,audiostream,my_cpp_lib --dist_name=testapp
The command executed by P4A that's going wrong looks like this:
/usr/bin/ccache -lm -L/home/hottwaj/.local/share/python-for-android/build/libs_collections/testapp/armeabi-L/home/hottwaj/.local/share/python-for-android/build/libs_collections/testapp -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/hottwaj/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -I/home/hottwaj/.local/share/python-for-android/build/bootstrap_builds/pygame/jni/sdl/include -I/home/hottwaj/.local/share/python-for-android/build/bootstrap_builds/pygame/jni/sdl_mixer ... BIG LIST OF .o FILES ... -L/home/hottwaj/.buildozer/android/platform/android-ndk-r9c/sources/cxx-stl/stlport/libs/armeabi-v7a -L/home/hottwaj/.local/share/python-for-android/build/other_builds/python2/armeabi/python2/python-install/lib -lstlport_shared -llog -lpython2.7 -o my_linked_so_file_thing.so -fexceptions -frtti -fPIC -shared
The error message is:
/usr/bin/ccache: invalid option -- 'l'
If I roll back to before the ccache changes were made, e.g. 9916cb5 then I don't have this problem anymore...
Other calls to ccache that I can see were executed by P4A look like this - but the problem call above is missing the gcc part - is that the cause?
/usr/bin/ccache arm-linux-androideabi-gcc
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.