You are not logged in.
Pages: 1
i'm trying to build the esp-open-sdk but it says my bash is outdated:
checking for bash >= 3.1... no
configure: error: could not find bash >= 3.1
make[1]: *** [../Makefile:143: _ct-ng] Error 1
make[1]: Leaving directory '/home/badbob/esp8266/esp-open-sdk-git/src/esp-open-sdk/crosstool-NG'
make: *** [Makefile:139: crosstool-NG/ct-ng] Error 2
==> ERROR: A failure occurred in build().
Aborting...
obviously i have bash and is newer that 3.1:
100% 12:44 ~ > which bash
/usr/bin/bash
100% 12:45 ~ > bash --version
GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
i've done this before on this same computer running arch without this problem... i'm stumped
Last edited by badbob (2019-02-19 19:29:43)
Offline
Welcome to the arch linux forums badbob. What is the contents of config.log probably in /home/badbob/esp8266/esp-open-sdk-git/src/esp-open-sdk/crosstool-NG ?
Edit:
https://github.com/jcmvbkbc/crosstool-N … 9c6cf10ae5
Last edited by loqs (2019-02-19 18:01:09)
Offline
thanks for having me. can't remeber the last time i posted on the internet; i can always find someone else asking the same question i have.
anyway it's working now . i simply added the 5 to this line in configure.ac:
[[_BASH_ver=$($ac_path__BASH --version 2>&1 \
|$EGREP '^GNU bash, version (3\.[1-9]|4)')
thanks a bunch!
Offline
Please consider leaving a message on the AUR package page about the issue and reporting it upstream at https://github.com/pfalcon/esp-open-sdk/issues
Offline
The crosstool-ng project's configure.ac will try to search for bash "at least 3.1" using the following rule:
bash --version | egrep '^GNU bash, version (3\.[1-9]|4)'
This inaccurate heuristic match misses bash 5. It was recently (14 days ago) amended to match "5" as well: https://github.com/jcmvbkbc/crosstool-NG/pull/56
The package you are trying to build, includes a submodule for crosstool-ng that is from 2017.
I'll leave you to draw your own conclusions on where the problem lies, and also about how reliable this package is.
I'm nevertheless baffled why crosstool-ng does not use pkg-config instead of grep. Or even do proper arithmetic:
BVER="$(bash -c 'echo "${BASH_VERSION%%.*}"')"
[ "${BVER%%.*" -gt 3 ]
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Pages: 1