Comments (13)
from psp2-sys.
@althonos 😂 It not works with lastest common.toml
just now. Ok, it's early morning, I'm going to sleep.
from psp2-sys.
Ok for some reason the condition_script
does not seem to work, so I removed it. This time it should work for real I hope.
from psp2-sys.
@althonos Yeah, it works now.👍
from psp2-sys.
I fixed the removed panic_implementation
feature, and it works on my Linux. It seems like the MacOS sed
is not behaving like the Linux one...
from psp2-sys.
I fixed the removed
panic_implementation
feature, and it works on my Linux. It seems like the MacOSsed
is not behaving like the Linux one...
Yeah, it works on my Linux, too.
from psp2-sys.
BSD sed is different with gun sed. Now, I just do install gun-sed on my Mac.
brew install gnu-sed --with-default-names
from psp2-sys.
I'll be patching common.toml
in vita-rust/common so that I use Rust instead (no undefined behaviour).
from psp2-sys.
Just now, I edit common.toml
in my local, and it works. Thank you very much.
'sed -i "" "s/%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}//g" "${TARGET_LINKER_SPECS}"',
'sed -i "" "s/crt0%O%s//g" "${TARGET_LINKER_SPECS}"'
from psp2-sys.
@althonos Sorry, My English is not good. But, good job. Thank you.
from psp2-sys.
@limitLiu : no problem at all ! 😉
from psp2-sys.
Did you manually remove the common.toml
file for cargo make
to download the new one ?
from psp2-sys.
@althonos I just git clone the repo, and run cargo make vpk
.
[cargo-make] INFO - cargo-make 0.14.0
[cargo-make] INFO - Using Build File: Makefile.toml
[cargo-make] INFO - Task: vpk
+ cd /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world
+ '[' '!' -f common.toml ']'
+ curl -SsL https://github.com/vita-rust/common/raw/master/common.toml
[cargo-make] INFO - Setting Up Env.
[cargo-make] INFO - Running Task: init
[cargo-make] INFO - Running Task: get-target-specs
+ cd /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world
+ test '!' -f /Users/liuyu/.rustup/toolchains/nightly-x86_64-apple-darwin/share/targets/armv7-vita-eabihf.json
[cargo-make] INFO - Running Task: xbuild
[cargo-make] INFO - Execute Command: "xargo" "build" "--target=armv7-vita-eabihf" "--release" "-vv" "--all-features"
+ "rustc" "--print" "sysroot"
+ "rustc" "--print" "target-list"
+ RUSTFLAGS="--sysroot /Users/liuyu/.xargo"
+ "cargo" "build" "--target=armv7-vita-eabihf" "--release" "-vv" "--all-features"
Compiling psp2-sys v0.2.2 (/Users/liuyu/Documents/developer/Rust/psp2-sys)
Running `rustc --crate-name build_script_build /Users/liuyu/Documents/developer/Rust/psp2-sys/build.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' -C metadata=e930c0388caab73a -C extra-filename=-e930c0388caab73a --out-dir /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/release/build/psp2-sys-e930c0388caab73a -L dependency=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/release/deps`
Running `/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/release/build/psp2-sys-e930c0388caab73a/build-script-build`
[psp2-sys 0.2.2] cargo:rustc-link-search=/usr/local/vitasdk/arm-vita-eabi/lib
Running `rustc --crate-name psp2_sys /Users/liuyu/Documents/developer/Rust/psp2-sys/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C panic=abort --cfg 'feature="default"' -C metadata=1547af699972a3c0 -C extra-filename=-1547af699972a3c0 --out-dir /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/armv7-vita-eabihf/release/deps --target armv7-vita-eabihf -L dependency=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/armv7-vita-eabihf/release/deps -L dependency=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/release/deps --sysroot /Users/liuyu/.xargo -L /usr/local/vitasdk/arm-vita-eabi/lib`
warning: literal out of range for isize
--> /Users/liuyu/Documents/developer/Rust/psp2-sys/src/dialog/message.rs:10:34
|
10 | SCE_MSG_DIALOG_ERROR_PARAM = 0x80100A01, // Illegal parameter
| ^^^^^^^^^^
|
= note: #[warn(overflowing_literals)] on by default
= note: the literal `0x80100A01` (decimal `2148534785`) does not fit into an `isize` and will become `-2146432511isize`
warning: literal out of range for isize
--> /Users/liuyu/Documents/developer/Rust/psp2-sys/src/system_param.rs:18:37
|
18 | SCE_SYSTEM_PARAM_ID_MAX_VALUE = 0xFFFFFFFF,
| ^^^^^^^^^^
|
= note: the literal `0xFFFFFFFF` (decimal `4294967295`) does not fit into an `isize` and will become `-1isize`
warning: literal out of range for isize
--> /Users/liuyu/Documents/developer/Rust/psp2-sys/src/system_param.rs:64:39
|
64 | SCE_SYSTEM_PARAM_LANG_MAX_VALUE = 0xFFFFFFFF,
| ^^^^^^^^^^
|
= note: the literal `0xFFFFFFFF` (decimal `4294967295`) does not fit into an `isize` and will become `-1isize`
warning: literal out of range for isize
--> /Users/liuyu/Documents/developer/Rust/psp2-sys/src/system_param.rs:71:47
|
71 | SCE_SYSTEM_PARAM_ENTER_BUTTON_MAX_VALUE = 0xFFFFFFFF,
| ^^^^^^^^^^
|
= note: the literal `0xFFFFFFFF` (decimal `4294967295`) does not fit into an `isize` and will become `-1isize`
Compiling bare_metal_rust v0.1.0 (/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world)
Running `rustc --crate-name bare_metal_rust src/lib.rs --color always --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C panic=abort -C lto -C metadata=f695c2044baff39a -C extra-filename=-f695c2044baff39a --out-dir /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/armv7-vita-eabihf/release/deps --target armv7-vita-eabihf -L dependency=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/armv7-vita-eabihf/release/deps -L dependency=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/release/deps --extern psp2_sys=/Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world/target/armv7-vita-eabihf/release/deps/libpsp2_sys-1547af699972a3c0.rlib --sysroot /Users/liuyu/.xargo -L /usr/local/vitasdk/arm-vita-eabi/lib`
warning: the feature `panic_handler` has been stable since 1.30.0 and no longer requires an attribute to enable
--> src/lib.rs:2:41
|
2 | #![feature(lang_items, core_intrinsics, panic_handler, start, used, const_fn)]
| ^^^^^^^^^^^^^
|
= note: #[warn(stable_features)] on by default
warning: the feature `used` has been stable since 1.30.0 and no longer requires an attribute to enable
--> src/lib.rs:2:63
|
2 | #![feature(lang_items, core_intrinsics, panic_handler, start, used, const_fn)]
| ^^^^
warning: unused `core::result::Result` that must be used
--> src/lib.rs:26:5
|
26 | write!(screen, "This bare-metal is starting to rust!\n");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused `core::result::Result` that must be used
--> src/lib.rs:28:5
|
28 | write!(screen, "See ? I told you !\n");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
Finished release [optimized] target(s) in 1.34s
[cargo-make] INFO - Running Task: patch-cc-specs
[cargo-make] INFO - Running Task: elf
+ cd /Users/liuyu/Documents/developer/Rust/psp2-sys/examples/hello_rust_world
+ arm-vita-eabi-gcc -Wl,-q -specs=target/armv7-vita-eabihf/release/specs -Ltarget/armv7-vita-eabihf/release -lbare_metal_rust -otarget/armv7-vita-eabihf/release/bare_metal_rust.elf
arm-vita-eabi-gcc: error: target/armv7-vita-eabihf/release/specs: No such file or directory
[cargo-make] ERROR - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.
from psp2-sys.
Related Issues (3)
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 psp2-sys.