Problem compiling esp-open-sdk

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Problem compiling esp-open-sdk

Post by slzatz » Thu Aug 11, 2016 5:31 pm

Have not had a problem compiling the esp sdk but hadn't tried for about a week. I am doing this using a virtual ubuntu 16.04 box. Did a fresh pull from git. What I am getting is:

Code: Select all

...
[INFO ]  =================================================================
[INFO ]  Installing final gcc compiler
[INFO ]  Installing final gcc compiler: done in 472.98s (at 26:39)
[INFO ]  =================================================================
[INFO ]  Installing cross-gdb
[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[5]: *** [gdb] Error 1
[ERROR]    make[4]: *** [all-gdb] Error 2
[ERROR]    make[3]: *** [all] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
...
All the stated dependencies are installed. Has anyone else encountered this or have any suggestions?

Steve

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Problem compiling esp-open-sdk

Post by deshipu » Thu Aug 11, 2016 6:40 pm

Can you provide the full error from the log file?

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Re: Problem compiling esp-open-sdk

Post by slzatz » Thu Aug 11, 2016 7:40 pm

It's 16 MBs - the last entry before things went awry was

Code: Select all

[ALL  ]    x86_64-build_pc-linux-gnu-gcc -g -O2   -static-libstdc++ -static-libgcc    	-o gdb gdb.o xtensa-tdep.o xtensa-config.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o  remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o remote-notif.o ctf.o tracefile.o tracefile-tfile.o  cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o cli-utils.o mi-out.o mi-console.o mi-cmds.o mi-cmd-catch.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-cmd-info.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o tui.o python.o py-arch.o py-auto-load.o py-block.o py-bpevent.o py-breakpoint.o py-cmd.o py-continueevent.o py-xmethods.o py-event.o py-evtregistry.o py-evts.o py-exitedevent.o py-finishbreakpoint.o py-frame.o py-framefilter.o py-function.o py-gdb-readline.o py-inferior.o py-infevents.o py-infthread.o py-lazy-string.o py-linetable.o py-newobjfileevent.o py-objfile.o py-param.o py-prettyprint.o py-progspace.o py-signalevent.o py-stopevent.o py-symbol.o py-symtab.o py-threadevent.o py-type.o py-unwind.o py-utils.o py-value.o py-varobj.o guile.o elfread.o stap-probe.o dtrace-probe.o posix-hdep.o posix-strerror.o c-exp.o cp-name-parser.o ada-exp.o jv-exp.o d-exp.o f-exp.o go-exp.o m2-exp.o p-exp.o version.o annotate.o addrmap.o auto-load.o auxv.o agent.o bfd-target.o blockframe.o breakpoint.o break-catch-sig.o break-catch-throw.o break-catch-syscall.o findvar.o regcache.o cleanups.o charset.o continuations.o corelow.o disasm.o dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o block.o symtab.o psymtab.o symfile.o symfile-debug.o symmisc.o linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o stack.o thread.o exceptions.o extension.o filesystem.o filestuff.o inf-child.o interps.o minidebug.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o gdbtypes.o gdb_bfd.o gdb_obstack.o osabi.o copying.o memattr.o mem-break.o target.o target-dcache.o parse.o language.o build-id.o buildsym.o findcmd.o std-regs.o signals.o exec.o reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o stabsread.o corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o dwarf2-frame-tailcall.o ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o ada-tasks.o ada-varobj.o c-varobj.o ui-out.o cli-out.o varobj.o vec.o go-lang.o go-valprint.o go-typeprint.o jv-lang.o jv-valprint.o jv-typeprint.o jv-varobj.o m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o sentinel-frame.o complaints.o typeprint.o ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o mdebugread.o top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o doublest.o frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o cp-namespace.o reggroups.o trad-frame.o tramp-frame.o solib.o solib-target.o prologue-value.o memory-map.o memrange.o xml-support.o xml-syscall.o xml-utils.o target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o inferior.o osdata.o gdb_usleep.o record.o record-full.o gcore.o gdb_vecs.o jit.o progspace.o skip.o probe.o common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o format.o registry.o btrace.o record-btrace.o waitstatus.o print-utils.o rsp-low.o errors.o common-debug.o debug.o common-exceptions.o btrace-common.o fileio.o compile.o compile-c-symbols.o compile-c-types.o compile-object-load.o compile-object-run.o compile-loc2c.o compile-c-support.o inflow.o    init.o 	   ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -L./../zlib -lz  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -ldl -ldl -lncurses -lm -ldl     -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions /home/ubuntu/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/lib/libexpat.a    ../libiberty/libiberty.a  build-gnulib/import/libgnu.a 
[ERROR]    collect2: error: ld returned 1 exit status
[ALL  ]    Makefile:1390: recipe for target 'gdb' failed
[ERROR]    make[5]: *** [gdb] Error 1
[ALL  ]    make[5]: Leaving directory '/home/ubuntu/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-gdb-cross/gdb'
[ALL  ]    Makefile:8754: recipe for target 'all-gdb' failed
[ERROR]    make[4]: *** [all-gdb] Error 2
[ALL  ]    make[4]: Leaving directory '/home/ubuntu/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-gdb-cross'
[ALL  ]    Makefile:844: recipe for target 'all' failed
[ERROR]    make[3]: *** [all] Error 2
[ALL  ]    make[3]: Leaving directory '/home/ubuntu/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-gdb-cross'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/crosstool-ng-1.22.0-55-gecfc19a/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 30:02.59)
Any thoughts appreciated. I notice I have about about 1.7 GB available in /dev/sda1 prior to compiling - any idea how much space is required?

