Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling the project #2

Open
mileskanda opened this issue Oct 23, 2023 · 2 comments
Open

Error while compiling the project #2

mileskanda opened this issue Oct 23, 2023 · 2 comments

Comments

@mileskanda
Copy link

Hello.

When I try to compile patcher it returns an error:

miles@vbox:~/pso_patcher$ make make -C patcher make[1]: Entering directory '/home/miles/pso_patcher/patcher' rm -f loader.elf loader.bin sh-elf-gcc -ml -m4-nofpu -ffunction-sections -fdata-sections -ffreestanding -Wall -std=c99 -Wextra -Werror -c -o cdrom.o cdrom.c sh-elf-gcc: error: command-line option «-m4-nofpu» is not supported by this configuration make[1]: *** [<builtin>: cdrom.o] Error 1 make[1]: Leaving directory '/home/miles/pso_patcher/patcher' make: *** [Makefile:2: all] Error 2 miles@vbox:~/pso_patcher$

I'm using virtualbox with Ubuntu 22.04 and KallistiOS built.
Can you tell me please where is my mistake? Thank you.

@ljsebald
Copy link
Member

The toolchain you're using does not support the -m4-nofpu target. Normal KOS toolchains do not include this target. You'll have to rebuild your toolchain and modify the configuration to add -m4-nofpu.

Alternatively, you could probably change the Makefile for this project to compile with -m4-single-only instead of -m4-nofpu. Likely, that will work fine.

@mileskanda
Copy link
Author

Hello @ljsebald.

I'm sorry for long scilence.
Only yesterday I was able to return to my small mission here.

I've followed your recomendation and had success - got loader.elf and patcher.elf files.

Now last question: how I can determine, which addresses to put in if file patches.h if I want to set IP of my personal PSO server?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants