Created
February 2, 2021 20:43
-
-
Save jeshan/cef0b98574a893c7f59f49ac12446115 to your computer and use it in GitHub Desktop.
Gist to reproduce Ruby MRI compilation issue with Sulong
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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