-
Notifications
You must be signed in to change notification settings - Fork 13k
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
LLVM build failures on Windows/Mac #135782
Comments
#132994 might be related. |
my observations so far some recent change in bootstrap made it such that
I don't think the In conclusion, I think (+) I should mention that I only have a Linux box around so I can't actually repro the problem seen on macOS and Windows but if I add an assertion like |
@japaric asked me to repro the issue on Mac from checkout
|
only MUSL needs those objects and trying to compile them to other targets, e.g. Windows or macOS, will produce C compilation errors check the target before shelling out to the C compiler and tweak `make_run` to skip the actual C compilation when the target is not MUSL fixes rust-lang#135782
Summary
On Windows and Mac,
x.py build src/llvm-project
can fail whendownload-ci-llvm = false
is set in theconfig.toml
.Command used
Clone the rust repo, then copy the
config.example.toml
toconfig.toml
and set the following:Then run:
Expected behaviour
A successful build, exiting 0.
Actual behaviour
On Mac, the result is:
On Windows, the result is:
Bootstrap configuration (config.toml)
The same as the
config.example.toml
but:Operating system
This is happening on, as far as I know, all Windows and Mac targets. I tested on Mac 15.2 and Windows 11 24H2.
HEAD
bcd0683 and 6a64e3b both display the issue
Additional context
After discussing with @japaric, I believe that these steps (building crtbegin.o and crtend.o) are unnecessary, bootstrap seems to claim that these steps are for cross compiling to MUSL.
We believe the issue happened sometime between #134839 (where the problem is not present) and #134987 (where the problem is now present)
(Build logs excluded as they are longer than the Github Issues limit)
windows-log.txt
mac-log.txt
The text was updated successfully, but these errors were encountered: