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

Problem Ubuntu compilation on network drive #10

Closed
x6776 opened this issue Mar 7, 2013 · 4 comments
Closed

Problem Ubuntu compilation on network drive #10

x6776 opened this issue Mar 7, 2013 · 4 comments

Comments

@x6776
Copy link

x6776 commented Mar 7, 2013

Entering in ARM enviromnent
Compiler found at /home/julien/.buildozer/android/platform/android-sdk-8c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
find: "/mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/application/src/": N'est pas un dossier
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Compile thumb  : png <= png.c
ccache /home/julien/.buildozer/android/platform/android-sdk-8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -MMD -MP -MF /mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/png/png.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__  -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I/mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/png -DANDROID  -Wa,--noexecstack -O2 -DNDEBUG -g -I/home/julien/.buildozer/android/platform/android-sdk-8c/platforms/android-14/arch-arm/usr/include -c  /mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/png/png.c -o /mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/png/png.o 
make: *** [/mnt/dev/Kivy_Projects/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/png/png.o] Erreur de segmentation (core dumped)
# Command failed: ./distribute.sh -m "pil kivy"
@tito
Copy link
Member

tito commented Mar 7, 2013

Well, first it's WIP, and you don't give any information about your env. How do you think we can help ? :)

@x6776
Copy link
Author

x6776 commented Mar 8, 2013

Hello,

You are right, I'm sorry for this.

I'm running on Kubuntu 12.04 LTS

Linux mobutu 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

My .bashrc has

export ANDROIDNDK="/home/julien/android-dev/android-ndk-r8c"
export ANDROIDSDK="/home/julien/android-dev/android-sdk-linux"
export ANDROIDNDKVER=r8c
export ANDROIDAPI=14

export PATH=$ANDROIDNDK:$PATH
export PATH=$ANDROIDSDK:$PATH
export PATH=$ANDROIDSDK/tools:$PATH
export PATH=$ANDROIDSDK/platform-tools:$PATH

export JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64"

But without it is the same.

Error raise with buildozer is the same of error raised when I use python-for-android.

I use python module from apt-get like apt-get install python-kivy...I use Python 2.7.3. I use kivy 1.5.1. I use last Cython.

About gcc

Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configuré avec: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Modèle de thread: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

I think your right about personnal problem but I don't know where is the problem.

When I search about sh: 0: getcwd() failed: No such file or directory

http://www.debian-fr.org/sh-getcwd-failed-no-such-file-or-directory-t34219.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686782
http://debian.2.n7.nabble.com/Bug-698889-packaging-tutorial-installation-errors-sh-0-getcwd-fails-td2855036.html
https://lists.ubuntu.com/archives/foundations-bugs/2011-November/048576.html

According to this links, it seems a path problem or similar.

So I don't really what is the problem.

Have you advice or suggestion for me ?

P.S : running building on your VM img is ok.

Thank you.

J.H

@x6776
Copy link
Author

x6776 commented Mar 8, 2013

Hello,

I've read http://stackoverflow.com/questions/12758125/sh-0-getcwd-failed-no-such-file-or-directory-on-cited-drive

So I test on a local drive and sh: 0: getcwd() failed: No such file or directory disappears. It must be a bug with symlink and network drive on ubuntu.

But now I've another error about SDL :

In file included from /home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_pixels.c:35:0:
/home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_blit.h:1:1: error: expected identifier or '(' before '.' token
In file included from /home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_pixels.c:36:0:
/home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_pixels_c.h:40:1: error: unknown type name 'SDL_BlitMap'
/home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_pixels_c.h:41:31: error: unknown type name 'SDL_BlitMap'
/home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/jni/../jni/sdl/src/video/android/SDL_pixels_c.h:43:29: error: unknown type name 'SDL_BlitMap'
make: *** [/home/julien/kivymeteo-android/kivymeteo/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/sdl/src/video/android/SDL_pixels.o] Error 1

Command failed: ./distribute.sh -m "pil kivy"

Do you want I create a new issue for this ?

Thank you

J.H

@x6776
Copy link
Author

x6776 commented Mar 25, 2013

Hello,

You can close this noisy issue, I've a mistake configuration in my .bashrc. Circular symlink and path in my $PATH export.

Thank you.

J.H

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