Skip to content

Commit 0aab5b0

Browse files
committed
Upgrading gcc/gdb.
1 parent 9966742 commit 0aab5b0

File tree

6 files changed

+57
-26
lines changed

6 files changed

+57
-26
lines changed

tools/linux-mips/spawn-compiler.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ make
2121
make install-strip
2222
cd ..
2323

24-
wget https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.gz
25-
tar xvfz gcc-13.2.0.tar.gz
26-
cd gcc-13.2.0
24+
wget https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.gz
25+
tar xvfz gcc-14.1.0.tar.gz
26+
cd gcc-14.1.0
2727
./contrib/download_prerequisites
2828
mkdir build
2929
cd build

tools/macos-mips/mipsel-none-elf-gcc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class MipselNoneElfGcc < Formula
22
desc "The GNU compiler collection for mipsel"
33
homepage "https://gcc.gnu.org"
4-
url "https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz"
5-
sha256 "e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
4+
url "https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz"
5+
sha256 "e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840"
66

77
depends_on "gmp"
88
depends_on "mipsel-none-elf-binutils"

tools/vscode-extension/scripts/mipsel-none-elf-gcc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class MipselNoneElfGcc < Formula
22
desc "The GNU compiler collection for mipsel"
33
homepage "https://gcc.gnu.org"
4-
url "https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz"
5-
sha256 "e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
4+
url "https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz"
5+
sha256 "e283c654987afe3de9d8080bc0bd79534b5ca0d681a73a11ff2b5d3767426840"
66

77
depends_on "gmp"
88
depends_on "mipsel-none-elf-binutils"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class MipselNoneElfGdb < Formula
2+
desc "GDB: The GNU Project Debugger compiled for Mips"
3+
homepage "https://sourceware.org/gdb/"
4+
url "https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz"
5+
sha256 "2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772"
6+
7+
# inspired by https://github.com/orgs/Homebrew/discussions/1114#discussioncomment-8863715
8+
9+
depends_on "texinfo" => :build
10+
depends_on "gmp"
11+
depends_on "mpfr"
12+
depends_on "python@3.10"
13+
14+
def install
15+
mkdir "mipsel-none-elf-gdb-build" do
16+
system "../configure", "--target=mipsel-none-elf",
17+
"--prefix=#{prefix}",
18+
"--enable-tui=yes",
19+
"--without-isl",
20+
"--disable-werror"
21+
system "make"
22+
system "make", "install"
23+
end
24+
end
25+
26+
# not sure what to test...
27+
# test do
28+
# assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv")
29+
# end
30+
31+
end

tools/win32-gdb/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# escape=`
22

3-
# Dockerfile to generate the Windows gdb-multiarch-14.1.zip package.
3+
# Dockerfile to generate the Windows gdb-multiarch-14.2.zip package.
44

55
FROM mcr.microsoft.com/windows/servercore:ltsc2022
66
WORKDIR C:\windows\temp
@@ -45,23 +45,23 @@ RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x
4545
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x86_64-python mingw-w64-x86_64-readline'
4646
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -Scc --noconfirm'
4747

48-
ARG GDB=https://ftp.gnu.org/gnu/gdb/gdb-14.1.tar.xz
48+
ARG GDB=https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz
4949

5050
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
51-
Invoke-WebRequest $env:GDB -OutFile "C:\Windows\Temp\gdb-14.1.tar.xz"; `
52-
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gdb-14.1.tar.xz", `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
53-
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gdb-14.1.tar", `-oC:\ -NoNewWindow -PassThru -Wait; `
51+
Invoke-WebRequest $env:GDB -OutFile "C:\Windows\Temp\gdb-14.2.tar.xz"; `
52+
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gdb-14.2.tar.xz", `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
53+
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gdb-14.2.tar", `-oC:\ -NoNewWindow -PassThru -Wait; `
5454
Remove-Item @('C:\Windows\Temp\*', 'C:\Users\*\Appdata\Local\Temp\*') -Force -Recurse;
5555

5656
ENV MSYSTEM MINGW64
5757

58-
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /BUILD && cd /BUILD && /c/gdb-14.1/configure --disable-gdbtk --disable-shared --disable-readline --with-system-readline --with-expat --with-system-zlib --without-guile --without-babeltrace --enable-tui --with-lzma --without-python --with-xxhash --with-mpfr=/mingw64 --enable-64-bit-bfd --enable-targets=all --disable-sim --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
58+
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /BUILD && cd /BUILD && /c/gdb-14.2/configure --disable-gdbtk --disable-shared --disable-readline --with-system-readline --with-expat --with-system-zlib --without-guile --without-babeltrace --enable-tui --with-lzma --without-python --with-xxhash --with-mpfr=/mingw64 --enable-64-bit-bfd --enable-targets=all --disable-sim --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
5959

