{"id":2802,"date":"2017-10-23T21:35:15","date_gmt":"2017-10-23T21:35:15","guid":{"rendered":"http:\/\/grodansparadis.com\/wordpress\/?p=2802"},"modified":"2018-02-22T17:06:25","modified_gmt":"2018-02-22T17:06:25","slug":"problems-with-esp-open-sdk-build-on-debian-jessie-esp8266-solved","status":"publish","type":"post","link":"https:\/\/grodansparadis.com\/wordpress\/?p=2802","title":{"rendered":"Problems with #esp-open-sdk build on Debian jessie #ESP8266 solved"},"content":{"rendered":"<p>I have had problems lately to build the <a href=\"https:\/\/github.com\/pfalcon\/esp-open-sdk\">esp-open-sdk<\/a> on my main Debian machine with Jessie. Very annoying of course as I needed it but I haven&#8217;t had time to investigate the problem until today. I post the solution here i case it is useful for someone else.<\/p>\n<p>The symptoms is that the build stops quite early in the build process spitting out something like this<\/p>\n<blockquote><p>[INFO ] =================================================================<br \/>\n[INFO ] Retrieving needed toolchain components&#8217; tarballs<br \/>\n[INFO ] Retrieving needed toolchain components&#8217; tarballs: done in 208.37s (at 03:41)<br \/>\n[INFO ] =================================================================<br \/>\n[INFO ] Extracting and patching toolchain components<br \/>\n[ERROR]<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; Build failed in step &#8216;Extracting and patching toolchain components&#8217;<br \/>\n[ERROR] &gt;&gt; called in step &#8216;(top-level)&#8217;<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; Error happened in: CT_DoExecLog[scripts\/functions@257]<br \/>\n[ERROR] &gt;&gt; called from: CT_Extract[scripts\/functions@982]<br \/>\n[ERROR] &gt;&gt; called from: do_binutils_extract[scripts\/build\/binutils\/binutils.sh@38]<br \/>\n[ERROR] &gt;&gt; called from: main[scripts\/crosstool-NG.sh@615]<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; For more info on this error, look at the file: &#8216;build.log&#8217;<br \/>\n[ERROR] &gt;&gt; There is a list of known issues, some with workarounds, in:<br \/>\n[ERROR] &gt;&gt; &#8216;share\/doc\/crosstool-ng\/crosstool-ng-1.22.0-60-g37b07f6\/B &#8211; Known issues.txt&#8217;<br \/>\n[ERROR]<br \/>\n[ERROR] (elapsed: 4:12.94)<br \/>\n[04:15] \/ ct-ng:152: recipe for target &#8216;build&#8217; failed<br \/>\nmake[2]: *** [build] Error 2<br \/>\nmake[2]: Leaving directory &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG&#8217;<br \/>\n..\/Makefile:132: recipe for target &#8216;_toolchain&#8217; failed<br \/>\nmake[1]: *** [_toolchain] Error 2<br \/>\nmake[1]: Leaving directory &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG&#8217;<br \/>\nMakefile:128: recipe for target &#8216;\/home\/esp\/esp-open-sdk\/xtensa-lx106-elf\/bin\/xtensa-lx106-elf-gcc&#8217; failed<br \/>\nmake: *** [\/home\/esp\/esp-open-sdk\/xtensa-lx106-elf\/bin\/xtensa-lx106-elf-gcc] Error 2<\/p><\/blockquote>\n<p>Investigating the crosstools-NG\/build.log (less crosstool-NG\/build.log)<\/p>\n<blockquote><p>[DEBUG] ==&gt; Executing: &#8216;touch&#8217; &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG\/.build\/sr<br \/>\nc\/.ncurses-6.0.patched&#8217;<br \/>\n[DEBUG] ==&gt; Executing: &#8216;rm&#8217; &#8216;-f&#8217; &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG\/.build\/<br \/>\nsrc\/.ncurses-6.0.patching&#8217;<br \/>\n[DEBUG] ==&gt; Executing: &#8216;touch&#8217; &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG\/.build\/sr<br \/>\nc\/.binutils-2.25.1.extracting&#8217;<br \/>\n[DEBUG] Entering &#8216;\/home\/esp\/esp-open-sdk\/crosstool-NG\/.build\/src&#8217;<br \/>\n[EXTRA] Extracting &#8216;binutils-2.25.1&#8217;<br \/>\n[DEBUG] ==&gt; Executing: &#8216;mkdir&#8217; &#8216;-p&#8217; &#8216;binutils-2.25.1&#8217;<br \/>\n[DEBUG] ==&gt; Executing: &#8216;tar&#8217; &#8216;&#8211;strip-components=1&#8217; &#8216;-C&#8217; &#8216;binutils-2.25.1&#8217; &#8216;-xv&#8217; &#8216;-f&#8217; &#8216;-&#8216;<br \/>\n[FILE ] tar: This does not look like a tar archive<br \/>\n[FILE ] tar: Skipping to next header<br \/>\n[FILE ] tar: Exiting with failure status due to previous errors<br \/>\n[ERROR]<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; Build failed in step &#8216;Extracting and patching toolchain components&#8217;<br \/>\n[ERROR] &gt;&gt; called in step &#8216;(top-level)&#8217;<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; Error happened in: CT_DoExecLog[scripts\/functions@257]<br \/>\n[ERROR] &gt;&gt; called from: CT_Extract[scripts\/functions@982]<br \/>\n[ERROR] &gt;&gt; called from: do_binutils_extract[scripts\/build\/binutils\/binutils.sh@38]<br \/>\n[ERROR] &gt;&gt; called from: main[scripts\/crosstool-NG.sh@615]<br \/>\n[ERROR] &gt;&gt;<br \/>\n[ERROR] &gt;&gt; For more info on this error, look at the file: &#8216;build.log&#8217;<br \/>\n[ERROR] &gt;&gt; There is a list of known issues, some with workarounds, in:<br \/>\n[ERROR] &gt;&gt; &#8216;share\/doc\/crosstool-ng\/crosstool-ng-1.22.0-60-g37b07f6\/B &#8211; Known issues.txt&#8217;<br \/>\n[ERROR]<br \/>\n[ERROR] (elapsed: 4:12.94)<\/p><\/blockquote>\n<p>The line<\/p>\n<blockquote><p>[DEBUG] ==&gt; Executing: &#8216;tar&#8217; &#8216;&#8211;strip-components=1&#8217; &#8216;-C&#8217; &#8216;binutils-2.25.1&#8217; &#8216;-xv&#8217; &#8216;-f&#8217; &#8216;-&#8216;<br \/>\n[FILE ] tar: This does not look like a tar archive<\/p><\/blockquote>\n<p>says it is a problem with a tarball and testing the binutils tarball under crosstool-NG\/.build\/tarballs shows it really is a problem with the tarball.<\/p>\n<p>So after some discussions <a href=\"https:\/\/github.com\/jcmvbkbc\/crosstool-NG\/issues\/50\">here<\/a> is finally found a solution to the problem.<\/p>\n<ul>\n<li>remove the partly extracted binutils &#8211;\u00a0<code><strong>rm -rf crosstool-NG\/.build\/src\/binutils*<\/strong><\/code><\/li>\n<li>remove flags\u00a0 &#8211;\u00a0<code><strong>rm crosstool-NG\/.build\/src\/<\/strong> <strong>.binutils-*<\/strong><\/code><\/li>\n<li>remove the bad tarball\u00a0 &#8211;\u00a0<strong><code>rm crosstool-NG\/.build\/tarballs\/binutils*<\/code><\/strong><\/li>\n<li>Download <a href=\"http:\/\/ftp.gnu.org\/gnu\/binutils\/binutils-2.25.1.tar.gz\">binutils<\/a><\/li>\n<li>copy this tarball from the gnu link to<strong><code>\u00a0crosstool-NG\/<\/code>.build\/tarballs<\/strong><\/li>\n<li>Continue with the build &#8211; <strong><code>make<\/code><\/strong><\/li>\n<\/ul>\n<p>This will make things build.\u00a0 At least it did for me.<\/p>\n<p>if the version of binutils is something else in your case you have other versions <a href=\"http:\/\/ftp.gnu.org\/gnu\/binutils\/\">here. \u00a0<\/a>Select the tar.gz version<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have had problems lately to build the esp-open-sdk on my main Debian machine with Jessie. Very annoying of course as I needed it but I haven&#8217;t had time to investigate the problem until today. I post the solution here i case it is useful for someone else. The symptoms is that the build stops [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[62,12],"tags":[],"class_list":["post-2802","post","type-post","status-publish","format-standard","hentry","category-esp8266","category-general"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4raCZ-Jc","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2802"}],"version-history":[{"count":6,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2802\/revisions"}],"predecessor-version":[{"id":3178,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2802\/revisions\/3178"}],"wp:attachment":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}