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 Images anymore #32

Open
daggy1234 opened this issue Feb 12, 2021 · 0 comments · May be fixed by #33
Open

Cannot Build Images anymore #32

daggy1234 opened this issue Feb 12, 2021 · 0 comments · May be fixed by #33

Comments

@daggy1234
Copy link

Expected Behavior

When compiling actix-web using cargo wharf with docker build kit, the crate should compile

Compiled fine with a normal docker file, doesn't with cargo wharf.

Current Behavior

Errors with the following message

------
 > Compiling actix-web-codegen:
#242 2.736 error[E0432]: unresolved import `proc_macro`
#242 2.736   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-codegen-0.4.0/src/lib.rs:63:5
#242 2.736    |
#242 2.736 63 | use proc_macro::TokenStream;
#242 2.736    |     ^^^^^^^^^^ help: a similar path exists: `syn::proc_macro`
#242 2.754 
#242 3.138 error: aborting due to previous error
#242 3.138 
#242 3.138 For more information about this error, try `rustc --explain E0432`.
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = Unable to build the crate => caused by: Unable to solve the graph => caused by: grpc-status: Unknown, grpc-message: "failed to build LLB: executor failed running [rustc --edition=2018 --crate-name actix_web_codegen /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-codegen-0.4.0/src/lib.rs --color never --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C opt-level=3 -C metadata=a3bb0cb5e1cde293 -C extra-filename=-a3bb0cb5e1cde293 --out-dir /target/release/deps -L dependency=/target/release/deps --extern proc_macro2=/target/release/deps/libproc_macro2-d94ec969ac1bef7e.rlib --extern quote=/target/release/deps/libquote-0451cbe6c2d2830e.rlib --extern syn=/target/release/deps/libsyn-2ff5fc6c29cb0289.rlib --cap-lints allow]: runc did not terminate sucessfully"

Possible Solution

no idea but it suggests changing the import

Steps to Reproduce (for bugs)

  1. Setup Docker build kit and try and compile actix-we with cargo wharf

ex: https://github.com/Daggy1234/dagpi-auth

Context

Its hard to compile actix web with build kit

Your Environment

  • Rust Version (I.e, output of rustc -V): Docker(1.48.0)
  • Actix Web Version: 3.3.0
tinou98 added a commit to tinou98/cargo-wharf that referenced this issue Mar 24, 2021
tinou98 added a commit to tinou98/cargo-wharf that referenced this issue Mar 24, 2021
@tinou98 tinou98 linked a pull request Mar 24, 2021 that will close this issue
LeoAlex0 added a commit to LeoAlex0/dualoj-judge that referenced this issue Apr 28, 2021
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 a pull request may close this issue.

1 participant