It looks like it's failing at RPi.GPIO, I have tried with and without the wheel package installed.
[steven@RPI4 ~]$ sudo pip install adafruit-circuitpython-pm25
Collecting adafruit-circuitpython-pm25
Using cached adafruit-circuitpython-pm25-2.1.2.tar.gz (27 kB)
Collecting Adafruit-Blinka
Using cached Adafruit-Blinka-6.3.0.tar.gz (118 kB)
Requirement already satisfied: rpi_ws281x>=4.0.0 in /usr/lib/python3.9/site-packages (from Adafruit-Blinka->adafruit-circuitpython-pm25) (4.2.5)
Requirement already satisfied: sysv_ipc>=1.1.0 in /usr/lib/python3.9/site-packages (from Adafruit-Blinka->adafruit-circuitpython-pm25) (1.1.0)
Collecting adafruit-circuitpython-busdevice
Using cached adafruit-circuitpython-busdevice-5.0.5.tar.gz (27 kB)
Collecting Adafruit-PlatformDetect>=3.1.0
Using cached Adafruit-PlatformDetect-3.2.0.tar.gz (29 kB)
Collecting Adafruit-PureIO>=1.1.7
Using cached Adafruit_PureIO-1.1.8.tar.gz (26 kB)
Collecting pyftdi>=0.40.0
Using cached pyftdi-0.52.9-py3-none-any.whl (139 kB)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python3.9/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-pm25) (3.5)
Requirement already satisfied: pyusb>=1.0.0 in /usr/lib/python3.9/site-packages (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-pm25) (1.1.1)
Collecting RPi.GPIO
Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Building wheels for collected packages: adafruit-circuitpython-pm25, Adafruit-Blinka, adafruit-circuitpython-busdevice, Adafruit-PlatformDetect, Adafruit-PureIO, RPi.GPIO
Building wheel for adafruit-circuitpython-pm25 (setup.py) ... done
Created wheel for adafruit-circuitpython-pm25: filename=adafruit_circuitpython_pm25-2.1.2-py3-none-any.whl size=6329 sha256=f10978fcf351272f775b64c1b563cc59045d789898f42389069175446e9749da
Stored in directory: /root/.cache/pip/wheels/e6/69/97/2e21ec3853823deda563c99b5dca02e240051f16b2daac0a92
Building wheel for Adafruit-Blinka (setup.py) ... done
Created wheel for Adafruit-Blinka: filename=Adafruit_Blinka-6.3.0-py3-none-any.whl size=149317 sha256=ae6202ece801703bf167e8da074ac7a6f3344f1460f504594813e7fabc16372b
Stored in directory: /root/.cache/pip/wheels/3e/3c/2b/6c67a9ce7af003c326b57e385225c50f3d521aa2323cd6ba41
Building wheel for adafruit-circuitpython-busdevice (setup.py) ... done
Created wheel for adafruit-circuitpython-busdevice: filename=adafruit_circuitpython_busdevice-5.0.5-py3-none-any.whl size=6551 sha256=f2fdaf01fef1a5dbd00f9cd7ac658654ad321a7a058a661125c63a9a536d46fe
Stored in directory: /root/.cache/pip/wheels/cd/04/ff/861162640ee3a45e041dd4a1757c7c0e68589ac12179a498a0
Building wheel for Adafruit-PlatformDetect (setup.py) ... done
Created wheel for Adafruit-PlatformDetect: filename=Adafruit_PlatformDetect-3.2.0-py3-none-any.whl size=17560 sha256=b452257c443c20667c1c4427cf5130205f58a76235d8a7f3bc129615a0a7536a
Stored in directory: /root/.cache/pip/wheels/c1/23/0e/1e32e548df2f4d2184f90042768dc7ee9fe2ebc37b85e864dc
Building wheel for Adafruit-PureIO (setup.py) ... done
Created wheel for Adafruit-PureIO: filename=Adafruit_PureIO-1.1.8-py3-none-any.whl size=11566 sha256=5a9eafd0c39066333260f6dc2ca2f71f14134f3253d54965060695978044f09c
Stored in directory: /root/.cache/pip/wheels/e8/62/80/50c9bde8c708b9e37b221e3981120eb9b881f03bf0ebcd6fea
Building wheel for RPi.GPIO (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/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-1r_bb07z
cwd: /tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/
Complete output (102 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/RPi
copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
creating build/lib.linux-aarch64-3.9/RPi/GPIO
copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
running build_ext
building 'RPi._GPIO' extension
creating build/temp.linux-aarch64-3.9
creating build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/constants.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/usr/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py_gpio.o
source/py_gpio.c: In function ‘PyInit__GPIO’:
source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
1046 | if (!PyEval_ThreadsInitialized())
| ^~
In file included from /usr/include/python3.9/Python.h:145,
from source/py_gpio.c:23:
/usr/include/python3.9/ceval.h:129:36: note: declared here
129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
1047 | PyEval_InitThreads();
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.9/Python.h:145,
from source/py_gpio.c:23:
/usr/include/python3.9/ceval.h:130:37: note: declared here
130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
| ^~~~~~~~~~~~~~~~~~
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/usr/include/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/soft_pwm.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.9/source/c_gpio.o build/temp.linux-aarch64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/temp.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event_gpio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3.9/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -L/usr/lib -o build/lib.linux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:42: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:35: multiple definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:33: multiple definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:32: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:31: multiple definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:31: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:30: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:29: multiple definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:29: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:28: multiple definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:28: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:27: multiple definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:27: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:26: multiple definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:26: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/py_pwm.h:23: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/event_gpio.c:60: first defined here
collect2: error: ld returned 1 exit status
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for RPi.GPIO
Running setup.py clean for RPi.GPIO
Successfully built adafruit-circuitpython-pm25 Adafruit-Blinka adafruit-circuitpython-busdevice Adafruit-PlatformDetect Adafruit-PureIO
Failed to build RPi.GPIO
Installing collected packages: RPi.GPIO, pyftdi, Adafruit-PureIO, Adafruit-PlatformDetect, Adafruit-Blinka, adafruit-circuitpython-busdevice, adafruit-circuitpython-pm25
Running setup.py install for RPi.GPIO ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/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-bpq3au1x/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/RPi.GPIO
cwd: /tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/
Complete output (102 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/RPi
copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
creating build/lib.linux-aarch64-3.9/RPi/GPIO
copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
running build_ext
building 'RPi._GPIO' extension
creating build/temp.linux-aarch64-3.9
creating build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/constants.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/usr/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py_gpio.o
source/py_gpio.c: In function ‘PyInit__GPIO’:
source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
1046 | if (!PyEval_ThreadsInitialized())
| ^~
In file included from /usr/include/python3.9/Python.h:145,
from source/py_gpio.c:23:
/usr/include/python3.9/ceval.h:129:36: note: declared here
129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
1047 | PyEval_InitThreads();
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.9/Python.h:145,
from source/py_gpio.c:23:
/usr/include/python3.9/ceval.h:130:37: note: declared here
130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
| ^~~~~~~~~~~~~~~~~~
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/usr/include/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/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/usr/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/soft_pwm.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.9/source/c_gpio.o build/temp.linux-aarch64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/temp.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event_gpio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3.9/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -L/usr/lib -o build/lib.linux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:42: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:35: multiple definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:33: multiple definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:32: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:31: multiple definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:31: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:30: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:29: multiple definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:29: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:28: multiple definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:28: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:27: multiple definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:27: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:26: multiple definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/constants.h:26: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:38: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/py_pwm.h:23: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:41: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:40: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:39: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:37: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:36: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:35: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:34: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/common.h:33: first defined here
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/source/event_gpio.c:60: first defined here
collect2: error: ld returned 1 exit status
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ef6pvlnt/rpi-gpio_77fa2ef6a304408c801233c80ed1003a/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-bpq3au1x/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/RPi.GPIO Check the logs for full command output.
It looks like it's failing at RPi.GPIO, I have tried with and without the wheel package installed.