pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 624 forks source link

cant build on ubuntu14.04 x64 #23

Open alonewolfx2 opened 9 years ago

alonewolfx2 commented 9 years ago

i have this error message.

xtensa-lx106-elf-gcc -DHAVE_CONFIG_H -I.   -I../include  -mlongcalls -MT debug_hndlr.o -MD -MP -MF .deps/debug_hndlr.Tpo -c -o debug_hndlr.o debug_hndlr.S
debug_hndlr.S: Assembler messages:
debug_hndlr.S:89: Error: unknown opcode or format name 'wsr.ICOUNT'
debug_hndlr.S:99: Error: unknown opcode or format name 'wsr.IBREAKENABLE'
make[4]: *** [debug_hndlr.o] Error 1
make[4]: Leaving directory `/home/mb/esp-open-sdk/lx106-hal/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/mb/esp-open-sdk/lx106-hal/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mb/esp-open-sdk/lx106-hal'
make[1]: *** [_libhal] Error 2
make[1]: Leaving directory `/home/mb/esp-open-sdk/lx106-hal'
make: *** [/home/mb/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib/libhal.a] Error 2
supergis commented 9 years ago

I build on ubuntu 14.04 X64 OK. Please check your gcc version may get some usefull information. Ensure run:

sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf \
    flex bison texinfo gawk ncurses-dev libexpat-dev python sed

to install needed library.

pfalcon commented 9 years ago

ubuntu 14.04 x64 is also my main setup where I built project from the beginning. But maybe I need to rebuild it from scratch some time - maybe there were recent upstream changes (can't do that right away as I'm travelling).

alonewolfx2 commented 9 years ago

I already installed needed library.i tried 3 times but i cant build.

SpaceTeddy commented 9 years ago

I use Ubuntu 14.04.1 x64 as well. I set up a clean install in a Fusion VM. I simply clone the git rep and it worked almost out of the box. The only thing I have made is to install the above mentioned packages before clone and make. In addition I exported the path in the .bashrc file. "export PATH=/home/ubuntu/esp-open-sdk/xtensa-lx106-elf/bin:$PATH"

after cloning nodemcu and make it compiles w/o any problems.

pfalcon commented 9 years ago

I just rebuilt the project from scratch on my Ubuntu 14.04 x64 without any issues.

One hunch I may have about your issue is that you have some older xtensa toolchain in your PATH and it intervenes. Just in case, don't do that, enable each toolchain only for the session (i.e. console) it is needed for. And otherwise, way to investigate the issue would be brining up clean 14.04 install (e.g. in VM) and try there.

alonewolfx2 commented 9 years ago

i tried new ubuntu install on virtualbox and try again but same issue. i have no idea.

ystrem commented 9 years ago

I build it in Linux Mint 17 x64 (whitch is Ubuntu 14.04 x64), and all good. (Fresh install in vmware player)

alonewolfx2 commented 9 years ago

can you upload builded folder somewhere

ystrem commented 9 years ago

Sure, It's mean to me right ? :D

alonewolfx2 commented 9 years ago

yes. @ystrem if you can i will be happy.i didnt compile it.

ystrem commented 9 years ago

@alonewolfx2 Ok I'm uploading to mega, but it has 1.1GB so you have to wait 20min's. I have only 10Mb UL :D

alonewolfx2 commented 9 years ago

10mb ul :) i am waiting. my dl is 16mb :))

ystrem commented 9 years ago

@alonewolfx2 Ok, here it's https://mega.co.nz/#!uYc02ZRZ!XOurcBEDPIvKudehjCjlAzzHT4rMuff6WUOJ3JJTkQs :)

supergis commented 9 years ago

@alonewolfx2
Maybe the Ubuntu need update, can try run:

sudo apt-get update 
sudo apt-get upgrade

to upgrade to latest library.

alonewolfx2 commented 9 years ago

I tried on fresh and updated Ubuntu x64 but result is same. I am using Turkish language on Ubuntu. Is it matter for sdk? I can't figure that out this problem

pfalcon commented 9 years ago

@alonewolfx2: Theoretically, that can be an issue, so I suggest setting English for that session and trying again. That should be as simple as running "export LANG=en_US.UTF-8" before any other step, but do you own googling.

liquiddandruff commented 9 years ago

Clean install with successful make, no issues on xubuntu 14.04 x64, english.

simos commented 9 years ago

Compiled successfully on Ubuntu 14.04.2 LTS, x86_64.

con-f-use commented 9 years ago

I get an "esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:224:14: error: 'TARGET_ALIAS' undeclared (first use in this function)" now withe the latest commit on Ubuntu 14.04.3 LTS. Tried it on two different systems, one of them fresh.

Build failed in step 'Installing binutils for host' Error happened in: CT_DoExecLog[scripts/functions@257] build.log

Seems to work when I do:

LD_LIBRARY_PATH= make STANDALONE=y \
  || env -i bash --norc --noprofile -c "source /etc/profile; source /etc/bash.bashrc; make STANDALONE=y"
Quentinb commented 8 years ago

Hi All, I am trying this setup on a clean Ubuntu 16.04 TLS and this package does not build. I found that the binutils-2.24, gcc-4.8.2 and gdb-7.5.1 files do not exist on the expected website paths and are therefor not downloaded correctly resulting in error messages! I have manually downloaded and extracted them and now it fails with installing ISL. I am now out of ideas as I have spent a full day trying to get it to work.

I have followed the steps, one by one! If anybody has any ideas please help!!

ghost commented 8 years ago

@Quentinb : that's not related to this issue. If you're still having this problem, then submit it as its own issue.

polyGithub commented 6 years ago

poly@poly:~/esp-open-sdk$ make Makefile:184: warning: overriding commands for target ESP8266_NONOS_SDK-2.1.0-18-g61248df/.dir' Makefile:179: warning: ignoring old commands for targetESP8266_NONOS_SDK-2.1.0-18-g61248df/.dir' make -C crosstool-NG -f ../Makefile _ct-ng make[1]: Entering directory /home/poly/esp-open-sdk/crosstool-NG' ../Makefile:184: warning: overriding commands for targetESP8266_NONOS_SDK-2.1.0-18-g61248df/.dir' ../Makefile:179: warning: ignoring old commands for target ESP8266_NONOS_SDK-2.1.0-18-g61248df/.dir' ./bootstrap Running autoconf... Done. You may now run: ./configure ./configure --prefix=pwd checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking whether sed understands -r -i -e... yes checking whether ln -s works... yes checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in/home/poly/esp-open-sdk/crosstool-NG': configure: error: no acceptable C compiler found in $PATH See config.log' for more details make[1]: *** [_ct-ng] Error 1 make[1]: Leaving directory/home/poly/esp-open-sdk/crosstool-NG' make: *** [crosstool-NG/ct-ng] Error 2