esp-open-sdk icon indicating copy to clipboard operation
esp-open-sdk copied to clipboard

$ make STANDALONE=y build

Open lloyd-g opened this issue 8 years ago • 5 comments

followed "$ make STANDALONE=y" but xtensa-lx106-elf-gcc was not installed into opt/ folder. and when I run make file pointing to ~/esp-open-sdk/ and folders below it can't find ld scripts but they are there? is there a good makefile and example you could recommended?

lloyd-g avatar Sep 23 '15 13:09 lloyd-g

Also having issues with the same. doesnt work if i run it as sudo or not

Now configured for "xtensa-lx106-elf" make[2]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' sed -r -i.org s%CT_PREFIX_DIR=.%CT_PREFIX_DIR="/xtensa-lx106-elf"% .config sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config cat ../crosstool-config-overrides >> .config ./ct-ng build make[2]: Entering directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' [ERROR] You must NOT be root to run crosstool-NG [00:00] / ct-ng:148: recipe for target 'build' failed make[2]: ** [build] Error 1 make[2]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' ../Makefile:282: recipe for target '_toolchain' failed make[1]: *** [_toolchain] Error 2 make[1]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' Makefile:279: recipe for target '/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc' failed make: *** [/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2

systemparanoia avatar Dec 31 '15 00:12 systemparanoia

same issue:make[2]: Entering directory /root/esp-open-sdk/crosstool-NG' [ERROR] You must NOT be root to run crosstool-NG [00:00] / make[2]: *** [build] Error 1 make[2]: Leaving directory/root/esp-open-sdk/crosstool-NG' make[1]: *** [_toolchain] Error 2 make[1]: Leaving directory `/root/esp-open-sdk/crosstool-NG' make: *** [/root/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2

jmccutchan avatar May 19 '16 18:05 jmccutchan

Give your normal user full read/write/execute permissions on the esp-open-sdk folder. Eg: http://serverfault.com/questions/105535/how-can-i-set-full-premissions-to-a-user-in-a-specified-dir

Then, simply use make instead of sudo make (i.e don't run as root)

Anwaarullah avatar Sep 20 '16 23:09 Anwaarullah

@chriva thanks

kaizoku-oh avatar Jun 06 '18 01:06 kaizoku-oh