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 on win32 finished, but can not run #10048

Closed
lygstate opened this issue Mar 17, 2016 · 25 comments
Closed

Build on win32 finished, but can not run #10048

lygstate opened this issue Mar 17, 2016 · 25 comments
Labels

Comments

@lygstate
Copy link

@lygstate lygstate commented Mar 17, 2016

 MINGW64 /c/CI-Cor/servo
$ ./mach run tests/html/about-mozilla.html
Servo exited with return value 127

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 17, 2016

lygstate@lygstate-PC MINGW64 /c/CI-Cor/servo
$ servo /c/CI-Cor/servo/tests/html/about-mozilla.html
Error opening preferences: Error { repr: Os { code: 3, message: "The system cannot find the path specified." } }.
ERROR:style::selector_matching: Failed to load UA stylesheet user-agent.css!

lygstate@lygstate-PC MINGW64 /c/CI-Cor/servo
$ /c/CI-Cor/servo/target/release/servo /c/CI-Cor/servo/tests/html/about-mozilla.html
Segmentation fault

To be more specific

@veirus
Copy link

@veirus veirus commented Mar 17, 2016

Servo exited with return value 127

Looks like this #9465

@wafflespeanut
Copy link
Member

@wafflespeanut wafflespeanut commented Mar 17, 2016

@lygstate What's the version of your Windows?

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 17, 2016

@wafflespeanut I am using Windows 7 x64

@ocerman
Copy link

@ocerman ocerman commented Mar 23, 2016

I have same problem on Windows 8.1 x64

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 24, 2016

Hope this could be able fixed as soon as possible, so we could be able try it on Windows.

@veirus
Copy link

@veirus veirus commented Mar 24, 2016

Current workaround for that is to rename servo\.servo\rust\2016-03-07\rustc-nightly-x86_64-pc-windows-gnu\rustc\bin\libstdc++-6.dll file to something else, libstdc++-6.dll.bak for example.

bors-servo added a commit that referenced this issue Mar 27, 2016
Fix ./mach run and ./mach test-unit on Windows

This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes #9465 and #10048

CC @larsbergstrom @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10223)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Mar 27, 2016
Fix ./mach run and ./mach test-unit on Windows

This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes #9465 and #10048

CC @larsbergstrom @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10223)
<!-- Reviewable:end -->
@timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Mar 27, 2016

Fixed by #10223?

@wafflespeanut
Copy link
Member

@wafflespeanut wafflespeanut commented Mar 28, 2016

@lygstate @blacksvk Can you check whether you're still getting this?

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

@wafflespeanut OK, I am trying.

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

@wafflespeanut can not compile the style module.

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