6060
RUN C:\msys64\usr\bin\bash.exe -l -c 'LOADLIBES=-lws2_32\ -lbcrypt make -C /BUILD all'
6161
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /BUILD install-strip'
6262
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST/bin && ldd *.exe | cut -f2 -d\> | cut -f2 -d\ | grep mingw64 | while read f ; do cp $f . ; done'
63-
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/gdb-14.1/COPYING* /DIST'
63+
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/gdb-14.2/COPYING* /DIST'
6464
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /DIST/bin/gdb.exe /DIST/bin/gdb-multiarch.exe'
65-
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/gdb-multiarch-14.1.zip . -r'
65+
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/gdb-multiarch-14.2.zip . -r'
6666

6767
CMD C:\msys64\usr\bin\bash.exe -l

tools/win32-mips/Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# escape=`
22

3-
# Dockerfile to generate the Windows g++-mipsel-none-elf-13.2.0.zip package.
3+
# Dockerfile to generate the Windows g++-mipsel-none-elf-14.1.0.zip package.
44

55
FROM mcr.microsoft.com/windows/servercore:ltsc2019
66
WORKDIR C:\windows\temp
@@ -46,7 +46,7 @@ RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x
4646
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -Scc --noconfirm'
4747

4848
ARG BINUTILS=https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz
49-
ARG GCC=https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.xz
49+
ARG GCC=https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz
5050

5151
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
5252
Invoke-WebRequest $env:BINUTILS -OutFile "C:\Windows\Temp\binutils-2.42.tar.xz"; `
@@ -55,9 +55,9 @@ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tl
5555
Remove-Item @('C:\Windows\Temp\*', 'C:\Users\*\Appdata\Local\Temp\*') -Force -Recurse;
5656

5757
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
58-
Invoke-WebRequest $env:GCC -OutFile "C:\Windows\Temp\gcc-13.2.0.tar.xz"; `
59-
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gcc-13.2.0.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
60-
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gcc-13.2.0.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
58+
Invoke-WebRequest $env:GCC -OutFile "C:\Windows\Temp\gcc-14.1.0.tar.xz"; `
59+
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gcc-14.1.0.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
60+
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gcc-14.1.0.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
6161
Remove-Item @('C:\Windows\Temp\*', 'C:\Users\*\Appdata\Local\Temp\*') -Force -Recurse;
6262

6363
ENV MSYSTEM MINGW64
@@ -70,16 +70,16 @@ RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.42 all -j8'
7070
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.42 install-strip'
7171
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/binutils-2.42/COPYING* /DIST'
7272

73-
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /c/gcc-13.2.0/build && cd /c/gcc-13.2.0/build && ../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --disable-hosted-libstdcxx --with-as=/DIST/bin/mipsel-none-elf-as --with-ld=/DIST/bin/mipsel-none-elf-ld --enable-languages=c,c++ --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
74-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-13.2.0/build all-gcc -j4'
75-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-13.2.0/build all-target-libgcc -j4'
76-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-13.2.0/build all-target-libstdc++-v3 -j4'
77-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-13.2.0/build install-strip-gcc install-strip-target-libgcc install-strip-target-libstdc++-v3'
73+
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /c/gcc-14.1.0/build && cd /c/gcc-14.1.0/build && ../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --disable-hosted-libstdcxx --with-as=/DIST/bin/mipsel-none-elf-as --with-ld=/DIST/bin/mipsel-none-elf-ld --enable-languages=c,c++ --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
74+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-14.1.0/build all-gcc -j4'
75+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-14.1.0/build all-target-libgcc -j4'
76+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-14.1.0/build all-target-libstdc++-v3 -j4'
77+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-14.1.0/build install-strip-gcc install-strip-target-libgcc install-strip-target-libstdc++-v3'
7878

7979
RUN C:\msys64\usr\bin\bash.exe -l -c 'for t in cat cp echo mkdir rm touch which ; do cp /usr/bin/$t.exe /DIST/bin ; done'
8080
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /mingw64/bin/mingw32-make.exe /DIST/bin/make.exe'
8181
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && find . -name *.exe | while read bin ; do ldd $bin | cut -f2 -d\> | cut -f2 -d\ | grep -v /c/Windows/S | while read f ; do cp $f $(dirname $bin) ; done ; done || true'
8282

83-
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/g++-mipsel-none-elf-13.2.0.zip . -r'
83+
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/g++-mipsel-none-elf-14.1.0.zip . -r'
8484

8585
CMD C:\msys64\usr\bin\bash.exe -l

0 commit comments

Comments
 (0)