Giter Club home page Giter Club logo

Comments (9)

jdm avatar jdm commented on June 14, 2024 1

This is caused by the newest version of llvm, and is addressed by rust-lang/rust-bindgen#2667. We need a newer version of bindgen to be released, but you can add a cargo override in cargo.toml:

[patch.crates-io]
bindgen = { git = 'https://github.com/sagudev/rust-bindgen.git', branch="f16" }

from servo.

mrobinson avatar mrobinson commented on June 14, 2024 1

@treeshateorcs It should be listed here already: https://github.com/servo/servo/wiki/Building#arch

I think there's an issue where for Arch Linux, people running ./mach boostrap are not directed to that page though.

from servo.

treeshateorcs avatar treeshateorcs commented on June 14, 2024

unfortunately it fails with the same problem

error: failed to run custom build command for `mozjs_sys v0.68.2 (https://github.com/s
ervo/mozjs#01d777e1)`

from servo.

jdm avatar jdm commented on June 14, 2024

What's the rest of the output?

from servo.

jdm avatar jdm commented on June 14, 2024

And what is the output of git diff?

from servo.

treeshateorcs avatar treeshateorcs commented on June 14, 2024

git diff

diff --git a/Cargo.lock b/Cargo.lock
index 7ae608edba..909be08b43 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -393,8 +393,7 @@ dependencies = [
 [[package]]
 name = "bindgen"
 version = "0.68.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078"
+source = "git+https://github.com/sagudev/rust-bindgen.git?branch=f16#ee0c03f00241c8955fdba06876db3e6f7253ddda"
 dependencies = [
  "bitflags 2.4.1",
  "cexpr",
diff --git a/Cargo.toml b/Cargo.toml
index 6498c17233..2b4b365e7a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,6 +122,7 @@ inherits = "release"
 debug-assertions = false
 
 [patch.crates-io]
+bindgen = { git = 'https://github.com/sagudev/rust-bindgen.git', branch = "f16" }
 # If you need to temporarily test Servo with a local fork of some upstream
 # crate, add that here. Use the form:
 #

the rest of the output https://0x0.st/HgLQ.txt

from servo.

mrobinson avatar mrobinson commented on June 14, 2024

Pertinent error:

  ERROR: Cannot find llvm-objdump

from servo.

treeshateorcs avatar treeshateorcs commented on June 14, 2024

apparently i had no llvm package on my system at all for some reason. i just installed it and it looks like it builds properly! thank you @mrobinson

from servo.

treeshateorcs avatar treeshateorcs commented on June 14, 2024

should llvm be added here? https://github.com/servo/servo/blob/1f0f50b22bb43e965febf31f5a436113f2958725/README.md?plain=1#L37C8-L37C8 (and probably in other distros?)

from servo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.