GithubHelp home page GithubHelp logo

Comments (8)

sajattack avatar sajattack commented on May 29, 2024

Did you cargo build or cargo psp?

from rust-psp.

randomshinichi avatar randomshinichi commented on May 29, 2024

cargo psp

from rust-psp.

overdrivenpotato avatar overdrivenpotato commented on May 29, 2024

This is odd, the same toolchain version works on linux for me. Maybe the lld version is off, or perhaps you have conflicting rust-llds somehow. Can you run the following from the hello-world directory:

rustc --print sysroot

And then also, to check the rust-lld version:

cd ~/.rustup/toolchains/nightly-2021-12-05-x86_64-unknown-linux-gnu/lib
LD_LIBRARY_PATH=. ./rustlib/x86_64-unknown-linux-gnu/bin/rust-lld -flavor gnu -v

from rust-psp.

randomshinichi avatar randomshinichi commented on May 29, 2024
shinichi@asuka:~/source/rust-psp/examples/rust-std-hello-world[master] rustc --print sysroot
/home/shinichi/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu
shinichi@asuka:~/source/rust-psp/examples/rust-std-hello-world[master] cd ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
shinichi@asuka:~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib LD_LIBRARY_PATH=. ./rustlib/x86_64-unknown-linux-gnu/bin/rust-ll
rust-lld       rust-llvm-dwp  
shinichi@asuka:~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib LD_LIBRARY_PATH=. ./rustlib/x86_64-unknown-linux-gnu/bin/rust-lld -flavor gnu -v
LLD 13.0.0 (compatible with GNU linkers)

Today I tried to run cargo psp again, for some reason it wanted to recompile rust-psp. Then it seems every macro doesn't work...

error: cannot find macro `concat` in this scope
   --> /home/shinichi/source/rust-psp/psp/src/sys/macros.rs:176:25
    |
176 |                           concat!(
    |                           ^^^^^^
    |
   ::: /home/shinichi/source/rust-psp/psp/src/sys/display.rs:38:1
    |
38  | / psp_extern! {
39  | |     #![name = "sceDisplay"]
40  | |     #![flags = 0x4001]
41  | |     #![version = (0, 0)]
...   |
145 | |     pub fn sceDisplayIsVblank() -> i32;
146 | | }
    | |_- in this macro invocation
    |
    = note: consider importing this macro:
            core::concat
    = note: this error originates in the macro `psp_extern` (in Nightly builds, run with -Z macro-backtrace for more info)

Maybe my rustup toolchain is completely broken and I should reinstall everything?

from rust-psp.

overdrivenpotato avatar overdrivenpotato commented on May 29, 2024

Could be. Try this in the hello-world directory:

cargo uninstall cargo-psp
rustup toolchain uninstall nightly
rustup toolchain install --profile default nightly
rustup override set nightly
rustup component add rust-src
cargo install cargo-psp
cargo clean
cargo psp

from rust-psp.

sajattack avatar sajattack commented on May 29, 2024

Are you trying to use std? That isn't ready/recommended at this time.

from rust-psp.

overdrivenpotato avatar overdrivenpotato commented on May 29, 2024

Was this resolved on your end, or possibly by one of the new library versions? I'll keep the issue open if it's still causing trouble.

from rust-psp.

overdrivenpotato avatar overdrivenpotato commented on May 29, 2024

I'm assuming this has been fixed with a toolchain update, as I cannot reproduce this. Feel free to re-open this issue if it is still causing problems.

from rust-psp.

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.