Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retreiving neede toolchain components' tarballs fails #237

Closed
cpranzl opened this issue Jan 15, 2017 · 24 comments
Closed

Retreiving neede toolchain components' tarballs fails #237

cpranzl opened this issue Jan 15, 2017 · 24 comments

Comments

@cpranzl
Copy link

cpranzl commented Jan 15, 2017

Hi,
trying to build micropython myself and running repeatly into this error

sed -r -i.org s%CT_PREFIX_DIR=.*%CT_PREFIX_DIR="/home/cpranzl/Projekte/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/cpranzl/Projekte/esp-open-sdk/crosstool-NG“ wird betreten
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20170115.163602
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[04:02] / 

[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_isl_get[scripts/build/companion_libs/121-isl.sh@741]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@591]
[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: 5:28.80)
[05:29] / ct-ng:152: die Regel für Ziel „build“ scheiterte
make[2]: *** [build] Fehler 1
make[2]: Verzeichnis „/home/cpranzl/Projekte/esp-open-sdk/crosstool-NG“ wird verlassen
../Makefile:130: die Regel für Ziel „_toolchain“ scheiterte
make[1]: *** [_toolchain] Fehler 2
make[1]: Verzeichnis „/home/cpranzl/Projekte/esp-open-sdk/crosstool-NG“ wird verlassen
Makefile:126: die Regel für Ziel „/home/cpranzl/Projekte/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc“ scheiterte
make: *** [/home/cpranzl/Projekte/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Fehler 2
cpranzl@thor:~/Projekte/esp-open-sdk$7

KR
Christoph

@cpranzl
Copy link
Author

cpranzl commented Jan 15, 2017

Output is in German but it tells me that there is a problem with retrieving tarball for crosstool-NG. I tried to clone the crosstool-NG project which works fine.

@sheinz
Copy link

sheinz commented Jan 15, 2017

I have a similar issue.
In my case the problem is that a server "http://isl.gforge.inria.fr/isl-0.14" is not responding.
You can check the more detailed info in file crosstool-NG/build.log

cat crosstool-NG/build.log

[ALL  ]    Retrying.
[ALL  ]
[ALL  ]    --2017-01-15 17:30:24--  (try: 3)  http://isl.gforge.inria.fr/isl-0.14
[ALL  ]    Connecting to isl.gforge.inria.fr (isl.gforge.inria.fr)|128.93.193.15|:80... connected.
[ALL  ]    HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
[ALL  ]    Giving up.
[ALL  ]
[DEBUG]    Not at this location: "http://isl.gforge.inria.fr/isl-0.14"
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'

@nubcore
Copy link

nubcore commented Jan 16, 2017

I'm getting the same thing, just re-created a fresh build environment, with same sources as yesterday, and now it's hanging on downloading the tarballs

@nubcore
Copy link

nubcore commented Jan 16, 2017

it looks like the server that wasn't responding, is now responding.

the tarballs get downloaded to /esp-open-sdk/crosstool-NG/.build/tarballs/ I was just now able to delete those, run "make clean" and then "make", all the tarballs were successfully downloaded this time, and compile. So alternatively you could download and place them manually from http://isl.gforge.inria.fr/

[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20170115.224951
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 87.72s (at 01:29)

also noticed there are newer versions available, and potentially alternatively retrievable from git repo http://repo.or.cz/w/isl.git

@cpranzl
Copy link
Author

cpranzl commented Jan 16, 2017

I can confirm that the problem is now solved.

@cpranzl cpranzl closed this as completed Jan 16, 2017
@yadavravi079
Copy link

yadavravi079 commented Aug 16, 2017

Check the build.log file
To get rid of this Error, try to fix FTP proxy

@cemox
Copy link

cemox commented Mar 4, 2018

goto crosstool-NG/.build/tarballs directory and download expat-2.1.0 by running:

wget https://github.com/libexpat/libexpat/releases/download/ R_2_1_0/expat-2.1.0.tar.gz

@answerme123
Copy link

it looks like the server that wasn't responding, is now responding.

the tarballs get downloaded to /esp-open-sdk/crosstool-NG/.build/tarballs/ I was just now able to delete those, run "make clean" and then "make", all the tarballs were successfully downloaded this time, and compile. So alternatively you could download and place them manually from http://isl.gforge.inria.fr/

[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20170115.224951
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 87.72s (at 01:29)

also noticed there are newer versions available, and potentially alternatively retrievable from git repo http://repo.or.cz/w/isl.git

Hi, I am trying to execute ct-ng build, unfortunately I encountered the same issue, I couldn't the find the directory /esp-open-sdk/crosstool-NG/.build/tarballs/. Is that something you get after the execution of build?

@sandikodev
Copy link

https://master.dl.sourceforge.net/project/expat/expat/2.2.10/expat-2.2.10.tar.xz

@SinanAkkoyun
Copy link

For anyone living in 2021 and needing it for esp-open-sdk:
https://src.fedoraproject.org/repo/pkgs/expat/expat-2.1.0.tar.gz/dd7dab7a5fea97d2a6a43f511449b7cd/

Idk if this is a virus but it worked for me

@raspiduino
Copy link

raspiduino commented Jul 19, 2021

goto crosstool-NG/.build/tarballs directory and download expat-2.1.0 by running:

wget https://github.com/libexpat/libexpat/releases/download/ R_2_1_0/expat-2.1.0.tar.gz

It should be
wget "https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz"

@Bohan-Song
Copy link

still error

@0z4
Copy link

0z4 commented Sep 1, 2021

still error

yep, im going to do a PR with an answere above that worked

@dsotirakis
Copy link

Any ideas on how can we poke people about http://isl.gforge.inria.fr/ being down?

@adolf-wv
Copy link

adolf-wv commented Oct 9, 2021

Any ideas on how can we poke people about http://isl.gforge.inria.fr/ being down?

You can use wayback machine to fetch the isl library until the site comes back up (https://web.archive.org/web/20210701145459/http://isl.gforge.inria.fr/isl-0.14.tar.gz) and add it to your crosstool-NG/.build/tarballs directory

@amq84
Copy link

amq84 commented Oct 17, 2021

Any ideas on how can we poke people about http://isl.gforge.inria.fr/ being down?

You can use wayback machine to fetch the isl library until the site comes back up (https://web.archive.org/web/20210701145459/http://isl.gforge.inria.fr/isl-0.14.tar.gz) and add it to your crosstool-NG/.build/tarballs directory

I have added (https://web.archive.org/web/20210701145459/http://isl.gforge.inria.fr/isl-0.14.tar.gz) to .build but still fails
image

@adolf-wv
Copy link

Any ideas on how can we poke people about http://isl.gforge.inria.fr/ being down?

You can use wayback machine to fetch the isl library until the site comes back up (https://web.archive.org/web/20210701145459/http://isl.gforge.inria.fr/isl-0.14.tar.gz) and add it to your crosstool-NG/.build/tarballs directory

I have added (https://web.archive.org/web/20210701145459/http://isl.gforge.inria.fr/isl-0.14.tar.gz) to .build but still fails image

According to your screenshot, it seems your build is looking for isl-0.20 so make sure to add the isl-0.20.tar.gz (https://web.archive.org/web/20210812215849/http://isl.gforge.inria.fr:80/isl-0.20.tar.gz) instead of the isl-0.14.tar.gz that you added.

@mateusmsantin
Copy link

Here is giving the following error. Any ideia?

#13 12.33 ./ct-ng build
#13 12.33 make[2]: Entering directory '/build/esp-open-sdk/crosstool-NG'
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20211020.223736
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_isl_get[scripts/build/companion_libs/121-isl.sh@16]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@591]
[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-66-ga4286b8c/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 4:33.20)
[04:33] / make[2]: *** [ct-ng:152: build] Error 1
#13 285.6 make[2]: Leaving directory '/build/esp-open-sdk/crosstool-NG'
#13 285.6 make[1]: *** [../Makefile:139: _toolchain] Error 2
#13 285.6 make[1]: Leaving directory '/build/esp-open-sdk/crosstool-NG'
#13 285.6 make: *** [Makefile:131: crosstool-NG/.built] Error 2
------
executor failed running [/bin/sh -c su docker -c "     git clone --recursive https://github.com/pfalcon/esp-open-sdk.git /build/esp-open-sdk ;     cd /build/esp-open-sdk ;     rm -rf ./crosstool-NG ;     git clone --recursive https://github.com/jcmvbkbc/crosstool-NG.git ;     cd /build/esp-open-sdk/crosstool-NG ;     ls ;     mkdir .build ;     cd .build ;     mkdir tarballs ;     cd tarballs ;     wget https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz ;     cd /build/esp-open-sdk ;     make STANDALONE=n ; "]: exit code: 2

@CRImier
Copy link

CRImier commented Oct 21, 2021

Had errors with both isl and expat. From esp-open-sdk dir, did this (after a failed make):

cd crosstool-NG/.build/tarballs
wget https://libisl.sourceforge.io/isl-0.14.tar.gz
wget https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
cd -
make

Seems to be compiling successfully now.

@CRImier
Copy link

CRImier commented Oct 21, 2021

Also had to do

mkdir /tmp/tmpbin && ln -s /usr/bin/python2.7 /tmp/tmpbin/python && export PATH=/tmp/tmpbin:${PATH}

from #339 to make it work, since my system already symlinks python3 to python.

@marc-hb
Copy link

marc-hb commented Nov 12, 2021

https://libisl.sourceforge.io/ seems to be indeed the new, official ISL site.

In case it ever goes down too or moves again, gcc is mirroring the old ISL versions it depends on:
https://gcc.gnu.org/install/prerequisites.html
https://gcc.gnu.org/pub/gcc/infrastructure/
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=contrib/download_prerequisites;h=11c283ecb1aab88;hb=HEAD

A local mirror is how every project should isolate itself from external downtimes.

@ChrisMacGregor
Copy link

ChrisMacGregor commented Jan 12, 2022

I also ran into the isl & expat download issues, and then a couple of other issues that needed patches. The end result (which gets me a clean build on Ubuntu 21.10 of an apparently working toolchain) can be found here:

#391
https://github.com/ChrisMacGregor/esp-open-sdk/tree/builds-on-Ubuntu-21.10
Tarball of built toolchain: https://github.com/ChrisMacGregor/esp-open-sdk/releases/tag/builds-on-Ubuntu-21.10

@Jibun-no-Kage
Copy link

Jibun-no-Kage commented Aug 14, 2022

Anyone address this to the above kludges are not needed?

@astuaTEC
Copy link

Had errors with both isl and expat. From esp-open-sdk dir, did this (after a failed make):

cd crosstool-NG/.build/tarballs
wget https://libisl.sourceforge.io/isl-0.14.tar.gz
wget https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
cd -
make

Seems to be compiling successfully now.

Now (03/2023) you need to use these links:

cd crosstool-ng/.build/tarballs
wget https://libisl.sourceforge.io/isl-0.20.tar.gz
wget https://github.com/libexpat/libexpat/releases/download/R_2_2_6/expat-2.2.6.tar.bz2
cd -
make
./ct-ng build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests