-
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
rust: rebuild 1.69.0 to work around clang issue with 1.70.0 #17433
Conversation
Looks like the MINGW32 build timed out or something. |
CI is having a hard time building for |
Timed out again ? I think it got stuck in the same spot last time too.
@jeremyd2019 @mati865 @lazka any clue what's going on ? |
Might have to try it locally, see if there's, ie, an error message box or something. Or try to get a backtrace of where it's hung. But it's very strange, MINGW32 shouldn't have changed at all, still even using the official bootstrap compiler. |
It's currently stuck compiling std v0.0.0. Edit: I think this happened in past with other versions of Rust. |
Local build fails (see below). How come CI does not show the cause ? Edit:: My local build failed fast. Why does it timeout on CI ? Edit 2: My local build does not fail at the same stage as CI (CI fails later). Building compiler artifacts (stage0 -> stage1)
[...]
Compiling std v0.0.0 (C:\M\mingw-w64-rust\src\rustc-1.69.0-src\library\std)
error: could not compile `core`
Caused by:
process didn't exit successfully: `C:\M\mingw-w64-rust\src\MINGW32\build\bootstrap\debug\rustc --crate-name core --edit
ion=2021 'library\core\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagno
stic-width=120 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -Zunstabl
e-options --check-cfg 'names()' --check-cfg 'values()' -C metadata=76d63240a4356319 -C extra-filename=-76d63240a4356319 -
-out-dir 'C:\M\mingw-w64-rust\src\MINGW32\build\i686-pc-windows-gnu\stage1-std\i686-pc-windows-gnu\release\deps' --target
i686-pc-windows-gnu -C linker=gcc -L 'dependency=C:\M\mingw-w64-rust\src\MINGW32\build\i686-pc-windows-gnu\stage1-std\i6
86-pc-windows-gnu\release\deps' -L 'dependency=C:\M\mingw-w64-rust\src\MINGW32\build\i686-pc-windows-gnu\stage1-std\relea
se\deps' -Csymbol-mangling-version=legacy -Zunstable-options -Zunstable-options '--check-cfg=values(bootstrap)' '--check-
cfg=values(stdarch_intel_sde)' '--check-cfg=values(no_fp_fmt_parse)' '--check-cfg=values(no_global_oom_handling)' '--chec
k-cfg=values(no_rc)' '--check-cfg=values(no_sync)' '--check-cfg=values(freebsd12)' '--check-cfg=values(backtrace_in_libst
d)' '--check-cfg=values(target_env,"libnx")' '--check-cfg=values(target_arch,"asmjs","spirv","nvptx","xtensa")' -Zmacro-b
acktrace -Zunstable-options -Csplit-debuginfo=packed -Cprefer-dynamic -Cembed-bitcode=yes '-Zcrate-attr=doc(html_root_url
="https://doc.rust-lang.org/1.69.0/")' -Z binary-dep-depinfo` (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)
warning: build failed, waiting for other jobs to finish...
Build completed unsuccessfully in 0:08:46
==> ERROR: A failure occurred in build(). |
|
MINGW-packages/.github/workflows/main.yml Line 28 in 51d3109
causes Windows to show error message boxes for things like missing exports. So CI is sitting waiting for somebody to answer the message box. |
How did you get that ? |
set _bootstrapping=no for MINGW32 see msys2#17406
I tried to build the package locally for MINGW32, with |
Do you know which rustc is asking for the missing entry point ? |
I was able to build MINGW32 with _bootstrapping=no ! Got lucky... |
Two rustc.exe's are running while the message box is open: |
This is concerning,
Yeah that is expected, |
@mati865 should we investigate more or proceed with the current 1.69.0-2 rebuild (which is successful after disabling bootstrap for mingw32) ? This would allow us to move on with 1.70.0 which is waiting on this rebuild. |
Googling |
I wouldn't block on that, since it appears to be some GCC bug. |
I think |
Good to hear. Note that if we proceed with the actual plan we will end up having all systems, but MINGW64, with boostrap=no. |
May the powers in place please kindly merge this PR. |
You know what just occurred to me, MINGW32 was fine in the 1.70.0 PR with _bootstrapping=yes, so maybe this was just an issue with 1.69.0 (or perhaps the 1.68.x used for bootstrapping) vs an updated gcc here, and 1.70.0 will be fine with _bootstrapping=yes on MINGW32 again |
see #17406