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

Cannot build project with wabt on windows #972

Closed
xmclark opened this issue Dec 9, 2018 · 3 comments
Closed

Cannot build project with wabt on windows #972

xmclark opened this issue Dec 9, 2018 · 3 comments

Comments

@xmclark
Copy link

xmclark commented Dec 9, 2018

I found this while using another project that depends on wabt. I could not build the project on windows. I narrowed the issue down to wabt. I may not understand something about building wabt on windows (which is very likely). It appears to fail on linking a static library.

Dev environment:
Windows 10
Git Bash terminal or command prompt
stable-x86_64-pc-windows-msvc

Steps to reproduce:

  1. Make a rust library project with cargo
[package]
name = "test-install-wabt"
version = "0.1.0"
authors = ["author"]
edition = "2018"

[dependencies]
wabt = "0.7"
  1. Run cargo build --verbose

Output from cargo build:

error: could not find native static library `wabt`, perhaps an -L flag is missing?

error: aborting due to previous error

The following warnings were emitted during compilation:

warning: cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
warning: cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

error: Could not compile `wabt-sys`.

Caused by:
  process didn't exit successfully: `rustc --crate-name wabt_sys C:\Users\Mac\.cargo\registry\src\github.com-1ecc6299db9ec823\wabt-sys-0.5.1\src\lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=30eaec991ef17094 -C extra-filename=-30eaec991ef17094 --out-dir C:\Users\Mac\CLionProjects\test-install-wabt\target\debug\deps -L dependency=C:\Users\Mac\CLionProjects\test-install-wabt\target\debug\deps --cap-lints allow -L native=C:\Users\Mac\CLionProjects\test-install-wabt\target\debug\build\wabt-sys-e96e7bad3e0ee4c3\out\build -L native=C:\Users\Mac\CLionProjects\test-install-wabt\target\debug\build\wabt-sys-e96e7bad3e0ee4c3\out -l static=wabt -l static=wabt_shim` (exit code: 1)

I expected this to build without issue.

@binji
Copy link
Member

binji commented Dec 9, 2018

It seems this is a known issue with the wabt-rs crate on Windows: pepyakin/wabt-rs#20

@xmclark
Copy link
Author

xmclark commented Dec 9, 2018

@binji oops look like I posted in the wrong repo. No wonder I didn’t find anything in the issues. Thanks! I will close this unless there are objections.

@binji
Copy link
Member

binji commented Dec 10, 2018

No problem, I should probably make it clearer on this repo that issues for wabt-rs should be redirected there.

@binji binji closed this as completed Dec 10, 2018
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

No branches or pull requests

2 participants