Skip to content

Commit 98230bc

Browse files
mkstXeeynamo
authored andcommitted
Fix line endings (LF not CRLF)
1 parent 5fdcd74 commit 98230bc

15 files changed

+387
-387
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
build/
2-
build-*/
3-
gcc-*/
4-
sources/
1+
build/
2+
build-*/
3+
gcc-*/
4+
sources/

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
all:
2-
docker compose up -d --build
3-
4-
clean:
5-
rm -rf build/
6-
7-
.PHONY: all
1+
all:
2+
docker compose up -d --build
3+
4+
clean:
5+
rm -rf build/
6+
7+
.PHONY: all

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Old GCC
2-
3-
Run `VERSION=2.7.2.2 make` to build an old version of GCC.
4-
5-
Currently, all the builds will target the `mipsel` architecture.
1+
# Old GCC
2+
3+
Run `VERSION=2.7.2.2 make` to build an old version of GCC.
4+
5+
Currently, all the builds will target the `mipsel` architecture.

docker-compose.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
version: '3'
2-
services:
3-
gcc:
4-
build:
5-
context: .
6-
dockerfile: gcc-${VERSION}.Dockerfile
7-
container_name: gcc
8-
volumes:
9-
- ./build-gcc-${VERSION}:/build
1+
version: '3'
2+
services:
3+
gcc:
4+
build:
5+
context: .
6+
dockerfile: gcc-${VERSION}.Dockerfile
7+
container_name: gcc
8+
volumes:
9+
- ./build-gcc-${VERSION}:/build

gcc-2.6.0.Dockerfile

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
FROM ubuntu:focal
2-
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get update
4-
RUN apt-get install -y build-essential gcc gcc-multilib wget
5-
6-
WORKDIR /work
7-
RUN wget http://www.nic.funet.fi/index/gnu/funet/historical-funet-gnu-area-from-early-1990s/gcc-2.6.0.tar.gz
8-
RUN tar xzf gcc-2.6.0.tar.gz
9-
10-
WORKDIR /work/gcc-2.6.0
11-
COPY patches /work/patches
12-
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13-
14-
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
15-
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.0.c.patch
16-
RUN patch -u -p1 collect2.c -i ../patches/collect2-2.6.0.c.patch
17-
RUN patch -u -p1 cccp.c -i ../patches/cccp-2.6.0.c.patch
18-
RUN patch -u -p1 gcc.c -i ../patches/gcc-2.6.0.c.patch
19-
RUN patch -u -p1 cp/g++.c -i ../patches/g++-2.6.0.c.patch
20-
21-
RUN ./configure \
22-
--target=mips-linux-gnu \
23-
--prefix=/opt/cross \
24-
--with-endian-little \
25-
--with-gnu-as \
26-
--host=i386-pc-linux \
27-
--build=i386-pc-linux
28-
29-
RUN make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -DHAVE_STRERROR" || true
30-
31-
COPY entrypoint.sh /work/
32-
RUN chmod +x /work/entrypoint.sh
33-
CMD [ "/work/entrypoint.sh" ]
1+
FROM ubuntu:focal
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential gcc gcc-multilib wget
5+
6+
WORKDIR /work
7+
RUN wget http://www.nic.funet.fi/index/gnu/funet/historical-funet-gnu-area-from-early-1990s/gcc-2.6.0.tar.gz
8+
RUN tar xzf gcc-2.6.0.tar.gz
9+
10+
WORKDIR /work/gcc-2.6.0
11+
COPY patches /work/patches
12+
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13+
14+
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
15+
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.0.c.patch
16+
RUN patch -u -p1 collect2.c -i ../patches/collect2-2.6.0.c.patch
17+
RUN patch -u -p1 cccp.c -i ../patches/cccp-2.6.0.c.patch
18+
RUN patch -u -p1 gcc.c -i ../patches/gcc-2.6.0.c.patch
19+
RUN patch -u -p1 cp/g++.c -i ../patches/g++-2.6.0.c.patch
20+
21+
RUN ./configure \
22+
--target=mips-linux-gnu \
23+
--prefix=/opt/cross \
24+
--with-endian-little \
25+
--with-gnu-as \
26+
--host=i386-pc-linux \
27+
--build=i386-pc-linux
28+
29+
RUN make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -DHAVE_STRERROR" || true
30+
31+
COPY entrypoint.sh /work/
32+
RUN chmod +x /work/entrypoint.sh
33+
CMD [ "/work/entrypoint.sh" ]

