libelf linkrot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
I followed the build instructions for the latest release:
```
$ wget https:/
$ tar xf gcc-arm-
$ cd gcc-arm-
./install-
```
This runs for a while but dies (with no explanation)
```
+ for prereq in '$PREREQS'
+ '[' -z 'ENV_VAR_UPDATE PYTHON_WIN' -a no = yes ']'
+ eval 'prereq_
++ prereq_
+ '[' '!' -f libelf-
+ eval 'prereq_
++ prereq_url=http://
+ wget -q http://
```
The reason turns out to be: mr511.de has gone offline with no obvious redirect or mirror.
brew is (planning to) fix(ed) this by using archive.org: https:/
I applied the same basic patch to your build scripts and was able to run `./install-
```
--- build-common.sh.1 2019-05-17 10:21:55.000000000 -0400
+++ build-common.sh 2019-05-16 20:05:44.000000000 -0400
@@ -299,7 +299,7 @@
MPC_URL=ftp://ftp.
ISL_URL=http://
EXPAT_URL=https:/
-LIBELF_URL=http://
+LIBELF_URL=https:/
LIBICONV_URL=https:/
ZLIB_URL=http://
ENV_VAR_
```
With this failing --- or if you were just trying to do a build on an offline machine --- the build scripts fail to unpack the main sources breaking the entire build. I have libelf installed independently via brew already---I don't need gcc to reinstall it for me It would be an improvement if the build scripts unpacked the local sources (newlib.tar.gz, gdb.tar.gz, gcc.tar.gz, binutils.tar.gz) before trying to download anything.