On 28 April 2015 at 07:00, Timo Sintonen via D.gnu <d.gnu@puremagic.com> wrote:
> People have been asking a build script Here is one I have
> written. This was originally ment to build gdc in a virtual
> machine but I did not get this to work in a vm. There were always
> missing something or some issues like 32/64 bit mismatch.
>
> This script gets the current head of gdc, loads the required gcc
> version, pacthes it and configures for ARM. In addition, a file
> to put in t-arm-elf is needed.
>
> If you like, please test and report. If this is useful we may
> then put this to wiki.
>
> ----8<----
>
> #!/bin/bash
>
> # This script compiles and installs tgdc
>
> # Additional programs. Usually they are already installed but
> # a virtual machine does not have these.
> sudo apt-get install gcc g++ git libgmp-dev libmpfr-dev
> libmpc-dev \
>   binutils-dev flex
>

As an alternative (or if for some reason you are running an older OS),
rather than installing libgmp/mpfr/mpc through the repositories, you
can use ./contrib/download_prerequisites script in gcc sources.

https://github.com/ibuclaw/docker-gdc/blob/2fc174504a952aee9ab8f7285fb2cd5f1a9a90d8/5.0/Dockerfile


Iain.

Reply via email to