Skip to content

Commit 5ba2246

Browse files
committed
downloads: upgrade binutils 2.38 -> 2.39
2.40 was released hours ago. But I don't see the .tar.xz on ftp.gnu.org yet. So we stick to 2.39. Reason I'm doing this is I noticed that our invocations of `objdump` when building Python were emitting `Unrecognized form: 0x22` warnings. This is due to DWARF emitted by LLVM 15 being too new for the previous version of binutils. This was likely harmless. But modernizing binutils shouldn't hurt.
1 parent ec69755 commit 5ba2246

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cpython-unix/build-binutils.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ if [ -x "${SCCACHE}" ]; then
2222
export STAGE_CC_WRAPPER="${SCCACHE}"
2323
fi
2424

25+
# gprofng requires a bison newer than what we have. So just disable it.
2526
../binutils-${BINUTILS_VERSION}/configure \
2627
--build=x86_64-unknown-linux-gnu \
2728
--prefix=/tools/host \
2829
--enable-plugins \
30+
--enable-gprofng=no \
2931
--disable-nls \
3032
--with-sysroot=/
3133

pythonbuild/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"license_file": "LICENSE.bdb.txt",
2121
},
2222
"binutils": {
23-
"url": "https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xz",
24-
"size": 23651408,
25-
"sha256": "e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024",
26-
"version": "2.38",
23+
"url": "https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.xz",
24+
"size": 25167756,
25+
"sha256": "645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00",
26+
"version": "2.39",
2727
},
2828
"bzip2": {
2929
"url": "https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz",

0 commit comments

Comments
 (0)