https://github.com/micropython/micropython/issues/2106
However, I am using this gcc version: gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
Can anybody help me?
Here is the output I am seeing:
Now configured for "xtensa-lx106-elf"
make[2]: Verzeichnis „/home/matthias/esp-open-sdk/crosstool-NG“ wird verlassen
sed -r -i.org s%CT_PREFIX_DIR=.*%CT_PREFIX_DIR="/home/matthias/esp-open-sdk/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]: Verzeichnis „/home/matthias/esp-open-sdk/crosstool-NG“ wird betreten
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20190102.020509
[INFO ] Building environment variables
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 118.08s (at 02:00)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[INFO ] Extracting and patching toolchain components: done in 144.58s (at 04:24)
[INFO ] =================================================================
[INFO ] Installing ncurses for build
[INFO ] Installing ncurses for build: done in 109.20s (at 06:14)
[INFO ] =================================================================
[INFO ] Installing GMP for host
[INFO ] Installing GMP for host: done in 110.20s (at 08:04)
[INFO ] =================================================================
[INFO ] Installing MPFR for host
[INFO ] Installing MPFR for host: done in 99.98s (at 09:44)
[INFO ] =================================================================
[INFO ] Installing ISL for host
[INFO ] Installing ISL for host: done in 107.98s (at 11:32)
[INFO ] =================================================================
[INFO ] Installing CLooG for host
[INFO ] Installing CLooG for host: done in 18.80s (at 11:51)
[INFO ] =================================================================
[INFO ] Installing MPC for host
[INFO ] Installing MPC for host: done in 45.75s (at 12:36)
[INFO ] =================================================================
[INFO ] Installing expat for host
[INFO ] Installing expat for host: done in 14.87s (at 12:51)
[INFO ] =================================================================
[INFO ] Installing binutils for host
[INFO ] Installing binutils for host: done in 253.26s (at 17:05)
[INFO ] =================================================================
[INFO ] Installing C library headers & start files
[INFO ] Installing C library headers & start files: done in 0.27s (at 17:05)
[INFO ] =================================================================
[INFO ] Installing pass-2 core C gcc compiler
[INFO ] Installing pass-2 core C gcc compiler: done in 941.52s (at 32:46)
[INFO ] =================================================================
[INFO ] Installing C library
[INFO ] Installing C library: done in 88.99s (at 34:15)
[INFO ] =================================================================
[INFO ] Installing final gcc compiler
[ERROR] collect2: error: ld returned 1 exit status
[ERROR] make[4]: *** [cc1plus] Error 1
[ERROR] make[3]: *** [all-gcc] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing final gcc compiler'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_gcc_core_backend[scripts/build/cc/100-gcc.sh@545]
[ERROR] >> called from: do_gcc_for_host[scripts/build/cc/100-gcc.sh@671]
[ERROR] >> called from: do_cc_for_host[scripts/build/cc.sh@56]
[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-60-g37b07f6f/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 50:07.33)
[50:07] / ct-ng:152: die Regel für Ziel „build“ scheiterte
make[2]: *** [build] Fehler 2
make[2]: Verzeichnis „/home/matthias/esp-open-sdk/crosstool-NG“ wird verlassen
../Makefile:135: die Regel für Ziel „_toolchain“ scheiterte
make[1]: *** [_toolchain] Fehler 2
make[1]: Verzeichnis „/home/matthias/esp-open-sdk/crosstool-NG“ wird verlassen
Makefile:130: die Regel für Ziel „crosstool-NG/.built“ scheiterte
make: *** [crosstool-NG/.built] Fehler 2