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

[solved] LD -> build/fceux-native error #4

Closed
siliconrecycle opened this issue Nov 27, 2022 · 1 comment
Closed

[solved] LD -> build/fceux-native error #4

siliconrecycle opened this issue Nov 27, 2022 · 1 comment

Comments

@siliconrecycle
Copy link

OS:fedora36
editor:emacs

If you don't use vim, and not develop in ubuntu, like me. When you make with 'make ARCH=native run mainargs=k', you maybe meet this question.

[qian@localhost fceux-am]$ make ARCH=native run mainargs=k
# Building fceux-run [native]
# Building am-archive [native]
# Building klib-archive [native]
# Creating image [native]
+ LD -> build/fceux-native
/usr/bin/ld: /home/qian/prj/ics2022/fceux-am/build/native/src/emufile.o:(.data.rel+0x8): undefined reference to `rom_mario_nes'
/usr/bin/ld: /home/qian/prj/ics2022/fceux-am/build/native/src/emufile.o:(.data.rel+0x10): undefined reference to `rom_mario_nes_len'
collect2: error: ld returned 1 exit status
make: *** [/home/qian/prj/ics2022/abstract-machine/scripts/native.mk:19: image] Error 1

This happens because ./fceux-am/nes/gen/mario.c is empty. Look through the file ./fceux-am/nes/build-rom.py, you will find mario.c is converted by mario.nes with xdd program. If you develop in fedora, you just need sudo dnf in vim-common. xdd is included in this package.

@SherlockShemol
Copy link

SherlockShemol commented Apr 26, 2023

it's xxd not xdd.it's a tool to make (or reverse) a hex dump.
Archlinux meets the same problem when trying to play mario, and yay -S xxd can solve.

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