Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp_iot_rtos_sdk doesn't compile #5

Open
MacDada opened this issue Apr 17, 2015 · 2 comments
Open

esp_iot_rtos_sdk doesn't compile #5

MacDada opened this issue Apr 17, 2015 · 2 comments

Comments

@MacDada
Copy link

MacDada commented Apr 17, 2015

The important part of logs:

++ cat /home/vagrant/.bashrc
+ HAS_SDK_BASE='export SDK_BASE=/opt/Espressif/esp8266_sdk'
+ '[' -z 'export SDK_BASE=/opt/Espressif/esp8266_sdk' ']'
+ cd /opt/Espressif
+ '[' '!' -d /opt/Espressif/esp8266_rtos_sdk ']'
+ cd /opt/Espressif/esp8266_rtos_sdk
+ git pull origin master
From https://github.com/espressif/esp_iot_rtos_sdk
 * branch            master     -> FETCH_HEAD
+ make
user/.output/eagle/debug/lib/libuser.a(user_main.o):(.irom0.text+0x2c): undefined reference to `system_get_sdk_version'
user/.output/eagle/debug/lib/libuser.a(user_main.o):(.irom0.text+0x3b): undefined reference to `system_get_sdk_version'
collect2: error: ld returned 1 exit status
make[1]: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
make: *** [.subdirs] Error 2

Full logs from vagrant provision:

macdada$ vagrant provision
==> default: Running provisioner: shell...
    default: Running: /var/folders/yk/l3z56gr17p71zrk0jzyvb8gm0000gn/T/vagrant-shell20150417-26275-11o2zc5.sh
