You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linking fails with a very large number of objects on x86_64-pc-windows-msvc.
What target(s) are you cross-compiling for?
other (specify in description)
Which operating system is the host (e.g computer cross is on) running?
macOS
Windows
Linux / BSD
other OS (specify in description)
What architecture is the host?
x86_64 / AMD64
arm32
arm64 (including Mac M1)
What container engine is cross using?
docker
podman
other container engine (specify in description)
cross version
0.2.5
Example
cross build --release -p mypackage
...
= note: 0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0048:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0048:err:systray:initialize_systray Could not create tray window
0024:err:environ:build_command_line command line too long (38785)
Additional information / notes
I found this issue in rustc: rust-lang/rust#41190, and it makes me wonder if the workaround implemented there is somehow not getting triggered in the cross docker container.
Note: that the msvc docker container was built unmodified from the cross-toolchain image
The text was updated successfully, but these errors were encountered:
are you sure you're actually using cross? We only support msvc via https://github.com/cross-rs/cross-toolchains, which you need to build yourself. Cross will output a warning if it fallbacks to not using a container
@Emilgardis unfortunately I cant post the log publicly. Can you tell me what you're looking for?
I can confirm that the link command is extremely long 38k chars sounds right.
If you look at the rust issue, their fix seemed trivial, however i am not familiar enough with how rust links to know if we can get in the middle of object generation and linking...
Checklist
Describe your issue
Linking fails with a very large number of objects on x86_64-pc-windows-msvc.
What target(s) are you cross-compiling for?
other (specify in description)
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
0.2.5
Example
Additional information / notes
I found this issue in rustc: rust-lang/rust#41190, and it makes me wonder if the workaround implemented there is somehow not getting triggered in the cross docker container.
Note: that the msvc docker container was built unmodified from the cross-toolchain image
The text was updated successfully, but these errors were encountered: