-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
387 additions
and
387 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
build/ | ||
build-*/ | ||
gcc-*/ | ||
sources/ | ||
build/ | ||
build-*/ | ||
gcc-*/ | ||
sources/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
all: | ||
docker compose up -d --build | ||
|
||
clean: | ||
rm -rf build/ | ||
|
||
.PHONY: all | ||
all: | ||
docker compose up -d --build | ||
|
||
clean: | ||
rm -rf build/ | ||
|
||
.PHONY: all |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Old GCC | ||
|
||
Run `VERSION=2.7.2.2 make` to build an old version of GCC. | ||
|
||
Currently, all the builds will target the `mipsel` architecture. | ||
# Old GCC | ||
|
||
Run `VERSION=2.7.2.2 make` to build an old version of GCC. | ||
|
||
Currently, all the builds will target the `mipsel` architecture. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
version: '3' | ||
services: | ||
gcc: | ||
build: | ||
context: . | ||
dockerfile: gcc-${VERSION}.Dockerfile | ||
container_name: gcc | ||
volumes: | ||
- ./build-gcc-${VERSION}:/build | ||
version: '3' | ||
services: | ||
gcc: | ||
build: | ||
context: . | ||
dockerfile: gcc-${VERSION}.Dockerfile | ||
container_name: gcc | ||
volumes: | ||
- ./build-gcc-${VERSION}:/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://www.nic.funet.fi/index/gnu/funet/historical-funet-gnu-area-from-early-1990s/gcc-2.6.0.tar.gz | ||
RUN tar xzf gcc-2.6.0.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.0 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
|
||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.0.c.patch | ||
RUN patch -u -p1 collect2.c -i ../patches/collect2-2.6.0.c.patch | ||
RUN patch -u -p1 cccp.c -i ../patches/cccp-2.6.0.c.patch | ||
RUN patch -u -p1 gcc.c -i ../patches/gcc-2.6.0.c.patch | ||
RUN patch -u -p1 cp/g++.c -i ../patches/g++-2.6.0.c.patch | ||
|
||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -DHAVE_STRERROR" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://www.nic.funet.fi/index/gnu/funet/historical-funet-gnu-area-from-early-1990s/gcc-2.6.0.tar.gz | ||
RUN tar xzf gcc-2.6.0.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.0 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
|
||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.0.c.patch | ||
RUN patch -u -p1 collect2.c -i ../patches/collect2-2.6.0.c.patch | ||
RUN patch -u -p1 cccp.c -i ../patches/cccp-2.6.0.c.patch | ||
RUN patch -u -p1 gcc.c -i ../patches/gcc-2.6.0.c.patch | ||
RUN patch -u -p1 cp/g++.c -i ../patches/g++-2.6.0.c.patch | ||
|
||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -DHAVE_STRERROR" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz | ||
RUN tar xzf gcc-2.6.3.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.3 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch | ||
RUN patch -su -p1 < ../patches/psx.patch | ||
RUN ./configure \ | ||
--target=mips-sony-psx \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -march=i686" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz | ||
RUN tar xzf gcc-2.6.3.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.3 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch | ||
RUN patch -su -p1 < ../patches/psx.patch | ||
RUN ./configure \ | ||
--target=mips-sony-psx \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -march=i686" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz | ||
RUN tar xzf gcc-2.6.3.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.3 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz | ||
RUN tar xzf gcc-2.6.3.tar.gz | ||
|
||
WORKDIR /work/gcc-2.6.3 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips" || true | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://ftp.fibranet.cat/Linux/historic/slackware-3.0/source/d/gcc/gcc-2.7.0.tar.gz | ||
RUN tar xzf gcc-2.7.0.tar.gz | ||
|
||
WORKDIR /work/gcc-2.7.0 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 configure -i ../patches/configure.patch | ||
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--disable-gprof \ | ||
--disable-gdb \ | ||
--disable-werror \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" | ||
RUN test -f cc1 | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://ftp.fibranet.cat/Linux/historic/slackware-3.0/source/d/gcc/gcc-2.7.0.tar.gz | ||
RUN tar xzf gcc-2.7.0.tar.gz | ||
|
||
WORKDIR /work/gcc-2.7.0 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 configure -i ../patches/configure.patch | ||
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--disable-gprof \ | ||
--disable-gdb \ | ||
--disable-werror \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" | ||
RUN test -f cc1 | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/vendor/sun/freeware/SOURCES/gcc-2.7.1.tar.gz | ||
RUN tar xzf gcc-2.7.1.tar.gz | ||
|
||
WORKDIR /work/gcc-2.7.1 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 configure -i ../patches/configure.patch | ||
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--disable-gprof \ | ||
--disable-gdb \ | ||
--disable-werror \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" || true | ||
RUN test -f cc1 | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] | ||
FROM ubuntu:focal | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential gcc gcc-multilib wget | ||
|
||
WORKDIR /work | ||
RUN wget http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/vendor/sun/freeware/SOURCES/gcc-2.7.1.tar.gz | ||
RUN tar xzf gcc-2.7.1.tar.gz | ||
|
||
WORKDIR /work/gcc-2.7.1 | ||
COPY patches /work/patches | ||
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c | ||
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch | ||
RUN patch -u -p1 configure -i ../patches/configure.patch | ||
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch | ||
RUN ./configure \ | ||
--target=mips-linux-gnu \ | ||
--prefix=/opt/cross \ | ||
--with-endian-little \ | ||
--with-gnu-as \ | ||
--disable-gprof \ | ||
--disable-gdb \ | ||
--disable-werror \ | ||
--host=i386-pc-linux \ | ||
--build=i386-pc-linux | ||
|
||
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" || true | ||
RUN test -f cc1 | ||
|
||
COPY entrypoint.sh /work/ | ||
RUN chmod +x /work/entrypoint.sh | ||
CMD [ "/work/entrypoint.sh" ] |
Oops, something went wrong.