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 with debugmozjs to run automated tests #14766

Closed

Conversation

@aneeshusa
Copy link
Member

aneeshusa commented Dec 28, 2016

This will enable many safety checks which will ease diagnosing problems.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #14759 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because changes the build steps

I've only enabled it for builds that are followed by test-wpt or test-css steps.
I'm not sure if this also needs to be enabled for subsequent build-cef and build-geckolib steps on the same builder to avoid rebuilding crates due to a feature mismatch.
r? @jdm


This change is Reviewable

@aneeshusa
Copy link
Member Author

aneeshusa commented Dec 28, 2016

@bors-servo try
Let's see if this affects build times due to breaking caching by feature mismatch.

@bors-servo
Copy link
Contributor

bors-servo commented Dec 28, 2016

Trying commit 03a00bb with merge ed0d226...

bors-servo added a commit that referenced this pull request Dec 28, 2016
…try>

Build with debugmozjs to run automated tests

This will enable many safety checks which will ease diagnosing problems.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix #14759 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes the build steps

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

I've only enabled it for builds that are followed by `test-wpt` or `test-css` steps.
I'm not sure if this also needs to be enabled for subsequent `build-cef` and `build-geckolib` steps on the same builder to avoid rebuilding crates due to a feature mismatch.
r? @jdm

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

bors-servo commented Dec 28, 2016

💔 Test failed - linux-rel-wpt

@jdm
Copy link
Member

jdm commented Dec 29, 2016

@bors-servo: retry
I saw this happen in another PR too, and it was transient.

@bors-servo
Copy link
Contributor

bors-servo commented Dec 29, 2016

Trying commit 03a00bb with merge 988ee50...

bors-servo added a commit that referenced this pull request Dec 29, 2016
…try>

Build with debugmozjs to run automated tests

This will enable many safety checks which will ease diagnosing problems.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix #14759 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes the build steps

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

I've only enabled it for builds that are followed by `test-wpt` or `test-css` steps.
I'm not sure if this also needs to be enabled for subsequent `build-cef` and `build-geckolib` steps on the same builder to avoid rebuilding crates due to a feature mismatch.
r? @jdm

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

bors-servo commented Dec 29, 2016

💔 Test failed - mac-rel-wpt2

@jdm
Copy link
Member

jdm commented Dec 29, 2016

Same failures on the mac builders and the linux builder both times. Interesting.

@aneeshusa
Copy link
Member Author

aneeshusa commented Dec 29, 2016

Added a fixup commit per #14759 (comment). @Ms2ger do you know if build-geckolib also needs to be built with debugmozjs?

@aneeshusa
Copy link
Member Author

aneeshusa commented Dec 29, 2016

I doubt that commit makes a difference, but the queue is nearly empty. @bors-servo retry

@jdm
Copy link
Member

jdm commented Jan 4, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jan 4, 2017

Trying commit 40b4784 with merge 5e2c9ba...

bors-servo added a commit that referenced this pull request Jan 4, 2017
…try>

Build with debugmozjs to run automated tests

This will enable many safety checks which will ease diagnosing problems.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix #14759 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes the build steps

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

I've only enabled it for builds that are followed by `test-wpt` or `test-css` steps.
I'm not sure if this also needs to be enabled for subsequent `build-cef` and `build-geckolib` steps on the same builder to avoid rebuilding crates due to a feature mismatch.
r? @jdm

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

bors-servo commented Jan 4, 2017

💔 Test failed - linux-dev

@jdm
Copy link
Member

jdm commented Jan 4, 2017

---- [compile-fail] compile-fail/ban.rs stdout ----
	
error: compile-fail/ban.rs:8: unexpected "error": '8:1: 8:17: multiple matching crates for `js` [E0464]'

error: compile-fail/ban.rs:8: unexpected "error": '8:1: 8:17: can't find crate for `js` [E0463]'
@jdm
Copy link
Member

jdm commented Jan 4, 2017

It looks like you passed an unrecognized argument into mach.

The build-cef command does not accept the arguments: --debug-mozjs
@jdm
Copy link
Member

jdm commented Jan 4, 2017

