Comments (18)
i dont think this is an ogc-rs issue specifically, can you build any of the libogc examples
from ogc-rs.
Yeah I believe the same - somehow your emulation mode is set to one that doesn't exist, but I've never actually come across this option. I would have to imagine this is a configuration issue with how your install of devkitPPC is set up, I did look it up but couldn't really find anything specific to this. I have seen with other toolchains that sometimes this can happen due to bad permissions when setting up the toolchain or extracting components of it from an archive, could this be what happened here?
If you can figure out how to change the option I think elf32ppc is the right option.
from ogc-rs.
compiling the sockettest wii example (which uses libogc) have no problem compiling
from ogc-rs.
i just have a question, which ld should be used?
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-ld
or
/opt/devkitpro/devkitPPC/powerpc-eabi/bin/ld
from ogc-rs.
because this error is caused when /opt/devkitpro/devkitPPC/powerpc-eabi/bin is in the path
from ogc-rs.
devkitpro/devkitppc/bin/powerpc-eabi-ld
from ogc-rs.
Alright, because i am getting another error with this one
from ogc-rs.
= note: /opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-vfprintf.o): in function `_vfprintf_r':
(.text._vfprintf_r+0x2464): undefined reference to `_restfpr_31_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-vfprintf.o): in function `__sbprintf':
(.text.__sbprintf+0xfc): undefined reference to `_restgpr_26_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-vfiprintf.o): in function `__sprint_r':
(.text.__sprint_r+0xc8): undefined reference to `_restgpr_24_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-vfiprintf.o): in function `_vfiprintf_r':
(.text._vfiprintf_r+0x13f4): undefined reference to `_restgpr_14_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-vfiprintf.o): in function `__sbprintf':
(.text.__sbprintf+0xfc): undefined reference to `_restgpr_26_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libsysbase_libsysbase_a-sbrk.o): in function `_sbrk_r':
(.text._sbrk_r+0x6e): undefined reference to `__end__'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: (.text._sbrk_r+0x72): undefined reference to `__end__'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-svfprintf.o): in function `_svfprintf_r':
(.text._svfprintf_r+0x2338): undefined reference to `_restfpr_31_x'
/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.1.0/../../../../powerpc-eabi/bin/ld: /mnt/c/Users/antoi/Desktop/ogc-rs-master/examples/template/target/powerpc-unknown-eabi/debug/deps/libogc_sys-a4e1ebc8c0948490.rlib(libc_a-svfiprintf.o): in function `__ssprint_r':
(.text.__ssprint_r+0x19c): undefined reference to `_restgpr_22_x'
collect2: error: ld returned 1 exit status
from ogc-rs.
here are the complete logs:
https://hastebin.com/share/simucuxowo.vbnet
from ogc-rs.
the lib itself can be compiled without problem, but the exemples cannot compile
from ogc-rs.
I can also confirm this tafter trying to figure it out for 4 hoursor so. if anyone has ideas im all ears
from ogc-rs.
so it's not just me who messed up the installation
from ogc-rs.
I've been looking, and it seems that _restfpr_31_x (the first undefined reference) is in devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/libgcc.a(crtresxfpr.o)
and end doesn't exists
according to this source:
https://github.com/mrexodia/MAGIC1_fixer/blob/master/source/build/boot.elf.map
from ogc-rs.
and _vfprintf_r is from devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/lib/libc.a(lib_a-vfprintf.o)
from ogc-rs.
Maybe the way it compiled changed, or the build argument changed, and this is why it doesn't work?
from ogc-rs.
basically, this is the command used while using the c template:
powerpc-eabi-gcc template.o -g -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -Wl,-Map,template.elf.map -L/opt/devkitpro/libogc/lib/wii -lwiiuse -lbte -logc -lm -o /opt/devkitpro/examples/wii/template/template.elf
from ogc-rs.
I noticed that those:
-lwiiuse -lbte -logc -lm
Weren't present in the command cargo used
from ogc-rs.
Still present in this version of ogc-rs
from ogc-rs.
Related Issues (20)
- ogc-sys's build.rs does not give good panics/errors when you dont have devkitpro or devkitPPC HOT 1
- The memory macros require a direct link to `ogc_sys` we should instead point the to $crate::ffi HOT 3
- GX functions should not have to rely on ffi to get good values. HOT 2
- ogc-sys's `Mtx34` and `Mtx44` should have wrapper type in ogc-rs HOT 4
- There is no identity for `Mtx44` type in the gu implementation requiring the use of `ffi` :( HOT 3
- Not all gx drawing commands are implemented in gx. HOT 7
- Enhancement: Input can be more useful. HOT 3
- Refactor ogc-rs to use crate::ffi instead of ogc_sys HOT 1
- The embedded-graphics-wii example does not support Circle
- CLIPPY COMPLAINS ALOT.
- Video::configure and System::allocate_framebuffer should take a reference to the render config and not consume it. HOT 2
- TPL related functions are not implemented/shown in ogc-rs (requires ffi) HOT 3
- Future incompatibility in ogc-sys v0.1.0
- Voladdress yanked, breaking ogc-rs dependency fetch HOT 1
- Cannot build due to ffi functions not found HOT 15
- ld error while compiling examples HOT 10
- Use `OnceCell` to ensure subsystems are only initialized once HOT 1
- `get_clang_version` does not parse the version correctly HOT 1
- stdbool.h not found when compiling ogc-sys and LLVM's target data-layout changing 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 ogc-rs.