Comments (8)
Did you cargo build
or cargo psp
?
from rust-psp.
cargo psp
from rust-psp.
This is odd, the same toolchain version works on linux for me. Maybe the lld version is off, or perhaps you have conflicting rust-lld
s 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.
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.
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.
Are you trying to use std? That isn't ready/recommended at this time.
from rust-psp.
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.
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)
- Add support for missing libm functions HOT 4
- Unable to compile hello world HOT 2
- Core support HOT 6
- Matrices are transposed HOT 5
- psp::math::cosf32 crashes PSP HOT 1
- Problem with rust-lld HOT 4
- cargo psp issue HOT 5
- cargo-psp tries to build the .prx and EBOOT.PBP for a non-PSP binary in a workspace
- How to draw sprites to display without embedded graphics? HOT 2
- cargo psp doesn't seem to work in workspaces HOT 2
- How to send HTTP requests? HOT 3
- Cannot build HOT 1
- builds failed HOT 1
- can't build any program HOT 5
- Reduce usage of nighlty features HOT 3
- Fix Panic/Exception Support HOT 1
- Missing VFPU Instructions
- cannot build HOT 2
- Cannot Build `examples/rust-std-hello-world` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-psp.