Code Monkey home page Code Monkey logo

Comments (3)

FenrirWolf avatar FenrirWolf commented on September 27, 2024 1

Yeah, that's the "fun" part about having a separate fork of std. I've been meaning to go through and update stuff in there now that rust 1.17.0 is out. Hopefully that will knock these errors out.

from rust3ds-template.

kentaromiura avatar kentaromiura commented on September 27, 2024

JFYI seems that with kentaromiura/ctru-rs@e617cba I manage to compile, but I get a failure during link phase;
I think rustc is compiling the template project without hard float for some reason; I get a bunch of

/opt/devkitPro/devkitARM/bin/../lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld: error: /opt/devkitPro/libctru/lib/libctru.a(ac.o) uses VFP register arguments, /home/kentaromiura/experiments/Rust/rust3ds-template/target/3ds/release/deps/rust3ds_template-fb8e6e7661b175c7.elf does not

Not sure why.

from rust3ds-template.

kentaromiura avatar kentaromiura commented on September 27, 2024

As for my last comment I managed to get it work now by moving all the link flags to the .cargo/config file:

[build]
target = "3ds"

[target.3ds]
linker = "arm-none-eabi-gcc"
rustflags = [
    "-Clink-arg=-specs=3dsx.specs",
    "-Clink-arg=-mfloat-abi=hard",
    "-Clink-arg=-march=armv6k",
    "-Clink-arg=-mtune=mpcore",
    "-Clink-arg=-mfpu=vfp",
    "-Clink-arg=-mtp=soft",
    "-Clink-arg=-lc",
    "-Clink-arg=-lm",
    "-Clink-arg=-lc",
    "-Clink-arg=-lsysbase",
    "-Clink-arg=-lc"
]

Probably not the best way but at least now I can compile fine.

from rust3ds-template.

Related Issues (7)

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.