Hi,
I am working with iMX8MM EVK and Yocto distribution 4.19.35 version
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
I tried to install the spidev module by executing the following command, It throws the below error for 3.5 and 2.0 versions
root@imx8mmevk~#pip install spidev
Collecting spidev
Using cached https://files.pythonhosted.org/packages/62/56/de649e7d95f9fcfaf965a6eb937b4a46bc77ef21487c99cde1a7a0...
Installing collected packages: spidev
Running setup.py install for spidev: started
Running setup.py install for spidev: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-viptTX/spidev/setup.py';f=getattr(tokenize, 'open', open)
running install
running build
running build_ext
building 'spidev' extension
creating build
creating build/temp.linux-aarch64-2.7
aarch64-poky-linux-gcc -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
unable to execute 'aarch64-poky-linux-gcc': No such file or directory
error: command 'aarch64-poky-linux-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-viptTX/spidev/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-OzSsDF/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-viptTX/spidev/
===========================================================================================
root@imx8mmevk~#pip install spidev==2.0
Collecting spidev==2.0
Using cached https://files.pythonhosted.org/packages/bf/59/ec1104f4b9d6b64873b8470121e89abf6a731ab9209151eb75e2ba...
Installing collected packages: spidev
Running setup.py install for spidev: started
Running setup.py install for spidev: finished with status 'error'
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-tBBgAP/spidev/setup.py';f=getattr(tokenize, 'open', open)
running install
running build
running build_ext
building 'spidev' extension
creating build
creating build/temp.linux-aarch64-2.7
aarch64-poky-linux-gcc -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/src/linux/include -I/
unable to execute 'aarch64-poky-linux-gcc': No such file or directory
error: command 'aarch64-poky-linux-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-tBBgAP/spidev/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-29Bk1L/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-tBBgAP/spidev/
=====================================================================================
could you please help to resolve the issue.
Thank you,
Sreedhar