Git Product home page Git Product logo

Comments (18)

ProfElements avatar ProfElements commented on May 18, 2024

i dont think this is an ogc-rs issue specifically, can you build any of the libogc examples

from ogc-rs.

Daxorinator avatar Daxorinator commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

compiling the sockettest wii example (which uses libogc) have no problem compiling

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

because this error is caused when /opt/devkitpro/devkitPPC/powerpc-eabi/bin is in the path

from ogc-rs.

ProfElements avatar ProfElements commented on May 18, 2024

devkitpro/devkitppc/bin/powerpc-eabi-ld

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

Alright, because i am getting another error with this one

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024
  = 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.

antoineok avatar antoineok commented on May 18, 2024

here are the complete logs:
https://hastebin.com/share/simucuxowo.vbnet

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

the lib itself can be compiled without problem, but the exemples cannot compile

from ogc-rs.

ProfElements avatar ProfElements commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

so it's not just me who messed up the installation

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

Maybe the way it compiled changed, or the build argument changed, and this is why it doesn't work?

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

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.

antoineok avatar antoineok commented on May 18, 2024

I noticed that those:
-lwiiuse -lbte -logc -lm
Weren't present in the command cargo used

from ogc-rs.

antoineok avatar antoineok commented on May 18, 2024

Still present in this version of ogc-rs

from ogc-rs.

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.