gcc-2.6.3-psx.Dockerfile

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
FROM ubuntu:focal
2-
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get update
4-
RUN apt-get install -y build-essential gcc gcc-multilib wget
5-
6-
WORKDIR /work
7-
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz
8-
RUN tar xzf gcc-2.6.3.tar.gz
9-
10-
WORKDIR /work/gcc-2.6.3
11-
COPY patches /work/patches
12-
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13-
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14-
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch
15-
RUN patch -su -p1 < ../patches/psx.patch
16-
RUN ./configure \
17-
--target=mips-sony-psx \
18-
--prefix=/opt/cross \
19-
--with-endian-little \
20-
--with-gnu-as \
21-
--host=i386-pc-linux \
22-
--build=i386-pc-linux
23-
24-
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -march=i686" || true
25-
26-
COPY entrypoint.sh /work/
27-
RUN chmod +x /work/entrypoint.sh
28-
CMD [ "/work/entrypoint.sh" ]
1+
FROM ubuntu:focal
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential gcc gcc-multilib wget
5+
6+
WORKDIR /work
7+
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz
8+
RUN tar xzf gcc-2.6.3.tar.gz
9+
10+
WORKDIR /work/gcc-2.6.3
11+
COPY patches /work/patches
12+
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13+
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14+
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch
15+
RUN patch -su -p1 < ../patches/psx.patch
16+
RUN ./configure \
17+
--target=mips-sony-psx \
18+
--prefix=/opt/cross \
19+
--with-endian-little \
20+
--with-gnu-as \
21+
--host=i386-pc-linux \
22+
--build=i386-pc-linux
23+
24+
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips -march=i686" || true
25+
26+
COPY entrypoint.sh /work/
27+
RUN chmod +x /work/entrypoint.sh
28+
CMD [ "/work/entrypoint.sh" ]

gcc-2.6.3.Dockerfile

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
FROM ubuntu:focal
2-
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get update
4-
RUN apt-get install -y build-essential gcc gcc-multilib wget
5-
6-
WORKDIR /work
7-
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz
8-
RUN tar xzf gcc-2.6.3.tar.gz
9-
10-
WORKDIR /work/gcc-2.6.3
11-
COPY patches /work/patches
12-
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13-
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14-
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch
15-
RUN ./configure \
16-
--target=mips-linux-gnu \
17-
--prefix=/opt/cross \
18-
--with-endian-little \
19-
--with-gnu-as \
20-
--host=i386-pc-linux \
21-
--build=i386-pc-linux
22-
23-
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips" || true
24-
25-
COPY entrypoint.sh /work/
26-
RUN chmod +x /work/entrypoint.sh
27-
CMD [ "/work/entrypoint.sh" ]
1+
FROM ubuntu:focal
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential gcc gcc-multilib wget
5+
6+
WORKDIR /work
7+
RUN wget https://mirrors.slackware.com/slackware/slackware-2.2.0/source/d/gcc/gcc-2.6.3.tar.gz
8+
RUN tar xzf gcc-2.6.3.tar.gz
9+
10+
WORKDIR /work/gcc-2.6.3
11+
COPY patches /work/patches
12+
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13+
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14+
RUN patch -u -p1 sdbout.c -i ../patches/sdbout-2.6.3.c.patch
15+
RUN ./configure \
16+
--target=mips-linux-gnu \
17+
--prefix=/opt/cross \
18+
--with-endian-little \
19+
--with-gnu-as \
20+
--host=i386-pc-linux \
21+
--build=i386-pc-linux
22+
23+
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static -Dbsd4_4 -Dmips" || true
24+
25+
COPY entrypoint.sh /work/
26+
RUN chmod +x /work/entrypoint.sh
27+
CMD [ "/work/entrypoint.sh" ]

