Closed grodansparadis closed 7 years ago
Checking the tarball it is actually corrupt and can't be unpacked. The rest of the tarballs in .build/tarballs/ appears to unpack OK also manually
Any workaround or hint to this?
Remove the tarball and rerun the build? If that fails you can try to download it manually from www.gnu.org or from https://github.com/jcmvbkbc/binutils-gdb-xtensa/archive/binutils-2_25_1.tar.gz
Have removed the tarball a couple of times with the same result. Will try to download manually.
Copying in binutils manually and removing the partly extracted stuff makes it unpack. But now it stops at the patching instead.
==> Executing: 'touch' '/home/esp/crosstool-NG/.build/src/.binutils-2.24.extracted' [DEBUG] ==> Executing: 'rm' '-f' '/home/esp/crosstool-NG/.build/src/.binutils-2.24.extracting' [DEBUG] Entering '/home/esp/crosstool-NG/.build/src/binutils-2.24' [EXTRA] Patching 'binutils-2.24' [DEBUG] Looking for patches in '/home/esp/crosstool-NG/lib/ct-ng.1.20.0/patches/binutils/2.24'... [DEBUG] ==> Executing: 'patch' '--no-backup-if-mismatch' '-g0' '-F1' '-p1' '-f' '-i' '/home/esp/crosstool-NG/lib/ct-ng.1.20.0/patches/binutils/2.24/120-sh-conf.patch' [ALL ] patching file configure [ALL ] Hunk #1 FAILED at 3570. [ALL ] 1 out of 1 hunk FAILED -- saving rejects to file configure.rej [ALL ] patching file configure.ac [ALL ] Hunk #1 FAILED at 1006. [ALL ] 1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Extracting and patching toolchain components' [ERROR] >> called in step '(top-level)'
OK noticed now that the file from https://github.com/jcmvbkbc/binutils-gdb-xtensa/archive/binutils-2_25_1.tar.gz
is 2.25 which may explain the patching problem. Will test a gnu version.
Yes copying http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz solve the problem.
So if someone else is getting this error
rm -rf .build/src/binutils*
rm .build/src/ .binutils-*
rm .buils/tarballs/binutils*
./ct-ng build
Thanks @jcmvbkbc for your and prompt and kind help! Very much appreciated.
I try to compile on debian jessie and always fail on the binutils unpack stage, l
patching file progs/tset.c [DEBUG] Looking for patches in '/home/esp/crosstool-NG/lib/crosstool-ng-1.22.0-73-ge28a011/patches/ncurses/6.0/xtensa'... [DEBUG] Looking for patches in '/home/esp/crosstool-NG/local-patches/ncurses/6.0'... [ALL ] Overiding config.guess and config.sub [ALL ] mode of './config.guess' retained as 0755 (rwxr-xr-x) [ALL ] '/home/esp/crosstool-NG/scripts/config.guess' -> './config.guess' [ALL ] mode of './config.sub' retained as 0755 (rwxr-xr-x) [ALL ] '/home/esp/crosstool-NG/scripts/config.sub' -> './config.sub' [DEBUG] ==> Executing: 'touch' '/home/esp/crosstool-NG/.build/src/.ncurses-6.0.patched' [DEBUG] ==> Executing: 'rm' '-f' '/home/esp/crosstool-NG/.build/src/.ncurses-6.0.patching' [DEBUG] ==> Executing: 'touch' '/home/esp/crosstool-NG/.build/src/.binutils-2.25.1.extracting' [DEBUG] Entering '/home/esp/crosstool-NG/.build/src' [EXTRA] Extracting 'binutils-2.25.1' [DEBUG] ==> Executing: 'mkdir' '-p' 'binutils-2.25.1'
Checking the tarball it is actually corrupt and can't be unpacked. The rest of the tarballs in .build/tarballs/ appears to unpack OK also manually
Any workaround or hint to this?