Pip install rpi.gpio fail

Hi,

I am trying to install RPi.GPIO in a python virtuel environment but can’t get it to compile and install…

Looks to me like a gcc problem?

Help would be greatly appreciated!
Thanks,
Jerome

(testRPi.GPIO) [jerlem@pbp testRPi.GPIO]$ pip install rpi.gpio
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:
   command: /home/jerlem/testRPi.GPIO/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qfm6cik4/rpi-gpio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qfm6cik4/rpi-gpio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kb5a6frs
       cwd: /tmp/pip-install-qfm6cik4/rpi-gpio/
  Complete output (85 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.8
  creating build/lib.linux-aarch64-3.8/RPi
  copying RPi/__init__.py -> build/lib.linux-aarch64-3.8/RPi
  creating build/lib.linux-aarch64-3.8/RPi/GPIO
  copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.8/RPi/GPIO
  running build_ext
  building 'RPi._GPIO' extension
  creating build/temp.linux-aarch64-3.8
  creating build/temp.linux-aarch64-3.8/source
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/py_gpio.c -o build/temp.linux-aarch64-3.8/source/py_gpio.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/c_gpio.c -o build/temp.linux-aarch64-3.8/source/c_gpio.o
  source/c_gpio.c: In function ‘setup’:
  source/c_gpio.c:130:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
        |         ^
  source/c_gpio.c:131:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
        |                                  ^
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.8/source/cpuinfo.o
  source/cpuinfo.c: In function ‘get_rpi_info’:
  source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigned int *’} [-Wformat=]
    139 |       sscanf(revision, "%llx", &rev);
        |                         ~~~^   ~~~~
        |                            |   |
        |                            |   uint64_t * {aka long unsigned int *}
        |                            long long unsigned int *
        |                         %lx
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/event_gpio.c -o build/temp.linux-aarch64-3.8/source/event_gpio.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.8/source/soft_pwm.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/py_pwm.c -o build/temp.linux-aarch64-3.8/source/py_pwm.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/common.c -o build/temp.linux-aarch64-3.8/source/common.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/constants.c -o build/temp.linux-aarch64-3.8/source/constants.o
  gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fno-semantic-interposition -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-aarch64-3.8/source/py_gpio.o build/temp.linux-aarch64-3.8/source/c_gpio.o build/temp.linux-aarch64-3.8/source/cpuinfo.o build/temp.linux-aarch64-3.8/source/event_gpio.o build/temp.linux-aarch64-3.8/source/soft_pwm.o build/temp.linux-aarch64-3.8/source/py_pwm.o build/temp.linux-aarch64-3.8/source/common.o build/temp.linux-aarch64-3.8/source/constants.o -L/usr/lib -o build/lib.linux-aarch64-3.8/RPi/_GPIO.cpython-38-aarch64-linux-gnu.so
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/soft_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-aarch64-3.8/source/event_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/event_gpio.c:60: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/py_pwm.h:23: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:26: multiple definition of `high'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:26: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:27: multiple definition of `low'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:27: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:29: multiple definition of `output'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:29: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:28: multiple definition of `input'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:28: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:30: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:31: multiple definition of `serial'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:31: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:32: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:33: multiple definition of `spi'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:33: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:35: multiple definition of `board'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:42: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
  collect2: error: ld returned 1 exit status
  error: command '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: /home/jerlem/testRPi.GPIO/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qfm6cik4/rpi-gpio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qfm6cik4/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-ekzm048i/install-record.txt --single-version-externally-managed --compile --install-headers /home/jerlem/testRPi.GPIO/include/site/python3.8/rpi.gpio
         cwd: /tmp/pip-install-qfm6cik4/rpi-gpio/
    Complete output (85 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.8
    creating build/lib.linux-aarch64-3.8/RPi
    copying RPi/__init__.py -> build/lib.linux-aarch64-3.8/RPi
    creating build/lib.linux-aarch64-3.8/RPi/GPIO
    copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.8/RPi/GPIO
    running build_ext
    building 'RPi._GPIO' extension
    creating build/temp.linux-aarch64-3.8
    creating build/temp.linux-aarch64-3.8/source
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/py_gpio.c -o build/temp.linux-aarch64-3.8/source/py_gpio.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/c_gpio.c -o build/temp.linux-aarch64-3.8/source/c_gpio.o
    source/c_gpio.c: In function ‘setup’:
    source/c_gpio.c:130:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
          |         ^
    source/c_gpio.c:131:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
          |                                  ^
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.8/source/cpuinfo.o
    source/cpuinfo.c: In function ‘get_rpi_info’:
    source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigned int *’} [-Wformat=]
      139 |       sscanf(revision, "%llx", &rev);
          |                         ~~~^   ~~~~
          |                            |   |
          |                            |   uint64_t * {aka long unsigned int *}
          |                            long long unsigned int *
          |                         %lx
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/event_gpio.c -o build/temp.linux-aarch64-3.8/source/event_gpio.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.8/source/soft_pwm.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/py_pwm.c -o build/temp.linux-aarch64-3.8/source/py_pwm.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/common.c -o build/temp.linux-aarch64-3.8/source/common.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=armv8-a -O3 -pipe -fno-plt -fno-semantic-interposition -march=armv8-a -O3 -pipe -fno-plt -march=armv8-a -O3 -pipe -fno-plt -fPIC -I/home/jerlem/testRPi.GPIO/include -I/usr/include/python3.8 -c source/constants.c -o build/temp.linux-aarch64-3.8/source/constants.o
    gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fno-semantic-interposition -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-aarch64-3.8/source/py_gpio.o build/temp.linux-aarch64-3.8/source/c_gpio.o build/temp.linux-aarch64-3.8/source/cpuinfo.o build/temp.linux-aarch64-3.8/source/event_gpio.o build/temp.linux-aarch64-3.8/source/soft_pwm.o build/temp.linux-aarch64-3.8/source/py_pwm.o build/temp.linux-aarch64-3.8/source/common.o build/temp.linux-aarch64-3.8/source/constants.o -L/usr/lib -o build/lib.linux-aarch64-3.8/RPi/_GPIO.cpython-38-aarch64-linux-gnu.so
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/soft_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-aarch64-3.8/source/event_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/event_gpio.c:60: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/py_pwm.h:23: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/py_pwm.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/common.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:26: multiple definition of `high'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:26: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:27: multiple definition of `low'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:27: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:29: multiple definition of `output'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:29: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:28: multiple definition of `input'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:28: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:30: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:31: multiple definition of `serial'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:31: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:32: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:33: multiple definition of `spi'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:33: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:35: multiple definition of `board'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/constants.h:42: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.8/source/constants.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.8/source/py_gpio.o:/tmp/pip-install-qfm6cik4/rpi-gpio/source/common.h:33: first defined here
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/jerlem/testRPi.GPIO/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qfm6cik4/rpi-gpio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qfm6cik4/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-ekzm048i/install-record.txt --single-version-externally-managed --compile --install-headers /home/jerlem/testRPi.GPIO/include/site/python3.8/rpi.gpio Check the logs for full command output.

Install python-raspberry-gpio from our repo:

sudo pacman -Syy
sudo pacman -S python-raspberry-gpio
1 Like

Thanks for your answer, but how can I install RPi.GPIO in my python venv this way?

Finally found a workaround…
Seems to be an issue with gcc10

but

CFLAGS="-fcommon" pip install rpi.gpio

works.

Thanks
Jerome

Things are different with the new gcc. See if this will work:

env CFLAGS="-fcommon"
pip install rpi.gpio
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.