near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
107 stars 76 forks source link

Build impossible #192

Open GaloisField2718 opened 1 year ago

GaloisField2718 commented 1 year ago

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 commented 1 year ago

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

GaloisField2718 commented 1 year ago

MacOS the last one.

nninkovicSQA commented 1 year ago

@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 commented 1 year ago

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

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

pmespresso commented 1 year ago

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

carina-akaia commented 1 year ago

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