forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: build GCC 14, build nowallet
depends and source with it, stage built packages in /opt
, allowlist LLVM libc++
#6387
Draft
kwvg
wants to merge
11
commits into
dashpay:develop
Choose a base branch
from
kwvg:gcc_and_friends
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9522801
[don't mind me, this'll go away after we rebase]
kwvg 54c3b6f
ci: purge package manager cache after each interaction
kwvg f851fc9
ci: install `i386` packages only if host is `amd64`, merge layers
kwvg ce272ca
ci: download and build GCC 14, allow overriding version
kwvg 78c1407
ci: use distro pkgs for deps instead of building them in-tree for GCC 14
kwvg 983ad46
ci: drop non-C(++) langs, disable libsanitizer, NLS, drop ISL on GCC 14
kwvg 81be907
ci: split off packages needed only to build/install compilers
kwvg 794028c
ci: make sure that GDB is willing to load GCC 14's libraries
kwvg 2498839
ci: extend GDB allowlist and `LD_LIBRARY_PATH` to LLVM's libc++
kwvg 97a9b11
ci: don't stage packages in `/tmp`, reduce layers for `cppcheck` build
kwvg 3263879
ci: build nowallet depends+src using GCC 14
kwvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am against of building gcc everytime. It's heavy process, it make things that supposed to be close to instant to be "1 hour long".
If you really need custom gcc build - let's build it, put somewhere as a binary, and only download it and verify hashes. It's not necessary should be a build that is done by gcc's team, but it can be 3rd party repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcc is default compiler in my ubuntu 24.10, I don't see a reason to build it from scratch. It's not a bleeding-edge-night-build which we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe their's? https://github.com/xpack-dev-tools/gcc-xpack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't take an hour, it takes ~25 minutes (build) and efforts have been made to make it cacheable as possible (as mentioned in the PR description, see below, along with all the alternatives explored, see above). Builds without the GCC compile take ~5 minutes (build), so the slowdown impact relative to the current deployment in a worst-case scenario (cache-miss) is 20 minutes and the subsequent caching should should give us pull times comparable to regular cache hits.
I'm not against building them separately and downloading binaries for them. What about baking in the first two steps into their own Docker container and
FROM
'ing it? It should bypass cache misses and the rebuilds that it would attract.This has been addressed in the PR description (see below)
I had suggested this to Pasta and he seemed lukewarm towards the idea (@PastaPastaPasta, thoughts?)