Skip to content

Commit

Permalink
c.2,make,perl6,ocaml,objpascal: update to ubuntu:24.04
Browse files Browse the repository at this point in the history
c.2:
    By updating to 24.04 we get around an error with declarations after
    labels which is allowed in more recent compiler versions.

make:
    With older make, the newer make code results in this error:
    ../make/readline.mk:13: *** unterminated call to function 'eval': missing ')'.  Stop.

    Newer versions of make work fine.

perl6:
    With older rakudo, this error occurs:
        user> (let* (DEBUG-EVAL false) (- 3 1))
        Cannot resolve caller Numeric(types::MalFalse: ); none of these signatures match:

ocaml:
    Fixes build error that happens with older versions of ocaml:
        ocamlopt -a types.ml reader.ml printer.ml env.ml core.ml -o mal_lib.cmxa
        File "env.ml", line 15, characters 8-21:
        Error: Unbound value Data.find_opt

objpascal:
    With older compiler, the following error occurs:
        user> (apply str (seq "this is a test"))
        *** Error in `../objpascal/stepA_mal': corrupted size vs. prev_size: 0x000000000246c360 ***
  • Loading branch information
kanaka committed Aug 5, 2024
1 parent a60581e commit a0fe8e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 26 deletions.
8 changes: 3 additions & 5 deletions impls/c.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:bionic
FROM ubuntu:24.04
MAINTAINER Duncan Watts <[email protected]>

##########################################################
Expand All @@ -9,10 +9,8 @@ MAINTAINER Duncan Watts <[email protected]>
RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python

# Some typical implementation and test requirements
#RUN apt-get -y install curl
RUN apt-get -y install make python3
RUN ln -fs /usr/bin/python3 /usr/local/bin/python

RUN mkdir -p /mal
WORKDIR /mal
Expand Down
5 changes: 3 additions & 2 deletions impls/make/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -9,7 +9,8 @@ MAINTAINER Joel Martin <[email protected]>
RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python
RUN apt-get -y install make python3
RUN ln -fs /usr/bin/python3 /usr/local/bin/python

# Some typical implementation and test requirements
RUN apt-get -y install curl libreadline-dev libedit-dev
Expand Down
5 changes: 3 additions & 2 deletions impls/objpascal/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -9,7 +9,8 @@ MAINTAINER Joel Martin <[email protected]>
RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python
RUN apt-get -y install make python3
RUN ln -fs /usr/bin/python3 /usr/local/bin/python

# Some typical implementation and test requirements
RUN apt-get -y install curl libreadline-dev libedit-dev
Expand Down
5 changes: 3 additions & 2 deletions impls/ocaml/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:xenial
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -9,7 +9,8 @@ MAINTAINER Joel Martin <[email protected]>
RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python
RUN apt-get -y install make python3
RUN ln -fs /usr/bin/python3 /usr/local/bin/python

# Some typical implementation and test requirements
RUN apt-get -y install curl libreadline-dev libedit-dev
Expand Down
19 changes: 4 additions & 15 deletions impls/perl6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:vivid
FROM ubuntu:24.04
MAINTAINER Joel Martin <[email protected]>

##########################################################
Expand All @@ -9,10 +9,8 @@ MAINTAINER Joel Martin <[email protected]>
RUN apt-get -y update

# Required for running tests
RUN apt-get -y install make python

# Some typical implementation and test requirements
RUN apt-get -y install curl libreadline-dev libedit-dev
RUN apt-get -y install make python3
RUN ln -fs /usr/bin/python3 /usr/local/bin/python

RUN mkdir -p /mal
WORKDIR /mal
Expand All @@ -22,13 +20,4 @@ WORKDIR /mal
##########################################################

# Perl6 build deps
RUN apt-get -y install libfile-copy-recursive-perl build-essential git

RUN curl -O http://rakudo.org/downloads/star/rakudo-star-2016.07.tar.gz && \
tar xzf rakudo-star-2016.07.tar.gz && \
cd rakudo-star-2016.07 && \
perl Configure.pl --prefix=/usr --gen-moar --gen-nqp --backends=moar && \
make && \
make install && \
cd .. && \
rm -rf rakudo-star-2016.07*
RUN apt-get -y install rakudo

0 comments on commit a0fe8e4

Please sign in to comment.