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 cause mac crash/reboot #21745

Closed
rustjson opened this issue Sep 19, 2018 · 8 comments
Closed

build cause mac crash/reboot #21745

rustjson opened this issue Sep 19, 2018 · 8 comments
Labels

Comments

@rustjson
Copy link

@rustjson rustjson commented Sep 19, 2018

I am trying to build this project on master branch on two machine by running ./mach build --dev, both down during the compiling:

➜  servo git:(master) ./mach build --dev
   Compiling libsimpleservo v0.0.1 (/opensource/servo/ports/libsimpleservo)
   Compiling servo v0.0.1
@jdm jdm added P-mac A-build labels Sep 19, 2018
@jdm
Copy link
Member

@jdm jdm commented Sep 19, 2018

How much RAM does your machine have?

@rustjson
Copy link
Author

@rustjson rustjson commented Sep 19, 2018

I have two machine. the current one is :

8 Go 2133 MHz LPDDR3

image

rust version

rustc 1.28.0 (9634041f0 2018-07-30)
@rustjson
Copy link
Author

@rustjson rustjson commented Sep 19, 2018

BTW, @jdm, sorry to ask a question not related to this thread. I wonder if I can have a small build just for the stylo components, what I wanted is just dig deeper of this component, an executable file that takes css as input and output the dom object attributes would be the prefect solution.

@jdm
Copy link
Member

@jdm jdm commented Sep 19, 2018

It is possible to run ./mach build -p style.

@jdm
Copy link
Member

@jdm jdm commented Sep 19, 2018

And it's entirely possible that building servo is causing your machine to OOM; RAM usage of the build exceeds 6GB at times.

@rustjson
Copy link
Author

@rustjson rustjson commented Sep 19, 2018

interesting, but even this cause OOM, I don't think mac got rebooted sounds normal.
Let me try to build the style only and see.

Thank you

@rustjson
Copy link
Author

@rustjson rustjson commented Sep 20, 2018

Ok, my other machine got 16G RAM

and I got this error when compile the style only

error: failed to run custom build command for `style v0.0.1 (file:///Users/jason.yang/opensource/servo/components/style)`
process didn't exit successfully: `/Users/jason.yang/opensource/servo/target/debug/build/style-76a3a6a8b8415438/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'The style crate requires enabling one of its 'servo' or 'gecko' feature flags', components/style/build.rs:111:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I try to use --cfg feature but seems I am not doing it the right way

@jdm
Copy link
Member

@jdm jdm commented Sep 20, 2018

You may be able to pass --features servo

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.