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

Work around Windows arm64 crashes #467

Merged
merged 2 commits into from Jul 23, 2019
Merged

Work around Windows arm64 crashes #467

merged 2 commits into from Jul 23, 2019

Conversation

@jdm
Copy link
Member

jdm commented Jul 22, 2019

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.


This change is Reviewable

@asajeffrey
Copy link
Member

asajeffrey commented Jul 22, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2019

📌 Commit fde5b13 has been approved by asajeffrey

@jdm
Copy link
Member Author

jdm commented Jul 22, 2019

This needs to wait for servo/mozjs#191 to merge first.

@jdm
Copy link
Member Author

jdm commented Jul 22, 2019

@jdm jdm force-pushed the arm64-crashfix branch from fde5b13 to 3a4aa90 Jul 23, 2019
@jdm
Copy link
Member Author

jdm commented Jul 23, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

📌 Commit 3a4aa90 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

Testing commit 3a4aa90 with merge 1fab93e...

bors-servo added a commit that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

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

bors-servo commented Jul 23, 2019

💔 Test failed - status-appveyor

@CYBAI
Copy link
Contributor

CYBAI commented Jul 23, 2019

In AppVeyor
error[E0599]: no function or associated item named `default` found for type `mozjs::jsapi::RealmOptions` in the current scope
  --> tests\evaluate.rs:27:47
   |
27 |                                &RealmOptions::default())
   |                                               ^^^^^^^ function or associated item not found in `mozjs::jsapi::RealmOptions`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
The following warnings were emitted during compilation:
warning: In file included from <built-in>:1:
warning: C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\js\src\js-confdefs.h(50,9): warning: 'WIN32' macro redefined [-Wmacro-redefined]
warning: #define WIN32 1
warning:         ^
warning: <command line>(3,9): note: previous definition is here
warning: #define WIN32
warning:         ^
warning: In file included from src/jsglue.cpp:15:
warning: In file included from C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\jsapi.h:12:
warning: In file included from C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include/mozilla/AlreadyAddRefed.h:12:
warning: C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\mozilla/Assertions.h(219,1): warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
warning: }
warning: ^
warning: In file included from src/jsglue.cpp:15:
warning: In file included from C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\jsapi.h:29:
warning: In file included from C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include/js/CallArgs.h:72:
warning: C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\js/RootingAPI.h(762,8): warning: 'dllexport' attribute ignored [-Wignored-attributes]
warning: struct JS_PUBLIC_API MovableCellHasher<JS::Heap<T>> {
warning:        ^
warning: C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\jstypes.h(47,25): note: expanded from macro 'JS_PUBLIC_API'
warning: #  define JS_PUBLIC_API MOZ_EXPORT
warning:                         ^
warning: C:\projects\rust-mozjs\target\x86_64-pc-windows-msvc\debug\build\mozjs_sys-994add0909aabfcd\out\dist\include\mozilla/Types.h(41,35): note: expanded from macro 'MOZ_EXPORT'
warning: #    define MOZ_EXPORT __declspec(dllexport)
warning:                                   ^
warning: 3 warnings generated.
error: Could not compile `mozjs`.
In Travis
warning: trait objects without an explicit `dyn` are deprecated
 --> src/panic.rs:9:55
  |
9 | thread_local!(static PANIC_RESULT: RefCell<Option<Box<Any + Send>>> = RefCell::new(None));
  |                                                       ^^^^^^^^^^ help: use `dyn`: `dyn Any + Send`
  |
  = note: `#[warn(bare_trait_objects)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
 --> src/panic.rs:9:55
  |
9 | thread_local!(static PANIC_RESULT: RefCell<Option<Box<Any + Send>>> = RefCell::new(None));
  |                                                       ^^^^^^^^^^ help: use `dyn`: `dyn Any + Send`
warning: trait objects without an explicit `dyn` are deprecated
 --> src/panic.rs:9:55
  |
9 | thread_local!(static PANIC_RESULT: RefCell<Option<Box<Any + Send>>> = RefCell::new(None));
  |                                                       ^^^^^^^^^^ help: use `dyn`: `dyn Any + Send`
  |
  = note: `#[warn(bare_trait_objects)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
 --> src/panic.rs:9:55
  |
9 | thread_local!(static PANIC_RESULT: RefCell<Option<Box<Any + Send>>> = RefCell::new(None));
  |                                                       ^^^^^^^^^^ help: use `dyn`: `dyn Any + Send`
     Running `rustc --crate-name evaluate tests/evaluate.rs --color always --emit=dep-info,link -C debuginfo=2 --test -C metadata=5128c4bb7ac09cc7 -C extra-filename=-5128c4bb7ac09cc7 --out-dir /home/travis/build/servo/rust-mozjs/target/debug/deps -C incremental=/home/travis/build/servo/rust-mozjs/target/debug/incremental -L dependency=/home/travis/build/servo/rust-mozjs/target/debug/deps --extern lazy_static=/home/travis/build/servo/rust-mozjs/target/debug/deps/liblazy_static-d197baf3c1fb81da.rlib --extern libc=/home/travis/build/servo/rust-mozjs/target/debug/deps/liblibc-f527a8547dbd0338.rlib --extern log=/home/travis/build/servo/rust-mozjs/target/debug/deps/liblog-1339569509fd2d00.rlib --extern mozjs=/home/travis/build/servo/rust-mozjs/target/debug/deps/libmozjs-9e865939887e7e09.rlib --extern mozjs_sys=/home/travis/build/servo/rust-mozjs/target/debug/deps/libmozjs_sys-535fae7bf3719c06.rlib --extern num_traits=/home/travis/build/servo/rust-mozjs/target/debug/deps/libnum_traits-b3320ff1eaae551b.rlib -L native=/home/travis/build/servo/rust-mozjs/target/debug/build/mozjs-51caf84094ca490b/out -L native=/home/travis/build/servo/rust-mozjs/target/debug/build/mozjs_sys-4594251bc03ec97f/out/js/src/build -L native=/home/travis/build/servo/rust-mozjs/target/debug/build/mozjs_sys-4594251bc03ec97f/out -L native=/usr/lib/x86_64-linux-gnu`
error[E0599]: no function or associated item named `default` found for type `mozjs::jsapi::RealmOptions` in the current scope
  --> tests/evaluate.rs:27:47
   |
27 |                                &RealmOptions::default())
   |                                               ^^^^^^^ function or associated item not found in `mozjs::jsapi::RealmOptions`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `mozjs`.
@jdm jdm force-pushed the arm64-crashfix branch from 3a4aa90 to b5860ac Jul 23, 2019
@jdm
Copy link
Member Author

jdm commented Jul 23, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

📌 Commit b5860ac has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

Testing commit b5860ac with merge 4a367ac...

bors-servo added a commit that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

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

bors-servo commented Jul 23, 2019

💔 Test failed - checks-travis

@jdm jdm force-pushed the arm64-crashfix branch from b5860ac to 26fa7f5 Jul 23, 2019
@jdm
Copy link
Member Author

jdm commented Jul 23, 2019

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

📌 Commit 26fa7f5 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 23, 2019

Testing commit 26fa7f5 with merge 07eec81...

bors-servo added a commit that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

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

bors-servo commented Jul 23, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: asajeffrey
Pushing 07eec81 to master...

@bors-servo bors-servo merged commit 26fa7f5 into master Jul 23, 2019
3 of 5 checks passed
3 of 5 checks passed
Travis CI - Branch Build Errored
Details
Travis CI - Pull Request Build Errored
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
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.

None yet

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