Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: tohox on August 04, 2016, 01:55:29 PM

Title: RPi.GPIO under Python 3.5
Post by: tohox on August 04, 2016, 01:55:29 PM
Hi,

The python-RPi.GPIO.tcz package installed through TCE didn't seem to work with Python 3.5 so I decided to install the package through PIP instead.

The PIP install always fails with gcc complaining that:
Code: [Select]
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O3 -pipe -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -fPIC -I/usr/local/include/python3.5m -c source/py_gpio.c -o build/temp.linux-armv7l-3.5/source/py_gpio.o
    gcc: error trying to exec 'as': execvp: No such file or directory
    In file included from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/6.1.0/include-fixed/limits.h:168:0,
                     from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/6.1.0/include-fixed/syslimits.h:7,
                     from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/6.1.0/include-fixed/limits.h:34,
                     from /usr/local/include/python3.5m/Python.h:11,
                     from source/py_gpio.c:23:
    /usr/lib/gcc/armv7l-unknown-linux-gnueabihf/6.1.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
     #include_next <limits.h>  /* recurse down to the real one */
                                                                 ^
    compilation terminated.

I assume I'm missing something called AS but searching for a combination of GCC and AS on Google is like searching for a single Cheerios in a box full of Froot Loops...

Any help appreciated!
Title: Re: RPi.GPIO under Python 3.5
Post by: bmarkus on August 04, 2016, 03:27:35 PM
Most probably you miss linux api headers file. Install it from the repo.
Title: Re: RPi.GPIO under Python 3.5
Post by: Rich on August 04, 2016, 04:53:48 PM
Hi tohox
Quote
gcc: error trying to exec 'as': execvp: No such file or directory
Check if  binutils.tcz  is installed.
Title: Re: RPi.GPIO under Python 3.5
Post by: bmarkus on August 05, 2016, 02:38:00 AM
Did you install gcc.tcz only or the development package, compile-essentials.tcz (piCore-7 or earlier) or compiletc.tcz (piCore-8)?
Title: Re: RPi.GPIO under Python 3.5
Post by: tohox on August 05, 2016, 09:06:44 AM
Running 8 beta 3 and had only installed GCC... I installed compiletc.tcz and was then able to add RPi.GPIO without any issues.

Thanks a lot!