Permission denied on Make for xtensa-lx106-elf-gcc

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 9:48 am

Hi,

as a newbie to cross compilation I am trying to compile a driver written in C for use on an XBee3 board on which I previously successfully ran a ESP8266 library.

I am following this guide/example: https://docs.micropython.org/en/latest ... tmod.html

The example compiles fine for my x64 architecture. However trying to compile for xtensa gives me "Permission denied":

Code: Select all

 make: xtensa-lx106-elf-gcc: Permission denied 
I installed xtensa-lx106-elf-gcc, it sits in /opt and I changed owner from root to myself, chmod-ing also doesn't help. OS is arch linux.

Any suggestions? Thank you!

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by davef » Fri Aug 21, 2020 10:18 am

Did you try:

Code: Select all

sudo make

lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 11:37 am

sure did

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by Roberthh » Fri Aug 21, 2020 1:04 pm

can you verify, that xtensa-lx106-gcc has the x flag set as being executable?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by pythoncoder » Fri Aug 21, 2020 1:13 pm

Also check permissions for its parent directories.
Peter Hinch
Index to my micropython libraries.

lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 1:27 pm

yes:

Code: Select all

 drwxr-xr-x  8 andre users 4096 20. Aug 13:33 xtensa-lx106-elf-gcc 
(and all the same downwards from there)

but now seeing you, Robert, here, I might as well tell you the device I'm going to use on the XBee3 via I2C: Its from the family of "DLV Series Low Voltage Digital Pressure Sensors" and the only library I could find is this one: https://github.com/jeremycole/AllSensors_DLV

I've successfully used your BME280 library (thank you!), but we also need a higher pressure sensor (up to 2000 mbar).

lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 1:30 pm

@pythoncoder: well, the parent directory is /opt, guess I shouldn't fiddle with that. But sudo didn't work either.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by Roberthh » Fri Aug 21, 2020 1:52 pm

The xtensa-lx106-elf-gcc looks strange, since it has the d-flag set, meaning it's a directory. On my system, it is an executable, residing in a tree of ..../esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc together with other binaries like the loader.... . So please check the structure of the file system.

lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 2:57 pm

That was it. I had found another xtensa-lx106-elf-gcc package for arch and was trying to use it (https://aur.archlinux.org/packages/xten ... f-gcc-bin/). Works with esp-open-sdk. Thank you.

lambu0815
Posts: 7
Joined: Fri Aug 21, 2020 9:31 am

Re: Permission denied on Make for xtensa-lx106-elf-gcc

Post by lambu0815 » Fri Aug 21, 2020 3:11 pm

However the code will not run on XBee3. "incompatible .mpy file". Too bad.

Post Reply