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

Build problem under Linux #3906

Open
adevress opened this issue Apr 3, 2020 · 2 comments
Open

Build problem under Linux #3906

adevress opened this issue Apr 3, 2020 · 2 comments

Comments

@adevress
Copy link

adevress commented Apr 3, 2020

Master Branch "620aff96779a655fdca2208a65fb69d7738ebb5c" does not seems to build on Linux.

Configuration : Ubuntu-like 18.04 + gcc

Command: "cargo build"

Seems to be related to a platform detection issue.

Error log :

   Compiling serde_derive v1.0.88
error: failed to run custom build command for `compositor-windows v0.1.0 (/home/didi/workspace/rust/webrender/example-compositor/compositor-windows)`

Caused by:
  process didn't exit successfully: `/home/didi/workspace/rust/webrender/target/debug/build/compositor-windows-9c22fb9c9450a99f/build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "../../../angle/checkout/include" "-Wall" "-Wextra" "-o" "/home/didi/workspace/rust/webrender/target/debug/build/compositor-windows-e3f61b84ed02c6ae/out/src/lib.o" "-c" "src/lib.cpp"
cargo:warning=src/lib.cpp:7:10: fatal error: windows.h: Aucun fichier ou dossier de ce type
cargo:warning= #include <windows.h>
cargo:warning=          ^~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1

--- stderr


error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "../../../angle/checkout/include" "-Wall" "-Wextra" "-o" "/home/didi/workspace/rust/webrender/target/debug/build/compositor-windows-e3f61b84ed02c6ae/out/src/lib.o" "-c" "src/lib.cpp" with args "cc" did not execute successfully (status code exit code: 1).



warning: build failed, waiting for other jobs to finish...
error: build failed
@jdm
Copy link
Member

jdm commented Apr 3, 2020

The default workspace includes windows-only code, so cargo build from the root of the repository is broken for non-windows platforms.

@kvark
Copy link
Member

kvark commented Apr 3, 2020

Fwiw, it's a common thing in repositories that have multiple crates in them. I'm not aware of a solution, but it's not difficult to work with if you know what to expect. Most often we (devs) just go to webrender or wrench folders and work within them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants