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

Get the mozjs crate to work with the mozjs_sys which uses bindgen #20793

Merged
merged 1 commit into from May 30, 2018

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented May 16, 2018

This is the matching PR to servo/mozjs#134 and servo/rust-mozjs#425 which runs bindgen on spidermonkey to produce Rust bindings.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because current tests should catch failures

This change is Reviewable

@highfive
Copy link

highfive commented May 16, 2018

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/bindings/codegen/CodegenRust.py, components/script/dom/history.rs, components/script/timers.rs, components/script/dom/customelementregistry.rs, components/script/dom/bindings/reflector.rs and 2 more
  • @KiChjang: components/script/dom/bindings/codegen/CodegenRust.py, components/script/dom/history.rs, components/script/timers.rs, components/script/dom/customelementregistry.rs, components/script/dom/bindings/reflector.rs and 2 more
@highfive
Copy link

highfive commented May 16, 2018

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify script code, but no tests are modified. Please consider adding a test!
@asajeffrey
Copy link
Member Author

asajeffrey commented May 16, 2018

r? @jdm

@highfive highfive assigned jdm and unassigned emilio May 16, 2018
@asajeffrey asajeffrey force-pushed the asajeffrey:bindgenup branch from 4d67e81 to c393ae8 May 16, 2018
@nox
Copy link
Member

nox commented May 17, 2018

(The commits should be cleaned up before landing the PR.)

@asajeffrey asajeffrey changed the title [WIP] Get the mozjs crate to work with the mozjs_sys which uses bindgen Get the mozjs crate to work with the mozjs_sys which uses bindgen May 23, 2018
@asajeffrey
Copy link
Member Author

asajeffrey commented May 23, 2018

@jdm: the bindgenup landed in mozjs, so this is now ready for review.

@jdm
jdm approved these changes May 23, 2018
@jdm jdm removed the S-awaiting-review label May 23, 2018
@asajeffrey asajeffrey force-pushed the asajeffrey:bindgenup branch from 3157556 to 34da71c May 23, 2018
@asajeffrey
Copy link
Member Author

asajeffrey commented May 23, 2018

Squashed. @bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 23, 2018

📌 Commit 34da71c has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 23, 2018

Testing commit 34da71c with merge 58e5047...

bors-servo added a commit that referenced this pull request May 23, 2018
Get the mozjs crate to work with the mozjs_sys which uses bindgen

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

This is the matching PR to servo/mozjs#134 and servo/rust-mozjs#425 which runs bindgen on spidermonkey to produce Rust bindings.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because current tests should catch failures

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- 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/20793)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 23, 2018

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented May 23, 2018

All of the linux, arm, and android builders complained:

error: unknown argument: '-fno-sized-deallocation'
/usr/include/features.h:374:12: fatal error: 'sys/cdefs.h' file not found
error: unknown argument: '-fno-sized-deallocation', err: true
/usr/include/features.h:374:12: fatal error: 'sys/cdefs.h' file not found, err: true
thread 'main' panicked at 'Should generate JSAPI bindings OK: ()', libcore/result.rs:945:5
@jdm
Copy link
Member

jdm commented May 23, 2018

And windows:

thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any of [\'clang.dll\', \'libclang.dll\'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found (skipped: [])"', libcore\result.rs:945:5
@asajeffrey
Copy link
Member Author

asajeffrey commented May 23, 2018

Also http://build.servo.org/builders/linux-rel-css/builds/8802 complained:

/usr/include/limits.h:123:16: fatal error: 'limits.h' file not found

All these errors make me suspicious about the libclang on our build machines.

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

Testing commit 7cfbdb4 with merge d6e4b9e...

bors-servo added a commit that referenced this pull request May 30, 2018
Get the mozjs crate to work with the mozjs_sys which uses bindgen

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

This is the matching PR to servo/mozjs#134 and servo/rust-mozjs#425 which runs bindgen on spidermonkey to produce Rust bindings.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because current tests should catch failures

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- 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/20793)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

💔 Test failed - mac-rel-wpt1

@asajeffrey
Copy link
Member Author

asajeffrey commented May 30, 2018

@bors-servo retry

  • infra
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

💔 Test failed - mac-rel-wpt3

@asajeffrey
Copy link
Member Author

asajeffrey commented May 30, 2018

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

@asajeffrey
Copy link
Member Author

asajeffrey commented May 30, 2018

@bors-servo retry

  • infra
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

@asajeffrey asajeffrey force-pushed the asajeffrey:bindgenup branch from 7cfbdb4 to d0cc9d2 May 30, 2018
@asajeffrey
Copy link
Member Author

asajeffrey commented May 30, 2018

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

📌 Commit d0cc9d2 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

Testing commit d0cc9d2 with merge 9f142b9...

bors-servo added a commit that referenced this pull request May 30, 2018
Get the mozjs crate to work with the mozjs_sys which uses bindgen

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

This is the matching PR to servo/mozjs#134 and servo/rust-mozjs#425 which runs bindgen on spidermonkey to produce Rust bindings.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because current tests should catch failures

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

<!-- 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/20793)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2018

@bors-servo bors-servo merged commit d0cc9d2 into servo:master May 30, 2018
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@paulrouget
Copy link
Contributor

paulrouget commented Jun 6, 2018

Since the mozjs v0.7.1 update, I can't compile anymore: #20958

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

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