Python package installation fails due to aarch64-poky-linux-gcc: No such file or directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python package installation fails due to aarch64-poky-linux-gcc: No such file or directory

3,225 Views
pstenger
Contributor I

Hey guys,

I am using the BSP Linux Image L5.4.24-2.1.0_images_MX8MMEVK for  my i.MX8M mini Evalkit.

I want to use several i2cdevices on my i.MX and therefore I need to install some packages, one of it is smbus.

When installing with: pip3 install smbus , I get the following output, where it says (see appended file):

unable to execute 'aarch64-poky-linux-gcc': No such file or directory
error: command 'aarch64-poky-linux-gcc' failed with exit status 1

I did some research but don't know how to get the aarch64-poky-linux-gcc. 

Another issue I have is, that I can't build the imx-image-full by myselfe because I always get error when installing some packages during the build process (see this article). So I am not able to build the toolchain with populate_sdk command.

Maybe someone has the same issue or knows a solution for my problem?

Alternatively can I use i2cdevices without smbus? Installing smbus2 (pip3 install smbus2) works, but the library I am using for my sensor is not designed for it.

Best regards 

Patrick Stenger

Labels (1)
0 Kudos
6 Replies

3,154 Views
b36401
NXP Employee
NXP Employee

Please try to add this line into local.conf file:

IMAGE_INSTALL_append = " python-smbus"

0 Kudos

3,154 Views
pstenger
Contributor I

Hey Victor, 

I finally was able to build the imx-image-full and like you suggested I added the line in the local.conf file.

Another issue I am facing is the following:

Another library I want to use in my image is the "adafruit-circuitpython-ina219" which normally is installed with

sudo pip3 install adafruit-circuitpython-ina219

Unfortunately it  does not find "aarch64-poky-linux-gcc" and throws the error when trying to install via pip3

unable to execute 'aarch64-poky-linux-gcc': No such file or directory

So is there a solution to build the library during the image build process? 

Alternatively how do I get the aarch64-poky-linux-gcc? Maybe with :

bitbake <image_name> -c populate_sdk

I also ask besides trying myselfe because the build need very much time and I dont want to run in the wrong direction.

Thanks for your help, regards

Patrick

0 Kudos

3,154 Views
sreedhar_appala
Contributor IV

Hi Patrick,

Are you able to resolve the 

"unable to execute 'aarch64-poky-linux-gcc': No such file or directory"

I am also facing the similar error, Could you please share details if you have resolved

Thank you,

Sreedhar

0 Kudos

3,154 Views
pstenger
Contributor I

No, I could not solve the issue by now :smileysad:

0 Kudos

3,154 Views
sreedhar_appala
Contributor IV

Hi Patrick,

Thank you for the response.

I got the below response from nxp,   please check it might help you.

https://community.nxp.com/thread/540924 

Thank you,

Sreedhar

0 Kudos

3,154 Views
pstenger
Contributor I

Hm, this will only work if I build the Image myselfe with Yocto Right?

Unfortunately this does not work :smileysad: (see article linked in my first comment)

But thanks for your hint.

If I want to install smbus or smbus2 with pip3 is there also a command which I could use in the local.conf instead python-smbus or is it the same at the end of the day?

0 Kudos