cnlohr / ws2812esp8266

DEPRECATED. Please use esp8266ws2812i2s. No really, stop forking and starring this.
Other
298 stars 63 forks source link

xtensa-lx106-elf-gcc: not found #6

Open hsiboy opened 9 years ago

hsiboy commented 9 years ago

Hey Charles.

This has got me scratching my head.

I stood up a new ubuntu/trusty64 instance via vagrant, ssh'd in and apt-get installed all the usual build tools/libs and git. So i have a squeaky clean build environment, with everything i need. From then, i follow your instructions, and everything seems to go well, gcc seems to build forever, and doesn't bomb out. except when i run make on your project i get /home/vagrant/esp8266/xtensa-toolchain-build/build-lx106/root/bin/xtensa-lx106-elf-gcc: not found and indeed gcc is not in there, everything else is though:

vagrant@vagrant-ubuntu-trusty-64:~/esp8266/xtensa-toolchain-build/build-lx106/root/bin$ ll
total 67612
drwxr-xr-x 2 root root    4096 Dec 26 23:05 ./
drwxr-xr-x 5 root root    4096 Dec 26 23:05 ../
-rwxr-xr-x 1 root root 4185842 Dec 26 23:05 xtensa-lx106-elf-addr2line*
-rwxr-xr-x 2 root root 4357881 Dec 26 23:05 xtensa-lx106-elf-ar*
-rwxr-xr-x 2 root root 6012816 Dec 26 23:05 xtensa-lx106-elf-as*
-rwxr-xr-x 1 root root 4139582 Dec 26 23:05 xtensa-lx106-elf-c++filt*
-rwxr-xr-x 1 root root  108494 Dec 26 23:05 xtensa-lx106-elf-elfedit*
-rwxr-xr-x 1 root root 4740248 Dec 26 23:05 xtensa-lx106-elf-gprof*
-rwxr-xr-x 4 root root 5522640 Dec 26 23:05 xtensa-lx106-elf-ld*
-rwxr-xr-x 4 root root 5522640 Dec 26 23:05 xtensa-lx106-elf-ld.bfd*
-rwxr-xr-x 2 root root 4225431 Dec 26 23:05 xtensa-lx106-elf-nm*
-rwxr-xr-x 2 root root 5203846 Dec 26 23:05 xtensa-lx106-elf-objcopy*
-rwxr-xr-x 2 root root 5826235 Dec 26 23:05 xtensa-lx106-elf-objdump*
-rwxr-xr-x 2 root root 4357880 Dec 26 23:05 xtensa-lx106-elf-ranlib*
-rwxr-xr-x 1 root root 1414615 Dec 26 23:05 xtensa-lx106-elf-readelf*
-rwxr-xr-x 1 root root 4202808 Dec 26 23:05 xtensa-lx106-elf-size*
-rwxr-xr-x 1 root root 4173624 Dec 26 23:05 xtensa-lx106-elf-strings*
-rwxr-xr-x 2 root root 5203877 Dec 26 23:05 xtensa-lx106-elf-strip*

i've been through the loop twice on this, and cant see why gcc isn't getting built.

what did i miss??

edit: fixed markdown

hsiboy commented 9 years ago

Gah, ffs.

dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img

as you were.

dilawarali5 commented 8 years ago

I'm facing the same problem presented above.But unable to understand your proposed solution. Can you please elaborate that?

cnlohr commented 8 years ago

Would you mind posting the full build (And error) log?

zhaoqige commented 7 years ago

I met the same problem. It should be solved by add your "xtensa-lx106-elf-gcc/bin/" to PATH. But I solved it like this (assume /usr/games/ in PATH, and if I'm wrong, easy to delete them): sudo cp -r ~/xtensa-lx106-elf-gcc/bin/* /usr/games/