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

Rom rev48 cannot be built: "ld65: Error: Cannot use -Ln twice" #363

Open
FredBezies opened this issue Sep 7, 2024 · 2 comments
Open

Rom rev48 cannot be built: "ld65: Error: Cannot use -Ln twice" #363

FredBezies opened this issue Sep 7, 2024 · 2 comments

Comments

@FredBezies
Copy link

Hello.

I tried to build this package using the source tarball with cc 2.65 and every time I try, build process stops with this error:

./scripts/trace_info.py 13 x16-edit/conf/x16edit-rom.cfg x16-edit/build/x16edit-rom.lst  build/x16/x16edit-rom_D.rlst build/x16/x16edit_D_labels.h
ld65: Error: Cannot use -Ln twice
make: *** [Makefile:410: build/x16/monitor.bin] Error 1

Any idea on how to fix this bug?

@FredBezies FredBezies changed the title Rom rev48 cannot be built with ca 2.65 : "ld65: Error: Cannot use -Ln twice" Rom rev48 cannot be built with cc 2.65 : "ld65: Error: Cannot use -Ln twice" Sep 7, 2024
@mooinglemur
Copy link
Collaborator

I'm not sure how you're getting this error. Which OS and shell are you running? I also can't find the version of cc65 you're referencing. The last actual release of cc65 was in 2020, version 2.19, and I think that still builds assembly language programs like the ROM just fine.

We typically use the top of tree (git master) of the cc65 package. In fact in the autobuilds on GitHub Actions, we first compile the latest cc65 (as well as building lzsa) before compiling the ROM.

Something like this

git clone https://github.com/cc65/cc65.git
cd cc65
make
make install
cd ..
git clone https://github.com/emmanuel-marty/lzsa.git
cd lzsa
make
make install
git clone https://github.com/X16Community/x16-rom.git
cd x16-rom
make
cp build/x16/rom.bin ../x16-emulator # wherever the emulator is installed

@FredBezies
Copy link
Author

I'm not sure how you're getting this error. Which OS and shell are you running? I also can't find the version of cc65 you're referencing. The last actual release of cc65 was in 2020, version 2.19, and I think that still builds assembly language programs like the ROM just fine.

For cc65, it is a typo. Of course, it is version 2.19. My OS ? Archlinux. Shell ? Zsh.

We typically use the top of tree (git master) of the cc65 package. In fact in the autobuilds on GitHub Actions, we first compile the latest cc65 (as well as building lzsa) before compiling the ROM.

Ok.

Something like this

git clone https://github.com/cc65/cc65.git
cd cc65
make
make install
cd ..
git clone https://github.com/emmanuel-marty/lzsa.git
cd lzsa
make
make install
git clone https://github.com/X16Community/x16-rom.git
cd x16-rom
make
cp build/x16/rom.bin ../x16-emulator # wherever the emulator is installed

Well, I tried this PKGBUILD on AUR. https://aur.archlinux.org/packages/x16-rom

@FredBezies FredBezies changed the title Rom rev48 cannot be built with cc 2.65 : "ld65: Error: Cannot use -Ln twice" Rom rev48 cannot be built: "ld65: Error: Cannot use -Ln twice" Sep 11, 2024
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