Comments (8)
Alternately, a fork with the minimal set of changes to get 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
A maintained fork with more-current versions of things, such as https://github.com/esp-open-sdk/esp-open-sdk or https://github.com/someburner/esp-open-sdk, may be a better option. I'm offering this minimally-tweaked option for those who prefer that, or for comparison purposes if for some reason the newer tools don't work for you, or whatever.
from esp-open-sdk.
build.log:
[DEBUG] Not at this location: "http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.zip"
[DEBUG] Trying 'http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0'
[DEBUG] ==> Executing: 'wget' '--passive-ftp' '--tries=3' '-nc' '--progress=dot:binary' '-T' '10' '-O' '/home/test/esp-open-sdk/crosstool-NG/.build/tarballs/expat-2.1.0.tmp-dl' 'http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0'
[ALL ] --2021-08-24 10:54:35-- http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0
[ALL ] Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105
[ALL ] Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:80... connected.
[ALL ] HTTP request sent, awaiting response... 404 Not Found
[ALL ] 2021-08-24 10:54:35 ERROR 404: Not Found.
[ALL ]
[DEBUG] Not at this location: "http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0"
[ERROR]
from esp-open-sdk.
looks like they renamed the file:
https://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0-RENAMED-VULNERABLE-PLEASE-USE-2.3.0-INSTEAD.tar.gz/download
from esp-open-sdk.
The following patch changes the expat version to 2.4.1 as suggested by bitninja at https://forum.micropython.org/viewtopic.php?f=16&t=11188.
--- a/crosstool-NG/config/companion_libs/expat.in
+++ b/crosstool-NG/config/companion_libs/expat.in
@@ -6,9 +6,9 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
-config EXPAT_V_2_1_0
+config EXPAT_V_2_4_1
bool
- prompt "2.1.0"
+ prompt "2.4.1"
endchoice
@@ -16,4 +16,4 @@ config EXPAT_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
- default "2.1.0" if EXPAT_V_2_1_0
+ default "2.4.1" if EXPAT_V_2_4_1
Save the snippet as ~/patchfile
, cd esp-open-sdk
and patch -p1 < patchfile
.
This patch should be applied beforemake
runs the bootstrap command in crosstool-NG to ensure the generated scripts are all built with the new settings from expat.in. It works for me if I apply the patch on a freshly cloned folder before I run make
.
from esp-open-sdk.
Could we integrate this into the next release?
from esp-open-sdk.
@mrx23dot you may want to use this fork.
from esp-open-sdk.
Thanks - I've been experimenting with different forks - but that one looks nice and complete.
from esp-open-sdk.
I used your folk on Ubuntu22.04.
But i got this error:
[INFO ] Installing cross-gdb
[ERROR] configure: error: failure running python-config --includes
[ERROR] gmake[4]: *** [Makefile:8725: configure-gdb] Error 1
[ERROR] gmake[3]: *** [Makefile:845: all] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing cross-gdb'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR] >> called from: do_debug[scripts/build/debug.sh@35]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@646]
[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-60-g37b07f6f-dirty/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 28:25.61)
Your fork is the best I've tried.
gcc is ready.
$ ./xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc --version
xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6f-dirty) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from esp-open-sdk.
Related Issues (20)
- hi! when executing a command: Make ---> Makefile:74: recipe execution error for the target «image.elf.bin» (Ubuntu 16.04 x32, Python 2.7.12, Nodemcu esp8266) HOT 2
- when executing a command: Make (Ubuntu 16.04 x32, Python 2.7.12, Nodemcu esp8266)
- Request to add Support for SDK 3.0.2 HOT 2
- gcc: error: unrecognized command line option '-mlongcalls' HOT 2
- Q: Is Canadian Cross supported? HOT 2
- Cannot compile on openSUSE, could not find curses header HOT 2
- Flash doesn't work for esp-12
- failed to build it in MacOS HOT 11
- esp-open-sdk uses crosstools-NG that recognizes versions of bash only up to 4.x HOT 7
- Toolchain generation for 1.5.4 NONOS SDK HOT 2
- Does not work with Xcode 12 HOT 1
- make build error (local-patches/gcc/4.8.5/) HOT 1
- Make error: Expat-2.1.0 renamed on sourceforge HOT 4
- i can't install isl 0.14 HOT 9
- . HOT 10
- Compilation error due to non case-sensitivity on Msys2/MinGW32
- PLEASE UPDATE INSTRUCTIONS FOR PYTHON3 HOT 5
- Linker can't find these libraries after a successful compilation HOT 1
- Updates steps required to build in Raspberry Pi (Debian 12)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-open-sdk.