Comments (4)
open a PR?
from tc-build.
Use officially provided sha512.sum
from <sourceware.org>:
diff --git a/utils.py b/utils.py
index 0b823085e6ac..c3b3584a8ef2 100755
--- a/utils.py
+++ b/utils.py
@@ -22,7 +22,7 @@ def current_binutils():
Simple getter for current stable binutils release
:return: The current stable release of binutils
"""
- return "binutils-2.35"
+ return "binutils-2.35.1"
def download_binutils(folder):
@@ -58,20 +58,19 @@ def download_binutils(folder):
def verify_binutils_checksum(file):
- # Check the sha256sum of the downloaded package with a known good one
- # To regenerate the sha256sum, download the .tar.xz and .tar.xz.sig files
- # $ gpg --verify *.tar.xz.sig *.tar.xz
- # $ sha256sum *.tar.xz
- file_hash = hashlib.sha256()
+ # Check the SHA512 checksum of the downloaded file with a known good one
+ # XXX: Use officially provided sha512.sum from <sourceware.org> for .tar.xz file
+ # Link: ftp://sourceware.org/pub/binutils/releases/sha512.sum
+ file_hash = hashlib.sha512()
with file.open("rb") as f:
while True:
- data = f.read(65536)
+ data = f.read(131072)
if not data:
break
file_hash.update(data)
- good_hash = "1b11659fb49e20e18db460d44485f09442c8c56d5df165de9461eb09c8302f85"
+ good_hash = "94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb"
if file_hash.hexdigest() != good_hash:
- raise RuntimeError("binutils sha256sum does not match known good one!")
+ raise RuntimeError("binutils: SHA512 checksum does not match known good one!")
from tc-build.
That works with:
$ python3 ./build-binutils.py -B /home/dileks/src/llvm-toolchain/build -I /home/dileks/src/llvm-toolchain/install -t x86_64-linux-gnu
from tc-build.
Might be useful/helpful to have a new label
for version upgrades
?
from tc-build.
Related Issues (20)
- -fno-semantic-interposition and -Bsymbolic-functions HOT 2
- CMake build error in ./build-llvm.py on Ubuntu Bionic HOT 1
- [Question] Does build-llvm.py need an update for clang-14? HOT 3
- Kernel building script not working for ARM64 HOT 2
- question: how to find out why a linking error happens? HOT 2
- [BOLT] Minimum hardware requirements? HOT 10
- download llvm from tarball's rather than shallow clone? HOT 1
- Ability to specify llvm sha HOT 1
- Building kernels: Show Linux version (when passing -L option) HOT 3
- Use sccache to speed up builds HOT 5
- Bump binutils to version 2.39
- Good revision broken on arm64 HOT 4
- Display total build-time HOT 6
- build-binutils.py: Do not build texinfo docs HOT 3
- Print total disc-usage in MiB HOT 4
- Alpine/Musl segfault when building BOLT in stage 3 HOT 7
- ld.gold and ld.bfd HOT 1
- ld.bfd ld.gold missing and build_binutils problem HOT 22
- build-binutils.py: don't assume -mtune == -march HOT 2
- Could not find LLVM_VERSION_MAJOR in CMakeLists.txt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tc-build.