preiter
Posts: 7
Joined: Tue Aug 09, 2016 5:14 pm

Re: Problem compiling esp-open-sdk

Post by preiter » Thu Aug 11, 2016 8:54 pm

Just to jump in with an issue I had compiling the SDK. I'm using the new bash shell under Windows 10.


[CFG ] checking that generated files are newer than configure... done
[CFG ] configure: creating ./config.status
[CFG ] config.status: creating Makefile
[CFG ] config.status: creating doc/Makefile
[CFG ] config.status: creating src/Makefile
[CFG ] config.status: creating tests/Makefile
[CFG ] config.status: creating tune/Makefile
[CFG ] config.status: creating src/mparam.h
[CFG ] config.status: executing depfiles commands
[CFG ] config.status: executing libtool commands
[EXTRA] Building MPFR
[DEBUG] ==> Executing: '/usr/bin/make' '-j5' '-l'
[ALL ] make[3]: Entering directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/xtens
a-lx106-elf/build/build-mpfr-host-x86_64-build_pc-linux-gnu'
[ALL ] CDPATH="${ZSH_VERSION+.}:" && cd /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/s
rc/mpfr-3.1.3 && /bin/bash /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/mis
sing aclocal-1.15 -I m4
[ALL ] /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/missing: line 81: a
clocal-1.15: command not found
[ALL ] WARNING: 'aclocal-1.15' is missing on your system.
[ALL ] You should only need it if you modified 'acinclude.m4' or
[ALL ] 'configure.ac' or m4 files included by 'configure.ac'.
[ALL ] The 'aclocal' program is part of the GNU Automake package:
[ALL ] <http://www.gnu.org/software/automake>
[ALL ] It also requires GNU Autoconf, GNU m4 and Perl in order to run:
[ALL ] <http://www.gnu.org/software/autoconf>
[ALL ] <http://www.gnu.org/software/m4/>
[ALL ] <http://www.perl.org/>
[ERROR] make[3]: *** [/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/acloc
al.m4] Error 127
[ALL ] make[3]: Leaving directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/xtensa
-lx106-elf/build/build-mpfr-host-x86_64-build_pc-linux-gnu'
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing MPFR for host'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_mpfr_backend[scripts/build/companion_libs/110-mpfr.sh@149]
[ERROR] >> called from: do_mpfr_for_host[scripts/build/companion_libs/110-mpfr.sh@104]
[ERROR] >> called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@646]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'share/doc/crosstool-ng/crosstool-ng-1.22.0-55-gecfc19a/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 16:04.29)

A google search suggests that the issue has to do with timestamp on the file configure.ac being newer than aclocal.m4 making make think that something needs to be rebuilt, but I'm not sure how to resolve this.

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Re: Problem compiling esp-open-sdk

Post by slzatz » Thu Aug 11, 2016 9:11 pm

It was the available disk space. Not sure what the minimum is but 1.7 GB was not enough and when I freed up space, it compiled fine.

jms
Posts: 108
Joined: Thu May 05, 2016 8:29 pm
Contact:

Re: Problem compiling esp-open-sdk

Post by jms » Mon Aug 15, 2016 10:11 am

I find using crosstool eats a quite staggering amount of disk space like tens of gigs especially if you enable the feature to save state.

Post Reply