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

Compile Issues #12

Open
dude22072 opened this issue Nov 23, 2023 · 0 comments
Open

Compile Issues #12

dude22072 opened this issue Nov 23, 2023 · 0 comments

Comments

@dude22072
Copy link

Ran into three issues I had to fix to get the rom to compile.

res folder

"End of file in comment; newline inserted" for multiple files in /core/res/

# assembling res/txt_sjis2leaf.s
res/txt_sjis2leaf.s: Assembler messages:
res/txt_sjis2leaf.s: Warning: end of file in comment; newline inserted
res/txt_sjis2leaf.s: Error: 1 warning, treating warnings as errors

Solved by removing --fatal-warnings from ASFLAGS in /core/Makefile

ASFLAGS = -mthumb-interwork --fatal-warnings

Incorrect Stat Command

The usage of stat to get the size of the GBA file for padding it out is incorrect, resulting in the following error:

stat: cannot read file system information for '%Dz': No such file or directory

which comes from the following line:

@dd if=/dev/zero bs=1 count=$$(expr 256 - $$(stat -f "%Dz" $@) % 256) >> $@

the correct command should be stat -c%s $@

Line endings in python tool

/tool/imgfix.py uses windows line endings. This causes the make to fail because python3\r does not exist. Solved by fixing the lines endings in that python file.

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

1 participant