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 impossible #192

Open
GaloisField2718 opened this issue Nov 4, 2022 · 6 comments
Open

Build impossible #192

GaloisField2718 opened this issue Nov 4, 2022 · 6 comments

Comments

@GaloisField2718
Copy link

Hello everyone,

I didn't compile this repo since a long time ago and now there is an issue in compiling with ./build.sh

Capture d’écran 2022-11-04 à 17 27 23

I searched into near-sdk-4.0.0-pre.7/src/lib.rs:9:59 but obviously when I modify near_bindgen in near_bingen many many many new issues come from the hood.

I have no idea about how to solve this issue. If you have so, I'm grateful !

@nninkovicSQA
Copy link
Contributor

@GaloisField2718 Can you tell me what OS are you using?

@GaloisField2718
Copy link
Author

MacOS the last one.

@nninkovicSQA
Copy link
Contributor

@GaloisField2718 Have you tried:

$rustup target add wasm32-unknown-unknown
$cargo install cargo-generate --features vendored-openssl

And see if it works after that?

@pmespresso
Copy link

pmespresso commented Nov 17, 2022

I've tried this after a clean install of near-cli and rust and it fails to build with 209 errors :*)

It complains that the wasm32-unknown-unknown target may not be installed but even if I address it with rustup target add wasm32-unknown-unknown the same set of errors

@pmespresso
Copy link

Update: wiped rustup toolchain and clean reinstalled everything. Now works without problem.

@carina-akaia
Copy link

carina-akaia commented Mar 10, 2023

Hi everyone, I can't build the contract as well, but for another reason

Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0463, E0531.
error: could not compile `serde` due to 1561 previous errors

I can't even capture the full build log, but a big part of it is in this gist: https://gist.github.com/near-akaia-root/2a80209df89e7cdf0e7bb174a6fa3bed

UPD: I managed to get a successful build by deleting +stable flag in /build.sh

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

4 participants