- Sat Nov 01, 2014 12:51 pm
#2121
@iggr
Thanks for your comments, appreciate it.
Well, your first snippet with ls output indicates that the whole contents of shared folder is writeable only by root. As you are running this as a regular user, you are getting permission denied error.
Correct. I tried to correct this using SUDO CHOWN, command executes without error, but owner does not change. That’s why I tried SUDO MAKE, that resulted in the „xt-xcc not found” error.
Next, when you sudo, the compiler is not being found (third snippet). Check that the compiler is indeed where it should be. Check the paths by doing sudo echo $PATH and compare that to the $PATH without sudo, just in case.
Just checked again to be sure, see output below
- xt-xcc is in a directory that’s in the $PATH
- xt-xcc executes when used including dir name, but SUDO XT-XCC results in "command not found".
- xt-xcc executes when used without dir name, so $PATH looks OK
- $PATH and SUDO $PATH seems to be equal
Code: Select all esp8266@esp8266-VirtualBox:~$ ls /opt/xtensa-lx106-elf/
<snip>
elf-objcopy xt-nm xt-xcc
<snip>
esp8266@esp8266-VirtualBox:~$ /opt/xtensa-lx106-elf/bin/xt-xcc
xt-xcc: fatal error: no input files
compilation terminated.
esp8266@esp8266-VirtualBox:~$ xt-xcc
xt-xcc: fatal error: no input files
compilation terminated.
esp8266@esp8266-VirtualBox:~$ sudo xt-xcc
[sudo] password for esp8266:
sudo: xt-xcc: command not found
esp8266@esp8266-VirtualBox:~$ sudo echo $PATH
/opt/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
esp8266@esp8266-VirtualBox:~$ echo $PATH
/opt/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
esp8266@esp8266-VirtualBox:~$
I still wonder why SUDO MAKE results in the xt-xcc not found error, call me stupid.
Or remount the shared folder as a regular user and skip the sudo part.
I will focus on doing that. I have added the ESP8266 use to the gid of 999 to VBOXSF, but that did not help. I will try to remount as regular user.
Personally I have built a native toolchain for OS X to avoid using a VM altogether. It is definitely worth the trouble if building a firmware is not a one-time task for you.
Ahah, great! In past years I have used Arduino’s/Atmega’s with 433Mhz RF xmitters and receivers as default platform for home automation. I would like to replace this platform with the ESP8266, so using a native OSX toolchain in the end would have my preference. But I fear the complexity of building a native toolchain, and thought that the VM would give me a flying start. It’s a Start, but not flying, yet!
Will report back on the remount suggestion.
Other suggestion of other OSX users are welcome. I can „repay” later with a tutorial for other OSX users of the VM.
Many thanks.