-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use the "official" cross compiler for NetBSD #40612
Conversation
I've pushed a commit with artifacts mirrored in our S3 bucket |
r=me as soon as this is green on travis, thanks @TimNN! |
I couldn't reproduce the failure locally, however it did occur again on travis (I restarted the build). This is the failure message:
My intuition is that this is somehow related to sccache however I really don't know (I currently have sccache disabled locally, due to other problems). |
@TimNN this is likely related to |
@alexcrichton: Ah, thanks for the pointer, let me try that (locally). |
I think I fixed the problem, at least my local build seems to have gotten past the previous failure: Apparently, NetBSD has a separate So let's see what travis says. |
src/librustc_llvm/build.rs
Outdated
"estdc++" | ||
} else if target.contains("netbsd") && llvm_static_stdcpp.is_some() { | ||
// NetBSD uses a separate library when reloaction is required |
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.
Nitpicking: s/reloaction/relocation/
Yay, travis is green! I removed the test commit. |
@bors: r+ |
📌 Commit e93dea1 has been approved by |
🔒 Merge conflict |
rebased |
@bors: r+ |
📌 Commit 43a51b7 has been approved by |
Use the "official" cross compiler for NetBSD The current NetBSD cross compiler is lacking, for example `std::thread` is not available (which causes problems for LLVM 4.0). This PR uses the official netbsd build system to compiler the cross compiler. @alexcrichton: Can you please mirror `ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/source/sets/{src,gnusrc,sharesrc,syssrc}.tgz`. (Optionally you may want to use NetBSD versions 7.0.2 or 7.1, in that case you'll probably want to update the binary downloads used today as well). I'll update the URL's afterwards (or feel free to use "allow edits from maintainers"). r? @alexcrichton
The current NetBSD cross compiler is lacking, for example
std::thread
is not available (which causes problems for LLVM 4.0). This PR uses the official netbsd build system to compiler the cross compiler.@alexcrichton: Can you please mirror
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/source/sets/{src,gnusrc,sharesrc,syssrc}.tgz
. (Optionally you may want to use NetBSD versions 7.0.2 or 7.1, in that case you'll probably want to update the binary downloads used today as well).I'll update the URL's afterwards (or feel free to use "allow edits from maintainers").
r? @alexcrichton