Issue generating a ROM image for the MSX

Post Reply
DarwinNE
Member
Posts: 18
Joined: Sat Dec 21, 2019 8:33 pm

Issue generating a ROM image for the MSX

Post by DarwinNE »

Hi everybody.

I run into an issue to create a ROM image for the MSX. This is something I did a few months ago with no issues at all, it basically worked at the first attempt. Now, I tried again and if I specify "-subtype=rom" as per:

https://github.com/z88dk/z88dk/wiki/Platform---MSX

I get an error Unknown machine target "msxrom"

Code: Select all

$ cat hello.c
#include<stdio.h>

int main(void)
{
    printf("Hello world.\n");
    return 0;
}
$ zcc +msx -create-app hello.c -o hello
$ zcc +msx -create-app -subtype=rom hello.c -o hello
Unknown machine target "msxrom"
...

I am using "zcc - Frontend for the z88dk Cross-C Compiler - v16709-7140f95c5-20200720"
IIRC I updated z88dk in the meanwhile.

Is there something I can do about it?
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Re: Issue generating a ROM image for the MSX

Post by dom »

I think you've got a slightly mangled install - your binaries seem to be from 20200720, but the config files are from 20200802 onwards.

Probably best to wipe bin/ and recompile the binaries (I think you update from git?): since the version you've got, the binary names have had a z88dk- prefix added to them which might cause some upgrade problems if you don't clean bin/
DarwinNE
Member
Posts: 18
Joined: Sat Dec 21, 2019 8:33 pm

Re: Issue generating a ROM image for the MSX

Post by DarwinNE »

Indeed, I checked and, sure enough, I had two former installs of z88dk that were conflicting (btw, yes, I built the last one from sources updating with git). I wiped both of them and I installed the last nightly build. Everything seems to work fine, now.

Thank you very much for your suggestion, dom!
Post Reply