[riot-notifications] [RIOT-OS/RIOT] [Question/Problem] Cannot Compile ESP8266 with make (#11219)

Gunar Schorcht notifications at github.com
Wed Mar 20 17:52:28 CET 2019

> ```
> mkdir: cannot create directory ‘/home/burak/RIOT-master/examples/gnrc_networking/bin/esp8266-esp-12x/riotbuild/’: Permission denied
> /home/burak/RIOT-master/examples/gnrc_networking/../../Makefile.include:686: recipe for target '/home/burak/RIOT-master/examples/gnrc_networking/bin/esp8266-esp-12x/riotbuild/riotbuild.h' failed
> make: *** [/home/burak/RIOT-master/examples/gnrc_networking/bin/esp8266-esp-12x/riotbuild/riotbuild.h] Error 1
> make: Leaving directory '/home/burak/RIOT-master/examples/gnrc_networking'```

This error message is not related to the ESP8266 port. Might it be that you have cloned the repository as `sudo` by mistake? What is the `user:group` of directory `/home/burak/RIOT-master/examples/gnrc_networking`?
ls -l /home/burak/RIOT-master/examples/gnrc_networking

> When I use "sudo make -C examples/gnrc_networking", it says;
> ```Compiler xtensa-lx106-elf-gcc is required but not found in PATH. Aborting.```

That's very clear. Because of the `sudo` command, you become `root` while executing the command. Since you added the `PATH` only to your user's `.profile`, the `PATH` variable of `root` does not contain the path to the toolchain.

> * I have done chmod 777 , chown  etc. however it does not compile.

This is definitly the wrong way. Please check, whether you have cloned the repository as user `burak` and delete and reclone it again if not.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190320/357ce6ad/attachment-0001.html>

More information about the notifications mailing list