$ ./mach build --release
   Compiling style v0.0.1 (file:///C:/CI-Cor/servo/components/style)
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79709:1: 79721:75 warning: trait bounds are not (yet) enforced in type definitions [E0122]
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79709 pub type CascadePropertyFn<C: TComputedValues> =
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79710
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79711     extern "Rust" fn(declaration: &PropertyDeclaration,
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79712
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79713                      inherited_style: &C,
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79714
                                                                                    ...
C:\CI-Cor\servo\components\style\lib.rs:80:5: 80:58 note: in this expansion of include!
C:/CI-Cor/servo/target\release\build\style-dc3743f70fa61c91\out/properties.rs:79709:1: 79721:75 help: run `rustc --explain E0122` to see a detailed explanation
   Compiling gfx v0.0.1 (file:///C:/CI-Cor/servo/components/gfx)
   Compiling script v0.0.1 (file:///C:/CI-Cor/servo/components/script)
   Compiling layout_traits v0.0.1 (file:///C:/CI-Cor/servo/components/layout_traits)
   Compiling compositing v0.0.1 (file:///C:/CI-Cor/servo/components/compositing)
C:\CI-Cor\servo\components\compositing\constellation.rs:29:30: 29:46 warning: unused import, #[warn(unused_imports)] on by default
C:\CI-Cor\servo\components\compositing\constellation.rs:29 use ipc_channel::ipc::{self, IpcOneShotServer, IpcSender};
                                                                                        ^~~~~~~~~~~~~~~~
C:\CI-Cor\servo\components\compositing\constellation.rs:55:5: 55:13 warning: unused import, #[warn(unused_imports)] on by default
C:\CI-Cor\servo\components\compositing\constellation.rs:55 use std::env;
                                                               ^~~~~~~~
C:\CI-Cor\servo\components\compositing\constellation.rs:177:5: 177:39 warning: struct field is never used: `child_processes`, #[warn(dead_code)] on by default
C:\CI-Cor\servo\components\compositing\constellation.rs:177     child_processes: Vec<ChildProcess>,
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\CI-Cor\servo\components\compositing\constellation.rs:296:5: 296:32 warning: variant is never used: `Unsandboxed`, #[warn(dead_code)] on by default
C:\CI-Cor\servo\components\compositing\constellation.rs:296     Unsandboxed(process::Child),
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   Compiling webdriver_server v0.0.1 (file:///C:/CI-Cor/servo/components/webdriver_server)
   Compiling glutin_app v0.0.1 (file:///C:/CI-Cor/servo/ports/glutin)
   Compiling layout v0.0.1 (file:///C:/CI-Cor/servo/components/layout)
   Compiling servo v0.0.1 (file:///C:/CI-Cor/servo/components/servo)
Build completed in 1428.03s

@KiChjang
Copy link
Member

@KiChjang KiChjang commented Mar 28, 2016

@lygstate Those are just warnings, not errors. Can you still test and see whether you can run servo using ./mach run -r?

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

$ ./mach run -r
['/c/CI-Cor/servo/target/release/servo']
Servo exited with return value -11

Failed with error.

@ocerman
Copy link

@ocerman ocerman commented Mar 28, 2016

Seems to be working for me.

@veirus
Copy link

@veirus veirus commented Mar 28, 2016

I'm on Win 8.1 x64 and just successfully compiled and run release and debug builds.

@jdm
Copy link
Member

@jdm jdm commented Mar 28, 2016

Looks like we're done here!

@jdm jdm closed this Mar 28, 2016
@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

@jdm I am using the windows 7 x64, does that means something? not works for me at least.

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

Do we need install msys 64bit version or 32bit version?

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

The README.md doesn't specify witch version to use:

Install MSYS2 from here. After you have done so, open an MSYS shell window and update the core libraries and install new packages:

@jdm jdm reopened this Mar 28, 2016
@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

   Compiling servo v0.0.1 (file:///C:/CI-Cor/servo/components/servo)
error: could not find native static library `freetype`, perhaps an -L flag is missing?
Build failed, waiting for other jobs to finish...
error: Could not compile `servo-freetype-sys`.

To learn more, run the command again with --verbose.
Build completed in 30.91s

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 28, 2016

\\unreachable-0.0.2\\src\\lib.rs --crate-name unreachable --crate-type lib -C opt-level=3 -C codegen-units=4 -C metadata=e868feab9fd59bcd -C extra-filename=-e868feab9fd59bcd --out-dir C:/CI-Cor/servo/target\\release\\deps --emit=dep-info,link -L dependency=C:/CI-Cor/servo/target\\release\\deps -L dependency=C:/CI-Cor/servo/target\\release\\deps --extern void=C:/CI-Cor/servo/target\\release\\deps\\libvoid-0a5476989421ee7a.rlib --cap-lints allow`
Build failed, waiting for other jobs to finish...
error: failed to run custom build command for `harfbuzz-sys v0.1.2`
Process didn't exit successfully: `C:/CI-Cor/servo/target\release\build\harfbuzz-sys-ba59159cd21b3bd8\build-script-build` (exit code: 101)
--- stdout
cd C:/CI-Cor/servo/target\release\build\harfbuzz-sys-ba59159cd21b3bd8\out && C:/CI-Cor/servo/.cargo\registry\src\github.com-88ac128001ac3a9a\harfbuzz-sys-0.1.2/harfbuzz/configure --prefix=C:/CI-Cor/servo/target\release\build\harfbuzz-sys-ba59159cd21b3bd8\out --host=x86_64-pc-windows-gnu --enable-static --without-icu --without-freetype --without-glib \
        CFLAGS="-fPIC -O2" CXXFLAGS="-fPIC -O2"
makefile.cargo:31: recipe for target 'all' failed

--- stderr
/bin/sh: line 0: cd: C:/CI-Cor/servo/targetreleasebuildharfbuzz-sys-ba59159cd21b3bd8out: No such file or directory
make: *** [all] Error 1
thread '<main>' panicked at 'assertion failed: Command::new("make").args(&["-R", "-f", "makefile.cargo",
                            &format!("-j{}" , env:: var ( "NUM_JOBS" ) .
                                     unwrap (
                                     ))]).status().unwrap().success()', C:/CI-Cor/servo/.cargo\registry\src\github.com-88ac128001ac3a9a\harfbuzz-sys-0.1.2\build.rs:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Build completed in 192.14s

@MichaelKearnsSoftwire
Copy link

@MichaelKearnsSoftwire MichaelKearnsSoftwire commented Mar 28, 2016

I've also been receiving the same error when attempting to build on Windows 8.1 x64:

error: could not find native static library freetype, perhaps an -L flag is missing?

This is on a fresh checkout following the README instructions carefully -- any suggestions would be welcome!

In particular, pacman definitely installed mingw-w64-x86_64-freetype.

@lygstate
Copy link
Author

@lygstate lygstate commented Mar 29, 2016

@MichaelKearnsSoftwire I am confusing and don't know what's going on.

@lygstate
Copy link
Author

@lygstate lygstate commented Apr 14, 2016

Ping for this....

@lygstate lygstate closed this May 22, 2016
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…(from UK992:win32); r=larsbergstrom

This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes servo/servo#9465 and servo/servo#10048

CC larsbergstrom jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d22a7a1912c7cf513931463e7081d2d345e11ff0

UltraBlame original commit: dd9be35a8de675caf1ab33dccefd8bdc435c8916
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…(from UK992:win32); r=larsbergstrom

This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes servo/servo#9465 and servo/servo#10048

CC larsbergstrom jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d22a7a1912c7cf513931463e7081d2d345e11ff0

UltraBlame original commit: dd9be35a8de675caf1ab33dccefd8bdc435c8916
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…(from UK992:win32); r=larsbergstrom

This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes servo/servo#9465 and servo/servo#10048

CC larsbergstrom jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d22a7a1912c7cf513931463e7081d2d345e11ff0

UltraBlame original commit: dd9be35a8de675caf1ab33dccefd8bdc435c8916
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
8 participants
You can’t perform that action at this time.