==> default: + sudo apt-get update
==> default: Ign http://security.ubuntu.com precise-security InRelease
==> default: Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
==> default: Get:2 http://security.ubuntu.com precise-security Release [54.3 kB]
==> default: Ign http://us.archive.ubuntu.com precise InRelease
==> default: Ign http://us.archive.ubuntu.com precise-updates InRelease
==> default: Ign http://us.archive.ubuntu.com precise-backports InRelease
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Get:3 http://security.ubuntu.com precise-security/main Sources [127 kB]
==> default: Get:4 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
==> default: Get:5 http://security.ubuntu.com precise-security/restricted Sources [3,759 B]
==> default: Get:6 http://security.ubuntu.com precise-security/universe Sources [35.0 kB]
==> default: Hit http://us.archive.ubuntu.com precise-backports Release.gpg
==> default: Get:7 http://security.ubuntu.com precise-security/multiverse Sources [1,816 B]
==> default: Get:8 http://security.ubuntu.com precise-security/main i386 Packages [535 kB]
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Get:9 http://us.archive.ubuntu.com precise-updates Release [196 kB]
==> default: Get:10 http://security.ubuntu.com precise-security/restricted i386 Packages [8,939 B]
==> default: Get:11 http://security.ubuntu.com precise-security/universe i386 Packages [120 kB]
==> default: Get:12 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,650 B]
==> default: Hit http://security.ubuntu.com precise-security/main TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports Release
==> default: Hit http://security.ubuntu.com precise-security/main Translation-en
==> default: Hit http://security.ubuntu.com precise-security/multiverse Translation-en
==> default: Hit http://security.ubuntu.com precise-security/restricted Translation-en
==> default: Hit http://security.ubuntu.com precise-security/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Get:13 http://us.archive.ubuntu.com precise-updates/main Sources [487 kB]
==> default: Get:14 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,981 B]
==> default: Get:15 http://us.archive.ubuntu.com precise-updates/universe Sources [112 kB]
==> default: Get:16 http://us.archive.ubuntu.com precise-updates/multiverse Sources [9,413 B]
==> default: Get:17 http://us.archive.ubuntu.com precise-updates/main i386 Packages [929 kB]
==> default: Get:18 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.6 kB]
==> default: Get:19 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [265 kB]
==> default: Get:20 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [16.6 kB]
==> default: Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
==> default: Fetched 2,925 kB in 5s (547 kB/s)
==> default: Reading package lists...
==> default: + sudo apt-get -y install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-amd64 python-pip libexpat-dev unzip
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: autoconf is already the newest version.
==> default: bison is already the newest version.
==> default: flex is already the newest version.
==> default: gawk is already the newest version.
==> default: gperf is already the newest version.
==> default: libncurses5-dev is already the newest version.
==> default: libtool is already the newest version.
==> default: texinfo is already the newest version.
==> default: python-pip is already the newest version.
==> default: build-essential is already the newest version.
==> default: git is already the newest version.
==> default: libc6-dev-amd64 is already the newest version.
==> default: libexpat1-dev is already the newest version.
==> default: unzip is already the newest version.
==> default: wget is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
==> default: + sudo pip install pyserial
==> default: Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/local/lib/python2.7/dist-packages
==> default: Cleaning up...
==> default: + '[' '!' -d /opt/Espressif ']'
==> default: + sudo chown vagrant /opt/Espressif
==> default: + cd /opt/Espressif
==> default: + '[' '!' -d /opt/Espressif/crosstool-NG ']'
==> default: + cd /opt/Espressif/crosstool-NG
==> default: ++ gitsha
==> default: ++ head -1
==> default: ++ git show --format=%H
==> default: + OLDSHA=6e9a548ff89db355e11066c2f56ecb8704da454f
==> default: + git pull origin lx106
==> default: From https://github.com/jcmvbkbc/crosstool-NG
==> default:  * branch            lx106      -> FETCH_HEAD
==> default: Already up-to-date.
==> default: ++ gitsha
==> default: ++ head -1
==> default: ++ git show --format=%H
==> default: + '[' 6e9a548ff89db355e11066c2f56ecb8704da454f '!=' 6e9a548ff89db355e11066c2f56ecb8704da454f ']'
==> default: + '[' '!' -d /opt/Espressif/crosstool-NG/builds ']'
==> default: + PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin
==> default: ++ grep /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:
==> default: ++ cat /home/vagrant/.bashrc
==> default: + HAS_PATH='export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:$PATH'
==> default: + '[' -z 'export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:$PATH' ']'
==> default: + cd /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
==> default: + chmod u+w .
==> default: + rm -f xt-addr2line xt-ar xt-as xt-cc xt-c++filt xt-cpp xt-ct-ng.config xt-elfedit xt-gcc xt-gcc-4.8.2 xt-gcc-ar xt-gcc-nm xt-gcc-ranlib xt-gcov xt-gdb xt-gprof xt-ld xt-ld.bfd xt-nm xt-objcopy xt-objdump xt-ranlib xt-readelf xt-size xt-strings xt-strip xt-xcc
==> default: ++ ls xtensa-lx106-elf-addr2line xtensa-lx106-elf-ar xtensa-lx106-elf-as xtensa-lx106-elf-cc xtensa-lx106-elf-c++filt xtensa-lx106-elf-cpp xtensa-lx106-elf-ct-ng.config xtensa-lx106-elf-elfedit xtensa-lx106-elf-gcc xtensa-lx106-elf-gcc-4.8.2 xtensa-lx106-elf-gcc-ar xtensa-lx106-elf-gcc-nm xtensa-lx106-elf-gcc-ranlib xtensa-lx106-elf-gcov xtensa-lx106-elf-gdb xtensa-lx106-elf-gprof xtensa-lx106-elf-ld xtensa-lx106-elf-ld.bfd xtensa-lx106-elf-nm xtensa-lx106-elf-objcopy xtensa-lx106-elf-objdump xtensa-lx106-elf-ranlib xtensa-lx106-elf-readelf xtensa-lx106-elf-size xtensa-lx106-elf-strings xtensa-lx106-elf-strip
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-addr2line
==> default: + XT_NAME=xt-addr2line
==> default: + echo 'symlinking: xt-addr2line'
==> default: symlinking: xt-addr2line
==> default: + ln -s xtensa-lx106-elf-addr2line xt-addr2line
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-ar
==> default: + XT_NAME=xt-ar
==> default: + echo 'symlinking: xt-ar'
==> default: symlinking: xt-ar
==> default: + ln -s xtensa-lx106-elf-ar xt-ar
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-as
==> default: + XT_NAME=xt-as
==> default: + echo 'symlinking: xt-as'
==> default: symlinking: xt-as
==> default: + ln -s xtensa-lx106-elf-as xt-as
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-cc
==> default: + XT_NAME=xt-cc
==> default: + echo 'symlinking: xt-cc'
==> default: symlinking: xt-cc
==> default: + ln -s xtensa-lx106-elf-cc xt-cc
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-c++filt
==> default: + XT_NAME=xt-c++filt
==> default: + echo 'symlinking: xt-c++filt'
==> default: symlinking: xt-c++filt
==> default: + ln -s xtensa-lx106-elf-c++filt xt-c++filt
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-cpp
==> default: + XT_NAME=xt-cpp
==> default: + echo 'symlinking: xt-cpp'
==> default: symlinking: xt-cpp
==> default: + ln -s xtensa-lx106-elf-cpp xt-cpp
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-ct-ng.config
==> default: + XT_NAME=xt-ct-ng.config
==> default: + echo 'symlinking: xt-ct-ng.config'
==> default: symlinking: xt-ct-ng.config
==> default: + ln -s xtensa-lx106-elf-ct-ng.config xt-ct-ng.config
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-elfedit
==> default: + XT_NAME=xt-elfedit
==> default: + echo 'symlinking: xt-elfedit'
==> default: symlinking: xt-elfedit
==> default: + ln -s xtensa-lx106-elf-elfedit xt-elfedit
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcc
==> default: + XT_NAME=xt-gcc
==> default: + echo 'symlinking: xt-gcc'
==> default: symlinking: xt-gcc
==> default: + ln -s xtensa-lx106-elf-gcc xt-gcc
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcc-4.8.2
==> default: + XT_NAME=xt-gcc-4.8.2
==> default: + echo 'symlinking: xt-gcc-4.8.2'
==> default: symlinking: xt-gcc-4.8.2
==> default: + ln -s xtensa-lx106-elf-gcc-4.8.2 xt-gcc-4.8.2
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcc-ar
==> default: + XT_NAME=xt-gcc-ar
==> default: + echo 'symlinking: xt-gcc-ar'
==> default: symlinking: xt-gcc-ar
==> default: + ln -s xtensa-lx106-elf-gcc-ar xt-gcc-ar
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcc-nm
==> default: + XT_NAME=xt-gcc-nm
==> default: + echo 'symlinking: xt-gcc-nm'
==> default: symlinking: xt-gcc-nm
==> default: + ln -s xtensa-lx106-elf-gcc-nm xt-gcc-nm
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcc-ranlib
==> default: + XT_NAME=xt-gcc-ranlib
==> default: + echo 'symlinking: xt-gcc-ranlib'
==> default: symlinking: xt-gcc-ranlib
==> default: + ln -s xtensa-lx106-elf-gcc-ranlib xt-gcc-ranlib
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gcov
==> default: + XT_NAME=xt-gcov
==> default: + echo 'symlinking: xt-gcov'
==> default: symlinking: xt-gcov
==> default: + ln -s xtensa-lx106-elf-gcov xt-gcov
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gdb
==> default: + XT_NAME=xt-gdb
==> default: + echo 'symlinking: xt-gdb'
==> default: symlinking: xt-gdb
==> default: + ln -s xtensa-lx106-elf-gdb xt-gdb
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-gprof
==> default: + XT_NAME=xt-gprof
==> default: + echo 'symlinking: xt-gprof'
==> default: symlinking: xt-gprof
==> default: + ln -s xtensa-lx106-elf-gprof xt-gprof
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-ld
==> default: + XT_NAME=xt-ld
==> default: + echo 'symlinking: xt-ld'
==> default: symlinking: xt-ld
==> default: + ln -s xtensa-lx106-elf-ld xt-ld
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-ld.bfd
==> default: + XT_NAME=xt-ld.bfd
==> default: + echo 'symlinking: xt-ld.bfd'
==> default: symlinking: xt-ld.bfd
==> default: + ln -s xtensa-lx106-elf-ld.bfd xt-ld.bfd
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-nm
==> default: + XT_NAME=xt-nm
==> default: + echo 'symlinking: xt-nm'
==> default: symlinking: xt-nm
==> default: + ln -s xtensa-lx106-elf-nm xt-nm
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-objcopy
==> default: + XT_NAME=xt-objcopy
==> default: + echo 'symlinking: xt-objcopy'
==> default: symlinking: xt-objcopy
==> default: + ln -s xtensa-lx106-elf-objcopy xt-objcopy
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-objdump
==> default: + XT_NAME=xt-objdump
==> default: + echo 'symlinking: xt-objdump'
==> default: symlinking: xt-objdump
==> default: + ln -s xtensa-lx106-elf-objdump xt-objdump
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-ranlib
==> default: + XT_NAME=xt-ranlib
==> default: + echo 'symlinking: xt-ranlib'
==> default: symlinking: xt-ranlib
==> default: + ln -s xtensa-lx106-elf-ranlib xt-ranlib
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-readelf
==> default: + XT_NAME=xt-readelf
==> default: + echo 'symlinking: xt-readelf'
==> default: symlinking: xt-readelf
==> default: + ln -s xtensa-lx106-elf-readelf xt-readelf
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-size
==> default: + XT_NAME=xt-size
==> default: + echo 'symlinking: xt-size'
==> default: symlinking: xt-size
==> default: + ln -s xtensa-lx106-elf-size xt-size
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-strings
==> default: + XT_NAME=xt-strings
==> default: + echo 'symlinking: xt-strings'
==> default: symlinking: xt-strings
==> default: + ln -s xtensa-lx106-elf-strings xt-strings
==> default: + for i in '`ls xtensa-lx106*`'
==> default: ++ sed s/xtensa-lx106-elf-/xt-/
==> default: ++ echo -n xtensa-lx106-elf-strip
==> default: + XT_NAME=xt-strip
==> default: + echo 'symlinking: xt-strip'
==> default: symlinking: xt-strip
==> default: + ln -s xtensa-lx106-elf-strip xt-strip
==> default: + ln -s xt-cc xt-xcc
==> default: ++ grep 'export CROSS_COMPILE'
==> default: ++ cat /home/vagrant/.bashrc
==> default: + HAS_CROSS_COMPILE='export CROSS_COMPILE=xtensa-lx106-elf-'
==> default: + '[' -z 'export CROSS_COMPILE=xtensa-lx106-elf-' ']'
==> default: + cd /opt/Espressif
==> default: + LATEST_SDK_VERSION=esp_iot_sdk_v0.9.5
==> default: ++ readlink esp8266_sdk
==> default: + CURRENT_SDK_VERSION=esp_iot_sdk_v0.9.5
==> default: + '[' esp_iot_sdk_v0.9.5 '!=' esp_iot_sdk_v0.9.5 ']'
==> default: ++ grep 'export SDK_BASE'
==> default: ++ cat /home/vagrant/.bashrc
==> default: + HAS_SDK_BASE='export SDK_BASE=/opt/Espressif/esp8266_sdk'
==> default: + '[' -z 'export SDK_BASE=/opt/Espressif/esp8266_sdk' ']'
==> default: + cd /opt/Espressif
==> default: + '[' '!' -d /opt/Espressif/esp8266_rtos_sdk ']'
==> default: + cd /opt/Espressif/esp8266_rtos_sdk
==> default: + git pull origin master
==> default: From https://github.com/espressif/esp_iot_rtos_sdk
==> default:  * branch            master     -> FETCH_HEAD
==> default: Already up-to-date.
==> default: + make
==> default: make[1]: Entering directory `/opt/Espressif/esp8266_rtos_sdk/app'
==> default: make[2]: Entering directory `/opt/Espressif/esp8266_rtos_sdk/app/user'
==> default: make[2]: Leaving directory `/opt/Espressif/esp8266_rtos_sdk/app/user'
==> default: xt-xcc  -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lmain -lfreertos -llwip -ludhcp user/.output/eagle/debug/lib/libuser.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out 
==> default: user
==> default: /
==> default: .
==> default: output
==> default: /
==> default: eagle
==> default: /
==> default: debug
==> default: /
==> default: lib
==> default: /
==> default: libuser.a
==> default: (
==> default: user_main.o
==> default: )
==> default: :
==> default: (
==> default: .
==> default: irom0.text+0x2c): undefined reference to `system_get_sdk_version'
==> default: user/.output/eagle/debug/lib/libuser.a(user_main.o):(.irom0.text+0x3b): undefined reference to `system_get_sdk_version'
==> default: collect2: error: ld returned 1 exit status
==> default: make[1]: 
==> default: make[1]: Leaving directory `/opt/Espressif/esp8266_rtos_sdk/app'
==> default: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
==> default: make: 
==> default: *** [.subdirs] Error 2
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell

