Skip to content

Commit

Permalink
gcc v14.1.0, mingw v11.0.1, binutils v2.42, gdb v14.2, mpfr v4.2.1, e…
Browse files Browse the repository at this point in the history
…xpat v2.6.2, zstd v1.5.6
  • Loading branch information
mmozeiko committed May 8, 2024
1 parent 630bcc6 commit 4f7615c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:

- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To build binaries locally run `build.sh`. Make sure you have installed all neces

To build binaries using Docker, run:

docker run -ti --rm -v `pwd`:/output -e OUTPUT=/output -w /mnt ubuntu:22.04
docker run -ti --rm -v `pwd`:/output -e OUTPUT=/output -w /mnt ubuntu:24.04
apt update
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
ca-certificates libgmp-dev libmpc-dev libmpfr-dev libisl-dev xz-utils texinfo patch bzip2 p7zip cmake make curl m4 gcc g++
Expand Down
25 changes: 13 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

set -eux

ZSTD_VERSION=1.5.5
ZSTD_VERSION=1.5.6
GMP_VERSION=6.3.0
MPFR_VERSION=4.2.0
MPFR_VERSION=4.2.1
MPC_VERSION=1.3.1
ISL_VERSION=0.26
EXPAT_VERSION=2.5.0
BINUTILS_VERSION=2.41
GCC_VERSION=13.2.0
MINGW_VERSION=11.0.0
EXPAT_VERSION=2.6.2
BINUTILS_VERSION=2.42
GCC_VERSION=14.1.0
MINGW_VERSION=11.0.1
MAKE_VERSION=4.2.1
GDB_VERSION=13.2
GDB_VERSION=14.2

ARG=${1:-64}
if [ "${ARG}" == "32" ]; then
Expand Down Expand Up @@ -83,6 +83,8 @@ get https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release
get https://ftp.gnu.org/gnu/gdb/gdb-${GDB_VERSION}.tar.xz
get https://ftp.gnu.org/gnu/make/make-${MAKE_VERSION}.tar.bz2

curl -Lsf "https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=45e83f865876e42d22cf4bc242725bb4a25a12e3" | patch -t -N -p1 -d ${SOURCE}/gdb-${GDB_VERSION} || true

FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

mkdir -p ${BUILD}/x-binutils && pushd ${BUILD}/x-binutils
Expand Down Expand Up @@ -321,11 +323,10 @@ ${SOURCE}/gdb-${GDB_VERSION}/configure \
--host=${TARGET} \
--enable-64-bit-bfd \
--disable-werror \
--with-mpfr \
--with-expat \
--with-libgmp-prefix=${PREFIX} \
--with-libmpfr-prefix=${PREFIX} \
--with-libexpat-prefix=${PREFIX}
--disable-source-highlight \
--with-static-standard-libraries \
--with-libexpat-prefix=${PREFIX} \
--with-{gmp,mpfr,mpc,isl,zstd}=${PREFIX}
make -j`nproc`
cp gdb/.libs/gdb.exe gdbserver/gdbserver.exe ${FINAL}/bin/
popd
Expand Down

0 comments on commit 4f7615c

Please sign in to comment.