SpaceCowboy
SpaceCowboy

Reputation: 31

building esp-open-sdk - crosstool-NG can't find expat-2.1.0

I'm compiling the toolchain for ESP8266EX using esp-open-sdk and I get an error:

 Error happened in: do_expat_get[scripts/build/companion_libs/210-expat.sh@741]

 called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
called from: main[scripts/crosstool-NG.sh@591]

I looked in crosstool-NG/build.log and it apparently can't find expat-2.1.0 in any type of tarball (zip,tar,tar.gz, etc)

Not at this location: "http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz"
Trying 'http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.xz'

I was able to download expat-2.1.0.tar.gz from another site (fedora) but I don't see how to tell the build project to find it on disk.

Upvotes: 0

Views: 885

Answers (2)

Hawawa
Hawawa

Reputation: 131

For anyone that comes to this post in 2022: It seems like the build is failing because the servers where some dependencies were stored are down (I was getting isues with isl and expat. This github issue provides a solution:

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

I would imagine this can be modified on the original script, haven't tried it myself yet.

Upvotes: 0

SpaceCowboy
SpaceCowboy

Reputation: 31

copy the tarball: expat-2.1.0.tar.gz to crosstool-NG/.build/tarballs and re-run the build and it should compile.

Upvotes: 1

Related Questions