Skip to content

Older gcc/newlib no longer available from devkitpro.org (404 errors when running build-devkit.sh) #3

@benryves

Description

@benryves

devkitpro.org no longer hosts gcc-8.3.0.tar.xz or newlib-1.20.0.tar.gz, resulting in 404 errors when attempting to run build-devkit.sh

Fortunately there is a patch for the later gcc 9.1.0 but that's not hosted there either! However the installer will check for a copy of the archive in the working directory before downloading, so downloading and copying the archives there first seems to work.

I was also unable to check out the Git repositories via the git:// URIs, however changing these to https:// got things working.

To summarise:

  1. Edit build-devkit.sh and change the git:// URIs to https:// ones in the gitrepos=... lines.
  2. Edit select_toolchain.sh and change GCC_VER=8.3.0 to GCC_VER=9.1.0 in the "4" ) case near the bottom of the file.
  3. Before running build-devkit.sh download gcc 9.1.0 and newlib 1.20.0 with
wget https://ftp.gnu.org/gnu/gcc/gcc-9.1.0/gcc-9.1.0.tar.xz
wget ftp://sourceware.org/pub/newlib/newlib-1.20.0.tar.gz
  1. Run build-devkit.sh and hopefully have success!

I did run into a further complication with an "'aclocal-1.15' is missing on your system" error message when trying to build the tools which I don't fully understand. However, entering

cd .devkitSH4/elf2d01-master
autoreconf -f -i
touch aclocal.m4 configure
cd ../..

...and re-running build-devkit.sh managed to build the tools successfully..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions