Everything worked fine, except for one error I'm having, preventing me from running build-all.sh
Code: Select all
make: *** [opt/toolchains/dc/kos/../kos-ports/scripts/validate.mk:9 validate-dist] error 1
Thanks a lot for any help
Code: Select all
make: *** [opt/toolchains/dc/kos/../kos-ports/scripts/validate.mk:9 validate-dist] error 1
Code: Select all
make *** [path/to/kos/Makefile.rules:19: stuff.o] Error 1
Could you link to the specific thread you're talking about?As for genromfs, that's already been discussed in the programming forum. Speaking of which, that's where this belongs, so off we go.
Code: Select all
. /opt/toolchains/dc/kos/environ.sh
The problem is genromfs does require a POSIX environment (with a POSIX-ish libc and all), which isn't normally installed in MSYS2/MinGW...nymus wrote:Regarding genromfs, I don't think it has external dependencies so you could just go into ${KOS_BASE}/utils/genromfs and "make" which should build it. if not, looks like bogglez linked to the alternative thread...
I'll give it a go later, thanks for patienceAs the setup completes, it will ask whether you want to open a shell. Don't. Open C:\msys32\mingw32_shell.bat instead (mingw shell instead of msys2 shell).
Code: Select all
Dan@Dan-Desktop MINGW32 /opt/toolchains/dc/kos/utils/genromfs
$ make
cc -O2 -Wall -c -o genromfs.o genromfs.c
In file included from genromfs.c:83:0:
C:/msys32/mingw32/include/netinet/in.h:73:2: error: unknown type name 'u_long'
u_long s_addr;
^~~~~~
C:/msys32/mingw32/include/netinet/in.h:116:2: error: unknown type name 'u_char'
u_char sin_len;
^~~~~~
C:/msys32/mingw32/include/netinet/in.h:117:2: error: unknown type name 'u_char'
u_char sin_family;
^~~~~~
C:/msys32/mingw32/include/netinet/in.h:118:2: error: unknown type name 'u_short'
u_short sin_port;
^~~~~~~
genromfs.c:92:5: error: unknown type name 'int32_t'
int32_t nextfh;
^~~~~~~
genromfs.c:93:5: error: unknown type name 'int32_t'
int32_t spec;
^~~~~~~
genromfs.c:94:5: error: unknown type name 'int32_t'
int32_t size;
^~~~~~~
genromfs.c:95:5: error: unknown type name 'int32_t'
int32_t checksum;
^~~~~~~
genromfs.c: In function 'nodematch':
genromfs.c:209:12: warning: implicit declaration of function 'fnmatch' [-Wimplic it-function-declaration]
return fnmatch(pattern, start, FNM_PATHNAME | FNM_PERIOD);
^~~~~~~
genromfs.c:209:36: error: 'FNM_PATHNAME' undeclared (first use in this function)
return fnmatch(pattern, start, FNM_PATHNAME | FNM_PERIOD);
^~~~~~~~~~~~
genromfs.c:209:36: note: each undeclared identifier is reported only once for ea ch function it appears in
genromfs.c:209:51: error: 'FNM_PERIOD' undeclared (first use in this function)
return fnmatch(pattern, start, FNM_PATHNAME | FNM_PERIOD);
^~~~~~~~~~
genromfs.c: In function 'romfs_checksum':
genromfs.c:229:5: error: unknown type name 'int32_t'
int32_t sum, *ptr;
^~~~~~~
genromfs.c:236:16: warning: implicit declaration of function 'ntohl' [-Wimplicit -function-declaration]
sum += ntohl(*ptr++);
^~~~~
genromfs.c: In function 'fixsum':
genromfs.c:245:20: warning: implicit declaration of function 'htonl' [-Wimplicit -function-declaration]
ri->checksum = htonl(-romfs_checksum(ri, size));
^~~~~
genromfs.c: In function 'dumpnode':
genromfs.c:361:13: warning: implicit declaration of function 'S_ISLNK' [-Wimplic it-function-declaration]
else if(S_ISLNK(node->modes)) {
^~~~~~~
genromfs.c:365:9: warning: implicit declaration of function 'readlink' [-Wimplic it-function-declaration]
readlink(node->realname, bigbuf, node->size);
^~~~~~~~
genromfs.c:407:25: warning: implicit declaration of function 'major' [-Wimplicit -function-declaration]
ri.spec = htonl(major(node->devnode) << 16 | minor(node->devnode));
^~~~~
genromfs.c:407:54: warning: implicit declaration of function 'minor' [-Wimplicit -function-declaration]
ri.spec = htonl(major(node->devnode) << 16 | minor(node->devnode));
^~~~~
genromfs.c:419:13: warning: implicit declaration of function 'S_ISSOCK' [-Wimpli cit-function-declaration]
else if(S_ISSOCK(node->modes)) {
^~~~~~~~
genromfs.c: In function 'processdir':
genromfs.c:583:13: warning: implicit declaration of function 'lstat' [-Wimplicit -function-declaration]
if(!lstat(link->realname, sb)) {
^~~~~
genromfs.c:659:35: warning: implicit declaration of function 'makedev' [-Wimplic it-function-declaration]
sb->st_rdev = makedev(major, minor);
^~~~~~~
genromfs.c: In function 'nodematch':
genromfs.c:210:1: warning: control reaches end of non-void function [-Wreturn-ty pe]
}
^
make: *** [<builtin>: genromfs.o] Error 1
Dan@Dan-Desktop MINGW32 /opt/toolchains/dc/kos/utils/genromfs
$
I can compile now, but its kind of hack, maybe those errors are a larger issue that needs fixing. Just letting you guys knowAtariOwl wrote:OK
Sooooo... i got frustrated trying to get genromfs to build so i took an exe from ...
https://sourceforge.net/p/cadcdev/kalli ... /genromfs/
that wasnt happy as it didnt have a cygwin1.dll so i took one from
https://github.com/Light-Dark/dcvqtex
and put it in the genromfs directory
Can i compile?
Now i know this is something of a shortcut and we really should try to get this working properly. But i'm up and running at least.