until the following gave me error
/opt/Espressif
git clone -b lx106 git://github.com/jcmvbkbc/crosstool-NG.git
cd crosstool-NG
./bootstrap && ./configure --prefix=`pwd` && make && make install
./ct-ng xtensa-lx106-elf
./ct-ng build
==> Executing: 'mkdir' '-p' '/opt/Espressif/crosstool-NG/.build/src/cloog-0.18.1/m4'
[ERROR] The 'mpc-1.0.2' sources were partially extracted.
[ERROR] Please remove first:
[ERROR] - the source dir for 'mpc-1.0.2', in '/opt/Espressif/crosstool-NG/.build/src'
[ERROR] - the file '/opt/Espressif/crosstool-NG/.build/src/.mpc-1.0.2.extracting'
[ERROR] I'll stop now to avoid any carnage...
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Extracting and patching toolchain components'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions@331]
[ERROR] >> called from: CT_Extract[scripts/functions@932]
[ERROR] >> called from: do_mpc_extract[scripts/build/companion_libs/140-mpc.sh@21]
[ERROR] >> called from: do_companion_libs_extract[scripts/build/companion_libs.sh@22]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@606]
[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/ct-ng.1.20.0/B - Known issues.txt'
[ERROR]
I have attached the log file.