Stdout from the command:

Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [54.3 kB]
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:3 http://security.ubuntu.com precise-security/main Sources [127 kB]
Get:4 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:5 http://security.ubuntu.com precise-security/restricted Sources [3,759 B]
Get:6 http://security.ubuntu.com precise-security/universe Sources [35.0 kB]
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Get:7 http://security.ubuntu.com precise-security/multiverse Sources [1,816 B]
Get:8 http://security.ubuntu.com precise-security/main i386 Packages [535 kB]
Hit http://us.archive.ubuntu.com precise Release
Get:9 http://us.archive.ubuntu.com precise-updates Release [196 kB]
Get:10 http://security.ubuntu.com precise-security/restricted i386 Packages [8,939 B]
Get:11 http://security.ubuntu.com precise-security/universe i386 Packages [120 kB]
Get:12 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,650 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:13 http://us.archive.ubuntu.com precise-updates/main Sources [487 kB]
Get:14 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,981 B]
Get:15 http://us.archive.ubuntu.com precise-updates/universe Sources [112 kB]
Get:16 http://us.archive.ubuntu.com precise-updates/multiverse Sources [9,413 B]
Get:17 http://us.archive.ubuntu.com precise-updates/main i386 Packages [929 kB]
Get:18 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.6 kB]
Get:19 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [265 kB]
Get:20 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [16.6 kB]
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 2,925 kB in 5s (547 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version.
bison is already the newest version.
flex is already the newest version.
gawk is already the newest version.
gperf is already the newest version.
libncurses5-dev is already the newest version.
libtool is already the newest version.
texinfo is already the newest version.
python-pip is already the newest version.
build-essential is already the newest version.
git is already the newest version.
libc6-dev-amd64 is already the newest version.
libexpat1-dev is already the newest version.
unzip is already the newest version.
wget is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Already up-to-date.
symlinking: xt-addr2line
symlinking: xt-ar
symlinking: xt-as
symlinking: xt-cc
symlinking: xt-c++filt
symlinking: xt-cpp
symlinking: xt-ct-ng.config
symlinking: xt-elfedit
symlinking: xt-gcc
symlinking: xt-gcc-4.8.2
symlinking: xt-gcc-ar
symlinking: xt-gcc-nm
symlinking: xt-gcc-ranlib
symlinking: xt-gcov
symlinking: xt-gdb
symlinking: xt-gprof
symlinking: xt-ld
symlinking: xt-ld.bfd
symlinking: xt-nm
symlinking: xt-objcopy
symlinking: xt-objdump
symlinking: xt-ranlib
symlinking: xt-readelf
symlinking: xt-size
symlinking: xt-strings
symlinking: xt-strip
Already up-to-date.
make[1]: Entering directory `/opt/Espressif/esp8266_rtos_sdk/app'
make[2]: Entering directory `/opt/Espressif/esp8266_rtos_sdk/app/user'
make[2]: Leaving directory `/opt/Espressif/esp8266_rtos_sdk/app/user'
xt-xcc  -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lmain -lfreertos -llwip -ludhcp user/.output/eagle/debug/lib/libuser.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out 
make[1]: Leaving directory `/opt/Espressif/esp8266_rtos_sdk/app'


Stderr from the command:

+ sudo apt-get update
+ sudo apt-get -y install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-amd64 python-pip libexpat-dev unzip
+ sudo pip install pyserial
+ '[' '!' -d /opt/Espressif ']'
+ sudo chown vagrant /opt/Espressif
+ cd /opt/Espressif
+ '[' '!' -d /opt/Espressif/crosstool-NG ']'
+ cd /opt/Espressif/crosstool-NG
++ gitsha
++ head -1
++ git show --format=%H
+ OLDSHA=6e9a548ff89db355e11066c2f56ecb8704da454f
+ git pull origin lx106
From https://github.com/jcmvbkbc/crosstool-NG
 * branch            lx106      -> FETCH_HEAD
++ gitsha
++ head -1
++ git show --format=%H
+ '[' 6e9a548ff89db355e11066c2f56ecb8704da454f '!=' 6e9a548ff89db355e11066c2f56ecb8704da454f ']'
+ '[' '!' -d /opt/Espressif/crosstool-NG/builds ']'
+ PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin
++ grep /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:
++ cat /home/vagrant/.bashrc
+ HAS_PATH='export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:$PATH'
+ '[' -z 'export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin:$PATH' ']'
+ cd /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
+ chmod u+w .
+ rm -f xt-addr2line xt-ar xt-as xt-cc xt-c++filt xt-cpp xt-ct-ng.config xt-elfedit xt-gcc xt-gcc-4.8.2 xt-gcc-ar xt-gcc-nm xt-gcc-ranlib xt-gcov xt-gdb xt-gprof xt-ld xt-ld.bfd xt-nm xt-objcopy xt-objdump xt-ranlib xt-readelf xt-size xt-strings xt-strip xt-xcc
++ ls xtensa-lx106-elf-addr2line xtensa-lx106-elf-ar xtensa-lx106-elf-as xtensa-lx106-elf-cc xtensa-lx106-elf-c++filt xtensa-lx106-elf-cpp xtensa-lx106-elf-ct-ng.config xtensa-lx106-elf-elfedit xtensa-lx106-elf-gcc xtensa-lx106-elf-gcc-4.8.2 xtensa-lx106-elf-gcc-ar xtensa-lx106-elf-gcc-nm xtensa-lx106-elf-gcc-ranlib xtensa-lx106-elf-gcov xtensa-lx106-elf-gdb xtensa-lx106-elf-gprof xtensa-lx106-elf-ld xtensa-lx106-elf-ld.bfd xtensa-lx106-elf-nm xtensa-lx106-elf-objcopy xtensa-lx106-elf-objdump xtensa-lx106-elf-ranlib xtensa-lx106-elf-readelf xtensa-lx106-elf-size xtensa-lx106-elf-strings xtensa-lx106-elf-strip
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-addr2line
+ XT_NAME=xt-addr2line
+ echo 'symlinking: xt-addr2line'
+ ln -s xtensa-lx106-elf-addr2line xt-addr2line
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-ar
+ XT_NAME=xt-ar
+ echo 'symlinking: xt-ar'
+ ln -s xtensa-lx106-elf-ar xt-ar
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-as
+ XT_NAME=xt-as
+ echo 'symlinking: xt-as'
+ ln -s xtensa-lx106-elf-as xt-as
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-cc
+ XT_NAME=xt-cc
+ echo 'symlinking: xt-cc'
+ ln -s xtensa-lx106-elf-cc xt-cc
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-c++filt
+ XT_NAME=xt-c++filt
+ echo 'symlinking: xt-c++filt'
+ ln -s xtensa-lx106-elf-c++filt xt-c++filt
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-cpp
+ XT_NAME=xt-cpp
+ echo 'symlinking: xt-cpp'
+ ln -s xtensa-lx106-elf-cpp xt-cpp
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-ct-ng.config
+ XT_NAME=xt-ct-ng.config
+ echo 'symlinking: xt-ct-ng.config'
+ ln -s xtensa-lx106-elf-ct-ng.config xt-ct-ng.config
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-elfedit
+ XT_NAME=xt-elfedit
+ echo 'symlinking: xt-elfedit'
+ ln -s xtensa-lx106-elf-elfedit xt-elfedit
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcc
+ XT_NAME=xt-gcc
+ echo 'symlinking: xt-gcc'
+ ln -s xtensa-lx106-elf-gcc xt-gcc
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcc-4.8.2
+ XT_NAME=xt-gcc-4.8.2
+ echo 'symlinking: xt-gcc-4.8.2'
+ ln -s xtensa-lx106-elf-gcc-4.8.2 xt-gcc-4.8.2
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcc-ar
+ XT_NAME=xt-gcc-ar
+ echo 'symlinking: xt-gcc-ar'
+ ln -s xtensa-lx106-elf-gcc-ar xt-gcc-ar
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcc-nm
+ XT_NAME=xt-gcc-nm
+ echo 'symlinking: xt-gcc-nm'
+ ln -s xtensa-lx106-elf-gcc-nm xt-gcc-nm
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcc-ranlib
+ XT_NAME=xt-gcc-ranlib
+ echo 'symlinking: xt-gcc-ranlib'
+ ln -s xtensa-lx106-elf-gcc-ranlib xt-gcc-ranlib
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gcov
+ XT_NAME=xt-gcov
+ echo 'symlinking: xt-gcov'
+ ln -s xtensa-lx106-elf-gcov xt-gcov
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gdb
+ XT_NAME=xt-gdb
+ echo 'symlinking: xt-gdb'
+ ln -s xtensa-lx106-elf-gdb xt-gdb
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-gprof
+ XT_NAME=xt-gprof
+ echo 'symlinking: xt-gprof'
+ ln -s xtensa-lx106-elf-gprof xt-gprof
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-ld
+ XT_NAME=xt-ld
+ echo 'symlinking: xt-ld'
+ ln -s xtensa-lx106-elf-ld xt-ld
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-ld.bfd
+ XT_NAME=xt-ld.bfd
+ echo 'symlinking: xt-ld.bfd'
+ ln -s xtensa-lx106-elf-ld.bfd xt-ld.bfd
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-nm
+ XT_NAME=xt-nm
+ echo 'symlinking: xt-nm'
+ ln -s xtensa-lx106-elf-nm xt-nm
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-objcopy
+ XT_NAME=xt-objcopy
+ echo 'symlinking: xt-objcopy'
+ ln -s xtensa-lx106-elf-objcopy xt-objcopy
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-objdump
+ XT_NAME=xt-objdump
+ echo 'symlinking: xt-objdump'
+ ln -s xtensa-lx106-elf-objdump xt-objdump
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-ranlib
+ XT_NAME=xt-ranlib
+ echo 'symlinking: xt-ranlib'
+ ln -s xtensa-lx106-elf-ranlib xt-ranlib
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-readelf
+ XT_NAME=xt-readelf
+ echo 'symlinking: xt-readelf'
+ ln -s xtensa-lx106-elf-readelf xt-readelf
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-size
+ XT_NAME=xt-size
+ echo 'symlinking: xt-size'
+ ln -s xtensa-lx106-elf-size xt-size
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-strings
+ XT_NAME=xt-strings
+ echo 'symlinking: xt-strings'
+ ln -s xtensa-lx106-elf-strings xt-strings
+ for i in '`ls xtensa-lx106*`'
++ sed s/xtensa-lx106-elf-/xt-/
++ echo -n xtensa-lx106-elf-strip
+ XT_NAME=xt-strip
+ echo 'symlinking: xt-strip'
+ ln -s xtensa-lx106-elf-strip xt-strip
+ ln -s xt-cc xt-xcc
++ grep 'export CROSS_COMPILE'
++ cat /home/vagrant/.bashrc
+ HAS_CROSS_COMPILE='export CROSS_COMPILE=xtensa-lx106-elf-'
+ '[' -z 'export CROSS_COMPILE=xtensa-lx106-elf-' ']'
+ cd /opt/Espressif
+ LATEST_SDK_VERSION=esp_iot_sdk_v0.9.5
++ readlink esp8266_sdk
+ CURRENT_SDK_VERSION=esp_iot_sdk_v0.9.5
+ '[' esp_iot_sdk_v0.9.5 '!=' esp_iot_sdk_v0.9.5 ']'
++ grep 'export SDK_BASE'
++ cat /home/vagrant/.bashrc
+ HAS_SDK_BASE='export SDK_BASE=/opt/Espressif/esp8266_sdk'
+ '[' -z 'export SDK_BASE=/opt/Espressif/esp8266_sdk' ']'
+ cd /opt/Espressif
+ '[' '!' -d /opt/Espressif/esp8266_rtos_sdk ']'
+ cd /opt/Espressif/esp8266_rtos_sdk
+ git pull origin master
From https://github.com/espressif/esp_iot_rtos_sdk
 * branch            master     -> FETCH_HEAD
+ make
user/.output/eagle/debug/lib/libuser.a(user_main.o):(.irom0.text+0x2c): undefined reference to `system_get_sdk_version'
user/.output/eagle/debug/lib/libuser.a(user_main.o):(.irom0.text+0x3b): undefined reference to `system_get_sdk_version'
collect2: error: ld returned 1 exit status
make[1]: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
make: *** [.subdirs] Error 2
@MacDada
Copy link
Author

MacDada commented Apr 17, 2015

Should be fixed when espressif/ESP8266_RTOS_SDK#23 is merged.

@mziwisky
Copy link
Owner

thanks for the report. i haven't been doing upkeep on this repo, but if you've got a PR that would fix the issue, i'd welcome it. sounds like it's just a matter of waiting for that espressif branch to be merged tho.

in the mean time, anyone needing the RTOS sdk could edit the provisioning script to pull that branch instead of master, or if only the original sdk is needed, just comment out the bits of the script that install the RTOS version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants