socram8888 / tonyhax

PS1 savegame exploit
Do What The F*ck You Want To Public License
438 stars 24 forks source link

1.4.3 Build issues #138

Closed podstanar0 closed 2 years ago

podstanar0 commented 2 years ago

Hey, followed your development guide and when on final step i run make, this is the output error:

mips-linux-gnu-ld: secondary.o: in function `try_boot_cd':
secondary.c:(.text.try_boot_cd+0x224): undefined reference to `memset'
mips-linux-gnu-ld: secondary.o: in function `start':
secondary.c:(.start+0x20): undefined reference to `__memset_chk'
mips-linux-gnu-ld: bios.o: in function `bios_reinitialize':
bios.c:(.text.bios_reinitialize+0x20): undefined reference to `memset'
mips-linux-gnu-ld: debugscreen.o: in function `debug_write':
debugscreen.c:(.text.debug_write+0xa8): undefined reference to `__strcpy_chk'
make[1]: *** [Makefile:35: secondary.elf] Error 1

Btw i'm on Windows 10 using WSL

socram8888 commented 2 years ago

What distro and version of Linux are you using? Looks like your GCC compiler isn't inlining a memset, which mine does.

podstanar0 commented 2 years ago

Hey, i'm using default one (Ubuntu 20.04), should i try Debian?

socram8888 commented 2 years ago

Fixed in commit 8934a2bb614973064e45a6638e03fd0c7426e5fc

podstanar0 commented 2 years ago

great, thanks