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 when compiling to N64 #70

Open
Project516 opened this issue Nov 16, 2024 · 7 comments
Open

Error when compiling to N64 #70

Project516 opened this issue Nov 16, 2024 · 7 comments
Labels
compile issue Code doesn't compile properly n64 Issue concers N64 target web Issue concers Web target

Comments

@Project516
Copy link

Describe the bug
A clear and concise description of what the bug is.

When I run make -j4 TARGET_N64=1 after doing all the previous steps i get

Assembling: asm/boot.s -> build/us/asm/boot.o
Assembling: asm/entry.s -> build/us/asm/entry.o
Converting: textures/ipl3_raw/ipl3_font_00.ia1.png -> build/us/textures/ipl3_raw/ipl3_font_00.ia1
cc1: error: position-independent code requires ‘-mabicalls’
Converting: textures/ipl3_raw/ipl3_font_01.ia1.png -> build/us/textures/ipl3_raw/ipl3_font_01.ia1
cc1: error: position-independent code requires ‘-mabicalls’
cc1: error: position-independent code requires ‘-mabicalls’
make: *** [Makefile:1655: build/us/sound/sequences/00_sound_player.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:1655: build/us/asm/boot.o] Error 1
make: *** [Makefile:1655: build/us/asm/entry.o] Error 1

Also running on WSL 2 from Windows 11 gets the same error AND msys2 on win11
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] debian!
  • Browser [e.g. chrome, safari] chromium
  • Version [e.g. 22] 12

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

thx for reading and if i wasnt clear PLEASE commint i wanna use this over sm64ex!

@Project516
Copy link
Author

oh and just running make works btw

@Project516
Copy link
Author

also compiling for the web returns

Generating endian-bitwidth
Generating: build/us_web/sound/sound_data.ctl
Assembling: sound/sequences/00_sound_player.s -> build/us_web/sound/sequences/00_sound_player.o
sound/sequences/00_sound_player.s:3:17: error: Expected ,, instead got:

.section .rodata
^
make: *** [Makefile:1655: build/us_web/sound/sequences/00_sound_player.o] Error 1

it made more progress than render96 did

@AloXado320
Copy link
Member

Can you add VERBOSE=1 to see which compilers are you using?

@AloXado320 AloXado320 added compile issue Code doesn't compile properly n64 Issue concers N64 target web Issue concers Web target labels Nov 16, 2024
@Project516
Copy link
Author

Generating: build/us_web/sound/sound_data.ctl
python3 tools/assemble_sound.py build/us_web/sound/samples/ sound/sound_banks/ build/us_web/sound/sound_data.ctl build/us_web/sound/ctl_header build/us_web/sound/sound_data.tbl build/us_web/sound/tbl_header -DVERSION_US=1 -DF3DEX_GBI_2E=1 -DTARGET_WEB=1 -DUSE_GLES=1 -DLIBULTRA_VERSION=9 -DLIBULTRA_REVISION=0 -DLIBULTRA_STR_VER="L" -DNON_MATCHING=1 -DAVOID_UB=1 $(cat build/us_web/endian-and-bitwidth)
Assembling: sound/sequences/00_sound_player.s -> build/us_web/sound/sequences/00_sound_player.o
emcc -c -I include -I build/us_web -I build/us_web/include -I src -I . -DVERSION_US=1 -DF3DEX_GBI_2E=1 -DTARGET_WEB=1 -DUSE_GLES=1 -DLIBULTRA_VERSION=9 -DLIBULTRA_REVISION=0 -DLIBULTRA_STR_VER="L" -DNON_MATCHING=1 -DAVOID_UB=1 -D_LANGUAGE_ASSEMBLY -DNO_SEGMENTED_MEMORY -DWIDESCREEN -DUSE_SYSTEM_MALLOC -DMOUSE_ACTIONS -DCOMMAND_LINE_OPTIONS -DBETTERCAMERA -DCHEATS_ACTIONS -DEXT_OPTIONS_MENU -DRUMBLE_FEEDBACK -DGODDARD_MFACE -DVANILLA_CHECKS -DQOL_FIXES -DQOL_FEATURES -DQOL_REDONE -x assembler-with-cpp -MMD -MF build/us_web/sound/sequences/00_sound_player.d -o build/us_web/sound/sequences/00_sound_player.o sound/sequences/00_sound_player.s
sound/sequences/00_sound_player.s:3:17: error: Expected ,, instead got:

.section .rodata
^
make: *** [Makefile:1655: build/us_web/sound/sequences/00_sound_player.o] Error 1

@Project516
Copy link
Author

this is on wsl2 ubuntu

@burnedpopcorn
Copy link

same here
using latest version of emscripten

@burnedpopcorn
Copy link

on native linux mint btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile issue Code doesn't compile properly n64 Issue concers N64 target web Issue concers Web target
Projects
None yet
Development

No branches or pull requests

3 participants