Git Product home page Git Product logo

Comments (4)

brson avatar brson commented on June 19, 2024

It's a strange error. This is happening while rbpf-tests is running cargo (from the sbf toolchain) to build the move-native crate. move-native is a no_std crate, which means all its dependencies should be configured not to use the standard library, but this error from inside serde seems to be related to compiling support for the std Error trait. So something here is confused about the configuration probably.

I haven't seen this yet, but it could have happened after a dependency changed in the lockfile, in this case probably language/move-native/Cargo.lock, or it could be related to being on a different version of SBF tools, which I see has had a new release since I last ran these tests.

from move.

brson avatar brson commented on June 19, 2024

It could be that after an upgrade of something cargo is confused by its own metadata. The build artifacts for this particular build are in language/tools/move-mv-llvm-compiler/tests/cargo-target-dir. Deleting that dir may solve the problem.

from move.

ksolana avatar ksolana commented on June 19, 2024

Removing language/tools/move-mv-llvm-compiler/tests/cargo-target-dir did not fix it.

Attached is the full error log for the following command:

$ export LLVM_SYS_150_PREFIX=$HOME/sbf-tools/llvm-project/build
$ export SBF_TOOLS_ROOT=$HOME/sbf-tools/releases/v1.32
$ cargo test
error.txt

from move.

brson avatar brson commented on June 19, 2024

In the log output you posted the first error is:

building move-native runtime for sbf
   Compiling generic-array v0.14.6
   Compiling typenum v1.16.0
   Compiling keccak v0.1.3
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.152
error[E0463]: can't find crate for `core`
  |
  = note: the `sbf-solana-solana` target may not be installed
  = help: consider downloading the target with `rustup target add sbf-solana-solana`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

The build is failing because rustc can't find the core library for the sbf-solana-solana target. This probably indicates something broken in the sbf tools installation. the sbf tools should have a rust/lib/rustlib/sbf-solana-solana/lib directory, and that directory should contain a file like libcore-0d7011e845091c1c.rlib

from move.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.