gcc-2.7.0.Dockerfile

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
FROM ubuntu:focal
2-
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get update
4-
RUN apt-get install -y build-essential gcc gcc-multilib wget
5-
6-
WORKDIR /work
7-
RUN wget http://ftp.fibranet.cat/Linux/historic/slackware-3.0/source/d/gcc/gcc-2.7.0.tar.gz
8-
RUN tar xzf gcc-2.7.0.tar.gz
9-
10-
WORKDIR /work/gcc-2.7.0
11-
COPY patches /work/patches
12-
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13-
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14-
RUN patch -u -p1 configure -i ../patches/configure.patch
15-
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch
16-
RUN ./configure \
17-
--target=mips-linux-gnu \
18-
--prefix=/opt/cross \
19-
--with-endian-little \
20-
--with-gnu-as \
21-
--disable-gprof \
22-
--disable-gdb \
23-
--disable-werror \
24-
--host=i386-pc-linux \
25-
--build=i386-pc-linux
26-
27-
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static"
28-
RUN test -f cc1
29-
30-
COPY entrypoint.sh /work/
31-
RUN chmod +x /work/entrypoint.sh
32-
CMD [ "/work/entrypoint.sh" ]
1+
FROM ubuntu:focal
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential gcc gcc-multilib wget
5+
6+
WORKDIR /work
7+
RUN wget http://ftp.fibranet.cat/Linux/historic/slackware-3.0/source/d/gcc/gcc-2.7.0.tar.gz
8+
RUN tar xzf gcc-2.7.0.tar.gz
9+
10+
WORKDIR /work/gcc-2.7.0
11+
COPY patches /work/patches
12+
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13+
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14+
RUN patch -u -p1 configure -i ../patches/configure.patch
15+
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch
16+
RUN ./configure \
17+
--target=mips-linux-gnu \
18+
--prefix=/opt/cross \
19+
--with-endian-little \
20+
--with-gnu-as \
21+
--disable-gprof \
22+
--disable-gdb \
23+
--disable-werror \
24+
--host=i386-pc-linux \
25+
--build=i386-pc-linux
26+
27+
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static"
28+
RUN test -f cc1
29+
30+
COPY entrypoint.sh /work/
31+
RUN chmod +x /work/entrypoint.sh
32+
CMD [ "/work/entrypoint.sh" ]

gcc-2.7.1.Dockerfile

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
FROM ubuntu:focal
2-
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get update
4-
RUN apt-get install -y build-essential gcc gcc-multilib wget
5-
6-
WORKDIR /work
7-
RUN wget http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/vendor/sun/freeware/SOURCES/gcc-2.7.1.tar.gz
8-
RUN tar xzf gcc-2.7.1.tar.gz
9-
10-
WORKDIR /work/gcc-2.7.1
11-
COPY patches /work/patches
12-
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13-
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14-
RUN patch -u -p1 configure -i ../patches/configure.patch
15-
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch
16-
RUN ./configure \
17-
--target=mips-linux-gnu \
18-
--prefix=/opt/cross \
19-
--with-endian-little \
20-
--with-gnu-as \
21-
--disable-gprof \
22-
--disable-gdb \
23-
--disable-werror \
24-
--host=i386-pc-linux \
25-
--build=i386-pc-linux
26-
27-
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" || true
28-
RUN test -f cc1
29-
30-
COPY entrypoint.sh /work/
31-
RUN chmod +x /work/entrypoint.sh
32-
CMD [ "/work/entrypoint.sh" ]
1+
FROM ubuntu:focal
2+
ENV DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update
4+
RUN apt-get install -y build-essential gcc gcc-multilib wget
5+
6+
WORKDIR /work
7+
RUN wget http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/vendor/sun/freeware/SOURCES/gcc-2.7.1.tar.gz
8+
RUN tar xzf gcc-2.7.1.tar.gz
9+
10+
WORKDIR /work/gcc-2.7.1
11+
COPY patches /work/patches
12+
RUN sed -i -- 's/include <varargs.h>/include <stdarg.h>/g' *.c
13+
RUN patch -u -p1 obstack.h -i ../patches/obstack-2.7.2.h.patch
14+
RUN patch -u -p1 configure -i ../patches/configure.patch
15+
RUN patch -u -p1 config.sub -i ../patches/config.sub.patch
16+
RUN ./configure \
17+
--target=mips-linux-gnu \
18+
--prefix=/opt/cross \
19+
--with-endian-little \
20+
--with-gnu-as \
21+
--disable-gprof \
22+
--disable-gdb \
23+
--disable-werror \
24+
--host=i386-pc-linux \
25+
--build=i386-pc-linux
26+
27+
RUN make -j cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static" || true
28+
RUN test -f cc1
29+
30+
COPY entrypoint.sh /work/
31+
RUN chmod +x /work/entrypoint.sh
32+
CMD [ "/work/entrypoint.sh" ]

0 commit comments

Comments
 (0)