Skip to content

Instantly share code, notes, and snippets.

@jeshan
Created February 2, 2021 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeshan/cef0b98574a893c7f59f49ac12446115 to your computer and use it in GitHub Desktop.
Save jeshan/cef0b98574a893c7f59f49ac12446115 to your computer and use it in GitHub Desktop.
Gist to reproduce Ruby MRI compilation issue with Sulong
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y make libedit* tree
WORKDIR /app
COPY graalvm-ce-java11-linux-amd64-21.0.0.tar.gz graalvm.tar.gz
COPY llvm-toolchain-installable-java11-linux-amd64-21.0.0.jar llvm-toolchain.jar
RUN tar zxvf graalvm.tar.gz
ENV GRAALVM_HOME /app/graalvm-ce-java11-21.0.0
RUN $GRAALVM_HOME/bin/gu install -L llvm-toolchain.jar
COPY ruby-2.7.2.tar.gz ruby.tar.gz
RUN tar zxvf ruby.tar.gz
WORKDIR ruby-2.7.2
RUN apt-get install -y clang-11 # just to get some needed libraries
RUN CC=$GRAALVM_HOME/languages/llvm/native/bin/clang ./configure
RUN make V=1 -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment