devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

_sbrk_r undefined reference to __end__ #314

Closed sasdallas closed 1 year ago

sasdallas commented 1 year ago

My apologies if this does not belong here, but I am unable to figure out this error. Yesterday I was able to compile fine, but now I can't compile any Wii U applications ever since I upgraded.

The error happens during linking, and fails within the libsysbase.a function.

The error is:

/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/12.2.0/../../../../powerpc-eabi/bin/ld: /opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/12.2.0/../../../../powerpc-eabi/lib/libsysbase.a(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/12.2.0/../../../../powerpc-eabi/bin/ld: (.text._sbrk_r+0x72): undefined reference to `__end__'
collect2: error: ld returned 1 exit status

Is this a problem on my side or something else?

sasdallas commented 1 year ago

I believe this commit is the reason: https://github.com/devkitPro/wut/commit/803b1417c48f65b226bda08931a98f2813a1bae1

WinterMute commented 1 year ago

We're currently releasing things and you've updated in the middle. Normal service will resume shortly.

sasdallas commented 1 year ago

Thank you, I apologize for wasting your time.