Johni0702 / mumble-web-proxy

Mumble to WebSocket+WebRTC proxy for use with mumble-web
70 stars 25 forks source link

failed to run custom build command for `libnice-sys v0.3.0` #17

Open 5trongthany opened 4 years ago

5trongthany commented 4 years ago

I am trying to build the program again, but this time running into a different build error.

error: failed to run custom build command for `libnice-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/home/admin/mumble-web-proxy/target/release/build/libnice-sys-4bc01e3cb880e762/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=/usr/lib/x86_64-linux-gnu
cargo:rustc-link-lib=nice
cargo:rustc-link-lib=gio-2.0
cargo:rustc-link-lib=gobject-2.0
cargo:rustc-link-lib=glib-2.0
cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)

--- stderr
/usr/include/glib-2.0/glib/gmacros.h:38:10: fatal error: 'stddef.h' file not found
/usr/include/glib-2.0/glib/gmacros.h:38:10: fatal error: 'stddef.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/libnice-sys-0.3.0/build.rs:13:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The following is the list of previous components that built without issue. I'm not sure how much this helps but I want to be verbose.

 Compiling libc v0.2.68
   Compiling cfg-if v0.1.10
   Compiling proc-macro2 v1.0.10
   Compiling unicode-xid v0.2.0
   Compiling pkg-config v0.3.17
   Compiling autocfg v1.0.0
   Compiling log v0.4.8
   Compiling memchr v2.3.3
   Compiling cc v1.0.50
   Compiling syn v1.0.17
   Compiling lazy_static v1.4.0
   Compiling bitflags v1.2.1
   Compiling byteorder v1.3.4
   Compiling slab v0.4.2
   Compiling futures-core v0.3.4
   Compiling bytes v0.5.4
   Compiling fnv v1.0.6
   Compiling futures-sink v0.3.4
   Compiling glob v0.3.0
   Compiling futures-io v0.3.4
   Compiling proc-macro-nested v0.1.4
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.28
   Compiling version_check v0.9.1
   Compiling arc-swap v0.4.5
   Compiling futures v0.1.29
   Compiling proc-macro-hack v0.5.15
   Compiling typenum v1.11.2
   Compiling pin-project-lite v0.1.4
   Compiling futures-task v0.3.4
   Compiling matches v0.1.8
   Compiling regex-syntax v0.6.17
   Compiling quick-error v1.2.3
   Compiling pin-utils v0.1.0-alpha.4
   Compiling getrandom v0.1.14
   Compiling unicode-width v0.1.7
   Compiling smallvec v1.2.0
   Compiling protobuf v2.12.0
   Compiling vec_map v0.8.1
   Compiling bindgen v0.53.2
   Compiling ansi_term v0.11.0
   Compiling rustc-serialize v0.3.24
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.0
   Compiling shlex v0.1.1
   Compiling lazycell v1.2.1
   Compiling percent-encoding v2.1.0
   Compiling byte-tools v0.3.1
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling native-tls v0.2.4
   Compiling serde_derive v1.0.113
   Compiling gcc v0.3.55
   Compiling httparse v1.3.4
   Compiling ppv-lite86 v0.2.6
   Compiling openssl-probe v0.1.2
   Compiling fake-simd v0.1.2
   Compiling serde v1.0.113
   Compiling opaque-debug v0.2.3
   Compiling itoa v0.4.5
   Compiling utf-8 v0.7.5
   Compiling base64 v0.11.0
   Compiling fixedbitset v0.1.9
   Compiling argparse v0.2.2
   Compiling glib-sys v0.9.1
   Compiling gobject-sys v0.9.1
   Compiling gio-sys v0.9.1
   Compiling num-traits v0.2.11
   Compiling num-integer v0.1.42
   Compiling num-iter v0.1.40
   Compiling openssl-sys v0.9.54
   Compiling libloading v0.5.2
   Compiling thread_local v1.0.1
   Compiling input_buffer v0.3.1
   Compiling futures-channel v0.3.4
   Compiling clang-sys v0.29.3
   Compiling foreign-types v0.3.2
   Compiling nom v5.1.1
   Compiling unicode-bidi v0.3.4
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling unicode-normalization v0.1.12
   Compiling block-padding v0.1.5
   Compiling rust-crypto v0.2.36 (https://github.com/awmath/rust-crypto.git?branch=avx2#394c2472)
   Compiling http v0.2.1
   Compiling idna v0.2.0
   Compiling iovec v0.1.4
   Compiling net2 v0.2.33
   Compiling signal-hook-registry v1.2.0
   Compiling num_cpus v1.12.0
   Compiling atty v0.2.14
   Compiling rand v0.4.6
   Compiling which v3.1.1
   Compiling time v0.1.42
   Compiling quote v1.0.3
   Compiling aho-corasick v0.7.10
   Compiling handy_async v0.2.13
   Compiling generic-array v0.12.3
   Compiling url v2.1.1
   Compiling protobuf-codegen v2.12.0
   Compiling bytes v0.4.12
   Compiling mio v0.6.21
   Compiling clap v2.33.0
   Compiling rand v0.3.23
   Compiling rand_core v0.5.1
   Compiling num-complex v0.1.43
   Compiling regex v1.3.6
   Compiling cexpr v0.4.0
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling webrtc-sdp v0.3.4
   Compiling protobuf-codegen-pure v2.12.0
   Compiling tokio-io v0.1.13
   Compiling mio-uds v0.6.7
   Compiling trackable v0.1.8
   Compiling rand_chacha v0.2.2
   Compiling tokio-macros v0.2.5
   Compiling futures-macro v0.3.4
   Compiling pin-project-internal v0.4.8
   Compiling async-trait v0.1.29
   Compiling num-bigint v0.1.44
   Compiling env_logger v0.7.1
   Compiling sha-1 v0.8.2
   Compiling mumble-protocol v0.3.0
   Compiling rand v0.7.3
   Compiling tokio v0.2.15
   Compiling futures-util v0.3.4
   Compiling pin-project v0.4.8
   Compiling num-rational v0.1.42
   Compiling tungstenite v0.10.1
   Compiling tokio-util v0.3.1
   Compiling tokio-openssl v0.4.0
   Compiling tokio-tls v0.3.0
   Compiling futures-executor v0.3.4
   Compiling toml v0.5.6
   Compiling num v0.1.42
   Compiling libnice-sys v0.3.0
   Compiling futures v0.3.4
   Compiling glib v0.9.3

Let me know if there is anything else I can add to help out. Thank you!

Elinvention commented 4 years ago

I had the same issue, but I fixed it by installing libnice on my distro.

aduerig commented 3 years ago

I had the same warnings at the top of your log:

cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)

I installed llvm and clang, and then my cargo was able to build the libnice dependency correctly.

amdadulbari commented 3 years ago

sudo apt-get install llvm sudo apt-get install clang

Fixed the issue in my ubuntu distro.

azhsmesos commented 1 year ago

I had the same warnings at the top of your log:

cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)

I installed llvm and clang, and then my cargo was able to build the libnice dependency correctly.

I have some error

==> Installing libnice dependency: libevent
==> Pouring libevent-2.1.12.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libevent/2.1.12: 57 files, 2MB
==> Installing libnice dependency: libnghttp2
==> Pouring libnghttp2-1.50.0.big_sur.bottle.tar.gz
Error: No such file or directory @ rb_sysopen - /Users/zhaozhenhang/Library/Caches/Homebrew/downloads/9edd543c93876725f9c26dc7863f7312835cf522346859d092474bb3024e478e--libnghttp2-1.50.0.big_sur.bottle.tar.gz

when I run brew install libnice command.