X16Community / x16-emulator

Emulator for the Commander X16 8-bit computer
BSD 2-Clause "Simplified" License
205 stars 43 forks source link

Cannot build rom rev48 with ca65 2.18 : "ld65: Error: Cannot use -Ln twice" #298

Open FredBezies opened 2 months ago

FredBezies commented 2 months ago

Hello.

I tried to build this morning rom rev 48 on my archlinux using ca65 2.18 and I got this error message:

INFO: unique module name text_input_ did not appear map file modules. We're going to wing it...
INFO: we're going to go with text_input_CODE_000B.
INFO: unique module name match_ did not appear map file modules. We're going to wing it...
INFO: we're going to go with match_BSS_0001_CODE_01C5.
ld65: Error: Cannot use -Ln twice
make: *** [Makefile:404: build/x16/basic.bin] Error 1

Any idea on how to fix this annoying issue? Thanks!

mooinglemur commented 1 month ago

Version 2.18 might be too old. I would recommend building the current git master of cc65 and using that, or at least try with 2.19.

FredBezies commented 1 month ago

I tried with cc65 2.19 and it is the same issue. Strangely when I try to build on the last commit, it worked perfectly. Strange.