Új hozzászólás Aktív témák

  • Mr Dini

    addikt

    LOGOUT blog

    válasz Mr Dini #28085 üzenetére

    Kipróbáltam lefordítani egy Hello Mr Dini! programot az Rpiről, a hozzá járó gcc-vel, de nem akar a teló mit kezdeni vele...

    GCC flags és verzió:

    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1' --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-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
    Thread model: posix
    gcc version 4.6.3 (Debian 4.6.3-14+rpi1)

    file kimenet, a kész binárisra:

    ./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.26, BuildID[sha1]=0x4c1ff035ed1430cbb3327f2e744d21d4f07bb893, not stripped

    Az RPi2 uname -a kimenete:

    root@raspberrypi:~# uname -a
    Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux

    Ja és maga a hiba:

    shell@android:/storage/sdcard0 $ ./hello
    /system/bin/sh: ./hello: can't execute: Permission denied

    Pedig van rajta jog...

    A droid kernele pedig:

    Linux localhost 2.6.38.6-cyanogenmod #1 PREEMPT Wed Aug 15 21:31:47 EEST 2016 armv7l GNU/Linux

    Mi lehet a gond?

    Köszi! :R

    [ Szerkesztve ]

    Eleinte angol billentzuyetet akartam. De aztán megismerkedtem a nagy 'Ő'-vel!

Új hozzászólás Aktív témák