-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix tests, linkers, and specifications for various targets. #1028
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
102881d
Fix tests, linkers, and specifications for various targets.
Alexhuszagh 187b691
Remove changelog for MIPS hard/soft float documentation.
Alexhuszagh 9311417
Add rustc versions to docker environment variables.
Alexhuszagh 2184474
Minor grammatical fix in comment. I am good at English.
Alexhuszagh 6101ba4
Update src/docker/shared.rs
Alexhuszagh 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[ | ||
{ | ||
"description": "link to libgcc for armv5te-unknown-linux-musleabi.", | ||
"type": "fixed" | ||
}, | ||
{ | ||
"description": "add C++ support for FreeBSD targets.", | ||
"type": "added" | ||
}, | ||
{ | ||
"description": "test dynamic library support for Android targets in CI.", | ||
"type": "internal" | ||
}, | ||
{ | ||
"description": "test partial C++ support for mips64el-unknown-linux-muslabi64 in CI.", | ||
"type": "internal" | ||
}, | ||
{ | ||
"description": "convert mips64el-unknown-linux-muslabi64 to a hard-float toolchain to match the rust target.", | ||
"type": "changed", | ||
"breaking": true | ||
}, | ||
{ | ||
"description": "convert mips64el-unknown-linux-muslabi64 to use the mips64r2 architecture, identical to the rust target.", | ||
"type": "changed", | ||
"breaking": true | ||
}, | ||
{ | ||
"description": "convert mips-unknown-linux-musl and mipsel-unknown-linux-musl to use the mips32r2 architecture, identical to the rust targets.", | ||
"type": "changed", | ||
"breaking": true | ||
} | ||
] |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# the freebsd images need libstdc++ to be linked as well | ||
# otherwise, we get `undefined reference to `std::ios_base::Init::Init()'` | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
main() { | ||
if [[ $# -eq 0 ]]; then | ||
exec i686-unknown-freebsd12-gcc "${@}" | ||
else | ||
exec i686-unknown-freebsd12-gcc "${@}" -lc++ -lstdc++ | ||
fi | ||
} | ||
|
||
main "${@}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# this linker wrapper works around the missing soft-fp routine __trunctfsf2 | ||
# this affects rust versions with compiler-builtins <= 0.1.77, | ||
# which affects toolchains older than 1.65 which require the `-lgcc` | ||
# linker flag to provide the missing builtin. | ||
# https://github.com/rust-lang/compiler-builtins/pull/483 | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
main() { | ||
if (( CROSS_RUSTC_MINOR_VERSION >= 65 )) || [[ $# -eq 0 ]]; then | ||
exec mips64el-linux-musl-gcc "${@}" | ||
else | ||
exec mips64el-linux-musl-gcc "${@}" -lgcc -static-libgcc | ||
fi | ||
} | ||
|
||
main "${@}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# the freebsd images need libstdc++ to be linked as well | ||
# otherwise, we get `undefined reference to `std::ios_base::Init::Init()'` | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
main() { | ||
if [[ $# -eq 0 ]]; then | ||
exec x86_64-unknown-freebsd12-gcc "${@}" | ||
else | ||
exec x86_64-unknown-freebsd12-gcc "${@}" -lc++ -lstdc++ | ||
fi | ||
} | ||
|
||
main "${@}" |
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
Oops, something went wrong.
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.
ping @abcfy2
does this change work for you?
You can build the image with
this is a hard-float target according to rustc
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 should be hard-float, we're just using a soft float toolchain which is bound to cause problems at some point. A quick test is:
So we're linking a hard-float executable with a soft-float toolchain, which isn't exactly ideal, and bound to cause problems later down the line.