Skip to content
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

Error in Windows Cross Build #157

Open
wagesj45 opened this issue Mar 14, 2024 · 0 comments
Open

Error in Windows Cross Build #157

wagesj45 opened this issue Mar 14, 2024 · 0 comments

Comments

@wagesj45
Copy link

There seems to be a problem with building Windows executable in Linux. It is possibly related to this note in the Firefox code, which in turn references this issue. I can't tell if this is a Mercury thing with a misconfigured mozbuild configuration or an upstream problem in either Firefox or Rust.

Log

Using the --cross-avx2 configuration.

...
 0:04.95    Compiling nss-gk-api v0.3.0
 0:04.95    Compiling gpu-descriptor-types v0.1.1
 0:04.95 error[E0433]: failed to resolve: could not find `windows_rs_path` in `mozbuild`
 0:04.95   --> build/rust/windows/src/lib.rs:24:20
 0:04.95    |
 0:04.95 24 | include!(mozbuild::windows_rs_path!("src/Windows/mod.rs"));
 0:04.95    |                    ^^^^^^^^^^^^^^^ could not find `windows_rs_path` in `mozbuild`
 0:04.95 For more information about this error, try `rustc --explain E0433`.
 0:04.96 error: could not compile `windows` (lib) due to 1 previous error
 0:04.96 warning: build failed, waiting for other jobs to finish...
 0:10.07 gmake[4]: *** [/home/[user]/mozilla-unified/config/makefiles/rust.mk:490: force-cargo-library-build] Error 101
 0:10.07 gmake[3]: *** [/home/[user]/mozilla-unified/config/recurse.mk:72: toolkit/library/rust/target-objects] Error 2
 0:10.07 gmake[2]: *** [/home/[user]/mozilla-unified/config/recurse.mk:34: compile] Error 2
 0:10.07 gmake[1]: *** [/home/[user]/mozilla-unified/config/rules.mk:361: default] Error 2
 0:10.07 gmake: *** [client.mk:60: build] Error 2
 0:10.09 W 307 compiler warnings present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant