heasm66 / mdlzork

Different versions of original mainframe Zork reconstructed and patched to run under Confusion.
15 stars 6 forks source link

Confusion build failure on Cygwin 64 #56

Closed AlexProudfoot closed 1 year ago

AlexProudfoot commented 1 year ago

The make process fails like this.

Alex@LAPTOP-0BHHRD0H ~/Projects/mdlzork/confusion_patched $ make perl make_types.pl mdl_builtin_types.h < macros.hpp > mdl_builtin_types.cpp mdl_builtins.h not found at make_types.pl line 18. make: *** [Makefile:51: mdl_builtin_types.cpp] Error 2

AlexProudfoot commented 1 year ago

Here are my package selections.

Untitled

AlexProudfoot commented 1 year ago

I built this a while ago on Cygwin 64 with no problems so I'm not sure what is going on.

AlexProudfoot commented 1 year ago

According to git, make has managed to create the following files.

mdl_builtin_types.cpp mdl_builtins.cpp

heasm66 commented 1 year ago

I just tried a clean build on my laptop here at work and it worked:

$ make
perl find_builtins.pl mdl_builtins.h < macros.cpp > mdl_builtins.cpp
perl make_types.pl mdl_builtin_types.h < macros.hpp > mdl_builtin_types.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o macros.o macros.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdli.o mdli.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_builtins.o mdl_builtins.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_builtin_types.o mdl_builtin_types.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_read.o mdl_read.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_output.o mdl_output.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_binary_io.o mdl_binary_io.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_decl.o mdl_decl.cpp
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_assoc.o mdl_assoc.cpp
cc -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o mdl_strbuf.o mdl_strbuf.c
awk 'BEGIN { print "const char copying [] = " } /END OF TERMS AND CONDITIONS/ { nextfile } { gsub("\"", "\\\"", $0); print "\"" $0 "\\n\""  } END { print ";" }'  < COPYING > copying.c
cc -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable   -c -o copying.o copying.c
g++ -g -DGC_DEBUG -O2 -Wall -Wno-switch -Wno-unused-but-set-variable -o mdli macros.o mdli.o mdl_builtins.o mdl_builtin_types.o mdl_read.o mdl_output.o mdl_binary_io.o mdl_decl.o mdl_assoc.o mdl_strbuf.o copying.o -lgc -lgccpp

I don't know what's going on, but it looks like the first Perl-script (find_builtins.pl) fails to build mdl_builtins.h. Do you have that file and/or is the script running and building it?

AlexProudfoot commented 1 year ago

Hmmm. The file exists and was cloned from your repo.

Untitled

Make doesn't seem to call it though.

AlexProudfoot commented 1 year ago

If I manually enter the perl commands, make manages to complete the build.

Untitled

I guess there has been a change to the acceptable form of makefiles.

heasm66 commented 1 year ago

I'm gonna update my CygWin to latest versions and see if I can see if I get the same problem.

heasm66 commented 1 year ago

I've updated all my ibraries (gcc-g++, libgc-devel, make and perl) to the same versions you have above. I have no problem compiling. Are you sure there is no changes to your Makefile?

AlexProudfoot commented 1 year ago

I literally just cloned, changed directory and typed make. I’ll try again from scratch.

heasm66 commented 1 year ago

Strange...

I got another Perl-version (I don't remember why, but your Perl seems fine anyway).

image

Edit: My bad, I have the same Perl too...

image

AlexProudfoot commented 1 year ago

And this time it builds without incident. It must have been a file corruption on download. Sorry for wasting your time Henrik.

Untitled

heasm66 commented 1 year ago

No problem. It's only fun to see that's someone uses it.

I'll close this.

AlexProudfoot commented 1 year ago

I'm trying to continue my efforts on Zork for Inform 7 right now and I'm using the 1981 version here running on confusion_patched as my reference version of Zork. Hopefully, my health will allow me to at least get as far as an initial release of progress so far.