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 error on too new clang #18

Closed
selfisekai opened this issue Mar 30, 2023 · 0 comments
Closed

build error on too new clang #18

selfisekai opened this issue Mar 30, 2023 · 0 comments

Comments

@selfisekai
Copy link

I believe it is an effect of this issue: rust-lang/rust-bindgen#2312

  [100%] Linking C static library libcrypto.a
  [100%] Built target crypto
  make[1]: Leaving directory '/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/build/Release/obj.target/libsignal_client_linux_x64.node/geni/rust/x86_64-alpine-linux-musl/release/build/boring-sys-72ca916521d22009/out/build'
  cargo:root=/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/build/Release/obj.target/libsignal_client_linux_x64.node/geni/rust/x86_64-alpine-linux-musl/release/build/boring-sys-72ca916521d22009/out
  cargo:rustc-link-search=native=/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/build/Release/obj.target/libsignal_client_linux_x64.node/geni/rust/x86_64-alpine-linux-musl/release/build/boring-sys-72ca916521d22009/out/build/
  cargo:rustc-link-lib=static=crypto
  cargo:rerun-if-env-changed=BORING_BSSL_INCLUDE_PATH

  --- stderr
  make[1]: warning: -j8 forced in submake: resetting jobserver mode.
  thread 'main' panicked at '"pthread_attr_t_union_(unnamed_at_/usr/include/bits/alltypes_h_378_18)" is not a valid Ident', /home/lauren/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/src/fallback.rs:702:9
  stack backtrace:
     0: rust_begin_unwind
     1: core::panicking::panic_fmt
     2: proc_macro2::fallback::validate_ident
     3: proc_macro2::fallback::Ident::_new
     4: proc_macro2::fallback::Ident::new
     5: proc_macro2::imp::Ident::new
     6: proc_macro2::Ident::new
     7: bindgen::ir::context::BindgenContext::rust_ident_raw
     8: bindgen::ir::context::BindgenContext::rust_ident
     9: <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen
    10: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
    11: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    12: <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen
    13: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
    14: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    15: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}
    16: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen
    17: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    18: bindgen::codegen::codegen::{{closure}}
    19: bindgen::ir::context::BindgenContext::gen
    20: bindgen::codegen::codegen
    21: bindgen::Bindings::generate
    22: bindgen::Builder::generate
    23: build_script_build::main
    24: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
ERROR: cargo failed
make: *** [libsignal_client_linux_x64.node.target.mk:17: 81151515b8c6a3dbe5e45d9ca84db703a61ee0ca.intermediate] Error 1
rm 81151515b8c6a3dbe5e45d9ca84db703a61ee0ca.intermediate
make: Leaving directory '/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 6.1.21-0-lts
gyp ERR! command "/usr/bin/node" "/home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node/node_modules/.bin/node-gyp" "build" "--nodedir=/usr/include/electron/node_headers" "--build-from-source"
gyp ERR! cwd /home/lauren/aports/testing/signal-desktop/src/libsignal-0.22.0/node
gyp ERR! node -v v18.15.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok 
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant