Upgrade cross-compilers to 9.2.5 to handle hashable-1.4.2.0
This commit is contained in:
parent
c05380d518
commit
b1ca3929e3
|
@ -6,15 +6,18 @@ ENV TARGETNAME darwin.x86_64
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
USER root
|
USER root
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt-get update && apt-get install -y ghc automake autoconf llvm curl
|
RUN sed -e 's/focal/kinetic/g' -i /etc/apt/sources.list
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get dist-upgrade -y
|
||||||
|
RUN apt-get install -y ghc automake autoconf llvm curl alex happy
|
||||||
|
|
||||||
# Build GHC
|
# Build GHC
|
||||||
WORKDIR /ghc
|
WORKDIR /ghc
|
||||||
RUN curl -L "https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-src.tar.xz" | tar xJ --strip-components=1
|
RUN curl -L "https://downloads.haskell.org/~ghc/9.2.5/ghc-9.2.5-src.tar.xz" | tar xJ --strip-components=1
|
||||||
RUN ./boot && ./configure --host x86_64-linux-gnu --build x86_64-linux-gnu --target "$TARGET"
|
RUN ./configure --host x86_64-linux-gnu --build x86_64-linux-gnu --target "$TARGET"
|
||||||
RUN cp mk/flavours/quick-cross.mk mk/build.mk && make -j "$(nproc)"
|
RUN cp mk/flavours/quick-cross.mk mk/build.mk && make -j "$(nproc)"
|
||||||
RUN make install
|
RUN make install
|
||||||
RUN curl -L "https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz" | tar xJv -C /usr/local/bin
|
RUN curl -L "https://downloads.haskell.org/~cabal/cabal-install-3.9.0.0/cabal-install-3.9-x86_64-linux-alpine.tar.xz" | tar xJv -C /usr/local/bin
|
||||||
|
|
||||||
# Due to an apparent cabal bug, we specify our options directly to cabal
|
# Due to an apparent cabal bug, we specify our options directly to cabal
|
||||||
# It won't reuse caches if ghc-options are specified in ~/.cabal/config
|
# It won't reuse caches if ghc-options are specified in ~/.cabal/config
|
||||||
|
|
|
@ -6,19 +6,25 @@ ENV TARGETNAME linux.aarch64
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
USER root
|
USER root
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt-get update && apt-get install -y ghc automake autoconf build-essential llvm curl qemu-user-static gcc-$TARGET
|
|
||||||
|
# These deps are from 20.04, because GHC's compiler/llvm support moves slowly
|
||||||
|
RUN apt-get update && apt-get install -y llvm gcc-$TARGET
|
||||||
|
|
||||||
|
# The rest are from 22.10
|
||||||
|
RUN sed -e 's/focal/kinetic/g' -i /etc/apt/sources.list
|
||||||
|
RUN apt-get update && apt-get install -y ghc alex happy automake autoconf build-essential curl qemu-user-static
|
||||||
|
|
||||||
# Build GHC
|
# Build GHC
|
||||||
WORKDIR /ghc
|
WORKDIR /ghc
|
||||||
RUN curl -L "https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-src.tar.xz" | tar xJ --strip-components=1
|
RUN curl -L "https://downloads.haskell.org/~ghc/9.2.5/ghc-9.2.5-src.tar.xz" | tar xJ --strip-components=1
|
||||||
RUN ./boot && ./configure --host x86_64-linux-gnu --build x86_64-linux-gnu --target "$TARGET"
|
RUN ./boot && ./configure --host x86_64-linux-gnu --build x86_64-linux-gnu --target "$TARGET"
|
||||||
RUN cp mk/flavours/quick-cross.mk mk/build.mk && make -j "$(nproc)"
|
RUN cp mk/flavours/quick-cross.mk mk/build.mk && make -j "$(nproc)"
|
||||||
RUN make install
|
RUN make install
|
||||||
RUN curl -L "https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz" | tar xJv -C /usr/local/bin
|
RUN curl -L "https://downloads.haskell.org/~cabal/cabal-install-3.9.0.0/cabal-install-3.9-x86_64-linux-alpine.tar.xz" | tar xJv -C /usr/local/bin
|
||||||
|
|
||||||
# Due to an apparent cabal bug, we specify our options directly to cabal
|
# Due to an apparent cabal bug, we specify our options directly to cabal
|
||||||
# It won't reuse caches if ghc-options are specified in ~/.cabal/config
|
# It won't reuse caches if ghc-options are specified in ~/.cabal/config
|
||||||
ENV CABALOPTS "--ghc-options;-split-sections -optc-Os -optc-Wl,--gc-sections;--with-ghc=$TARGET-ghc;--with-hc-pkg=$TARGET-ghc-pkg"
|
ENV CABALOPTS "--ghc-options;-split-sections -optc-Os -optc-Wl,--gc-sections -optc-fPIC;--with-ghc=$TARGET-ghc;--with-hc-pkg=$TARGET-ghc-pkg"
|
||||||
|
|
||||||
# Prebuild the dependencies
|
# Prebuild the dependencies
|
||||||
RUN cabal update && IFS=';' && cabal install --dependencies-only $CABALOPTS ShellCheck
|
RUN cabal update && IFS=';' && cabal install --dependencies-only $CABALOPTS ShellCheck
|
||||||
|
|
Loading…
Reference in New Issue