build-cef should probably be modified to accept --debug-mozjs, however.

@jdm jdm removed the S-awaiting-review label Jan 4, 2017
@jdm
Copy link
Member

jdm commented Jan 4, 2017

I can't help thinking that a .servobuild would avoid all of these problems.

This will enable many safety checks which will ease diagnosing problems.
Teach `build-cef` about the `--debug-mozjs` flag.
@aneeshusa aneeshusa force-pushed the aneeshusa:build-with-debugmozjs-for-tests branch from 40b4784 to ba139de Jan 4, 2017
@aneeshusa
Copy link
Member Author

aneeshusa commented Jan 4, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jan 4, 2017

Trying commit ba139de with merge 973fad6...

bors-servo added a commit that referenced this pull request Jan 4, 2017
…try>

Build with debugmozjs to run automated tests

This will enable many safety checks which will ease diagnosing problems.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix #14759 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because changes the build steps

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

I've only enabled it for builds that are followed by `test-wpt` or `test-css` steps.
I'm not sure if this also needs to be enabled for subsequent `build-cef` and `build-geckolib` steps on the same builder to avoid rebuilding crates due to a feature mismatch.
r? @jdm

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

bors-servo commented Jan 5, 2017

💔 Test failed - windows-msvc-dev

@jdm
Copy link
Member

jdm commented Jan 5, 2017

That looks kind of like jsapi_windows_msvc14_64_debug.rs is incorrect. @vvuk Any idea what's going on in the previous failure?

@jdm
Copy link
Member

jdm commented Jan 5, 2017

libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src14.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(jsdtoa.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src11.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src19.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src2.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src1.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src20.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(jsmath.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src0.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Parser.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src12.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src22.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src18.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src21.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src17.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src4.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src23.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(RegExp.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src13.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(jsarray.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src3.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src15.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src5.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src33.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Mutex.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src10.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src16.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src9.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src35.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src6.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(StoreBuffer.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src28.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src29.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src8.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src34.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src36.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Initialization.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src32.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src7.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src31.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src30.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src37.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src26.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src25.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src24.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src38.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src27.obj) : error LNK2001: unresolved external symbol __imp__invalid_parameter
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src14.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(jsdtoa.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src11.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src19.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src2.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src1.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src20.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(jsmath.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src0.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Parser.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src12.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src22.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src18.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src21.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src17.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src4.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src23.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(RegExp.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src13.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(jsarray.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src3.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src15.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src5.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src33.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Mutex.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src10.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src16.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src9.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src35.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src6.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(StoreBuffer.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src28.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src29.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src8.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src34.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src36.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Initialization.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src32.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src7.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src31.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src30.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src37.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src26.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src25.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src24.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src38.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src27.obj) : error LNK2001: unresolved external symbol __imp__CrtDbgReportW
libmozjs_sys-e6e395b1e890d6fc.rlib(Unified_cpp_js_src36.obj) : error LNK2019: unresolved external symbol __imp__CrtSetReportMode referenced in function "unsigned __int64 __cdecl PRMJ_FormatTime(char *,int,char const *,struct PRMJTime *)" (?PRMJ_FormatTime@@YA_KPEADHPEBDPEAUPRMJTime@@@Z)
c:\buildbot\slave\windows-msvc-dev\build\target\debug\deps\servo-621865636fcb7d79.exe : fatal error LNK1120: 3 unresolved externals
@vvuk
Copy link
Contributor

vvuk commented Jan 5, 2017

@jdm
Copy link
Member

jdm commented Jan 11, 2017

Any update, @vvuk?

@vvuk
Copy link
Contributor

vvuk commented Jan 12, 2017

When mozjs is built with debugging, it expects to link to the debug versions of the MSVC CRT (specifically, msvcrtd instead of msvcrt). It looks like rustc is (always?) calling link.exe with msvcrt.lib. When built with debugging, it should link with msvcrtd.lib.

@jdm
Copy link
Member

jdm commented Jan 12, 2017

@jdm
Copy link
Member

jdm commented Jan 27, 2017

I'm going to go ahead and close this until we solve the Windows problem. Thanks for investigating it!

@jdm jdm closed this Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.