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

add support for nongnu-libunwind #102

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

YangKeao
Copy link
Member

@YangKeao YangKeao commented Feb 24, 2022

Signed-off-by: YangKeao yangkeao@chunibyo.icu

First part of the #75 (comment) . Allow users to (dynamically) link with nongnu-libunwind (through libunwind-sys)

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@YangKeao
Copy link
Member Author

Tonight (after I go home), I will test this PR on raspberry pi.

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
* fix memory leak in collector

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* use default for collector

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* allow uninit assumed init

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

* use vector to initialize array

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
@zone117x
Copy link

I wasn't able to get this compiling on linux arm64 or macOS arm64/m1.

Error when compiling from a linux arm64 host (using the docker image rust:latest):

error[E0583]: file not found for module `native`
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libunwind-sys-0.5.1/src/lib.rs:19:1
   |
19 | mod native;
   | ^^^^^^^^^^^
   |
   = help: to create the module `native`, create file "/usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libunwind-sys-0.5.1/src/native.rs" or "/usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libunwind-sys-0.5.1/src/native/mod.rs"

error: couldn't read /Users/matt/Projects/stacks-encoding-native-js/target/aarch64-unknown-linux-gnu/release/build/libunwind-sys-59553bb4f6bd6fb9/out/bindings.rs: No such file or directory (os error 2)
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/libunwind-sys-0.5.1/src/lib.rs:12:1
   |
12 | include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0583`.
The following warnings were emitted during compilation:

warning: target aarch64-unknown-linux-gnu is unsupported

error: could not compile `libunwind-sys` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants