sakaki-/gentoo-on-rpi-64bit

RPi.GPIO Install for argon1 fan hat

JarrodHardy opened this issue · 1 comments

I have been digging around for a solution to installing the argon1 fan hat control on this Gentoo RPi 64bit, I found a modified argon1.sh that replaces the systemctl to not use systemd however trying to install RPi.GPIO-0.7.0.tar.gz fails with errors I just haven't had any luck finding a solution.... or if its even possible. Figured I would try posting here before I stop spending time on this and throw away the argon1 fan hat.

pi64 ~ # pip install RPi.GPIO --user
Collecting RPi.GPIO
Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Building wheels for collected packages: RPi.GPIO
Building wheel for RPi.GPIO (setup.py) ... error
ERROR: Command errored out with exit status 1:
...
error: command 'aarch64-unknown-linux-gnu-gcc' failed with exit status 1
ERROR: Failed building wheel for RPi.GPIO
Running setup.py clean for RPi.GPIO
Failed to build RPi.GPIO
Installing collected packages: RPi.GPIO
Running setup.py install for RPi.GPIO ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xc05i8kr/RPi.GPIO/setup.py'"'"'; file='"'"'/tmp/pip-install-xc05i8kr/RPi.GPIO/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-d58ulpay/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.6m/RPi.GPIO
cwd: /tmp/pip-install-xc05i8kr/RPi.GPIO/
...
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xc05i8kr/RPi.GPIO/setup.py'"'"'; file='"'"'/tmp/pip-install-xc05i8kr/RPi.GPIO/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-d58ulpay/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.6m/RPi.GPIO Check the logs for full command output.

It looks like CFLAGS=-fcommon was needed to install RPi.GPIO