X16Community / x16-rom

Other
43 stars 27 forks source link

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

Open FredBezies opened 1 week ago

FredBezies commented 1 week ago

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?

mooinglemur commented 6 days ago

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 commented 6 days ago

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