-
Notifications
You must be signed in to change notification settings - Fork 564
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
0_RootFS: Support riscv64 #8468
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
19ca3ce
0_RootFS: Support riscv64
eschnett f5ec057
Merge branch 'master' into eschnett/riscv64
eschnett 549be5e
0_RootFS: Support riscv64
eschnett 54e9013
Merge branch 'master' into eschnett/riscv64
eschnett 3a2993f
RootFS.md: Add riscv64 description
eschnett 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
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
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
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.
Why this? What are the consequences?
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.
Without this setting, glibc builds the file
support/links-dso-program.cc
with a C++ compiler. There is no C++ compiler for the host architecture available, so glibc uses/usr/bin/g++
instead. This fails. If we disable C++ (/bin/false
always reports an error in the configure stage), then glibc builds a different version of that file (support/links-dso-program-c.c
) with a C compiler, and all is fine.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.
This file doesn't exist in the earlier glibc versions that we build for other architectures.
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.
All this stuff is built with system compilers, we don't use BinayBuilder toolchains, that's the point of these (obscure) lines
Yggdrasil/0_RootFS/gcc_common.jl
Lines 31 to 32 in b196211
/usr/bin/gcc
.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.
No, the C file is built with the host compiler (
--target="${COMPILER_TARGET}"
). The lines you see here are only configuring glibc. glibc is built much further down (# Finish off libc
), after the first stage of GCC has been built (# Back to GCC-land, install libgcc
)./usr/bin/gcc
would target the build systemx86_64-linux-musl
, and that wouldn't work for building a glibc forriscv64
.