PVSnesLib - impossible to make (solved)

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
gaaaaast
Posts: 3
Joined: Fri Feb 12, 2021 1:02 pm

PVSnesLib - impossible to make (solved)

Post by gaaaaast » Fri Feb 12, 2021 1:09 pm

Hello guys,
I have a quick question for PVSNesLib
I'm following the wiki to install it, but with Programmer's notepad, I cannot compile.
Clean is working perfectly, but not make:

Code: Select all

> "make" 
...
Doing obj files ...
Building: wla-65816 -s -o hdr.obj hdr.asm
/usr/bin/ls: cannot access 'c:\\c\snesdev\pvsneslib\lib': No such file or directory
Creating linkfile ...
Linking ... template.sfc
wlalink -d -D -s -v -L /c/snesdev/pvsneslib/lib linkfile template.sfc
DISCARD: template.obj: template.asm: Section ".text_0x0" was discarded.
DISCARD: template.obj: template.asm: Section "ram.data" was discarded.
DISCARD: template.obj: template.asm: Section ".data" was discarded.
DISCARD: template.obj: template.asm: Section ".rodata" was discarded.
DISCARD: template.obj: template.asm: Section ".bss" was discarded.
template.obj: hdr.asm:33: FIX_REFERENCES: Reference to an unknown label "EmptyHandler".
"make": *** [template.sfc] Error 1
rm template.asm template.ps data.obj hdr.obj template.obj

> Process Exit Code: 2
> Time Taken: 00:01
Is there anybody to help?
Last edited by gaaaaast on Sat Feb 13, 2021 1:41 pm, edited 1 time in total.

User avatar
dougeff
Posts: 2817
Joined: Fri May 08, 2015 7:17 pm
Location: DIGDUG
Contact:

Re: PVSnesLib - impossible to make

Post by dougeff » Fri Feb 12, 2021 5:41 pm

It looks like it couldn't find "EmptyHandler" which is referenced by the unused vectors in the header file (hdr.asm). And the label itself is in crt0_snes.asm and just as an RTI below it.

Make sure you included crt0_snes.asm and that the label EmptyHandler exists there.

Oh, it's probably because it couldn't find the object folder called "lib" which would have held the crt0_snes.obj file.
nesdoug.com -- blog/tutorial on programming for the NES

gaaaaast
Posts: 3
Joined: Fri Feb 12, 2021 1:02 pm

Re: PVSnesLib - impossible to make

Post by gaaaaast » Sat Feb 13, 2021 3:20 am

thanks for the reply.

I agree, this line is so weird to me

Code: Select all

cannot access 'c:\\c\snesdev\pvsneslib\lib':
but I don't know how to fix that
I'm looking into different files (Makefile, snes_rules, crt0_snes.asm...), but for now, nothing popped...

I'm totally newbie to this world, pretty difficult to understand where to check actually ^^

gaaaaast
Posts: 3
Joined: Fri Feb 12, 2021 1:02 pm

Re: PVSnesLib - impossible to make

Post by gaaaaast » Sat Feb 13, 2021 4:57 am

ok, I finally changed the line 14 in snes_rules by

Code: Select all

REPDIROBJSW1 := $$(echo "$(REPDIROBJSW)" | cut -c 3-64)
it's completely disgusting fix, but it's working for now :)

and thanks @dougeff for the insight ;)

Post Reply