poldy / OpenCOMAL

OpenCOMAL aims to be a compliant Common COMAL interpreter. It has been tested on Linux and macOS.
http://www.josvisser.nl/opencomal/
GNU General Public License v3.0
21 stars 6 forks source link

Building under MacOS Big Sur failed #2

Open TexTerry opened 3 years ago

TexTerry commented 3 years ago

I'm unable to build OpenCOMAL under MacOS Big Sur. Readline (Homebrew) and current Xcode CLI-Tools are installed.

Build-Error:

$ make OPSYS=macos     

../tools/bumpbuild BUILD
make[1]: *** No rule to make target `../cii/src/except.o', needed by `../tools/mkcatdefs'.  Stop.
make[1]: *** Waiting for unfinished jobs....
Build number is 729
../tools/genversion
make: *** [all] Error 2

Sorry, i tried to find a fix, but I have no clue.

Any suggestions?

poldy commented 3 years ago

I haven't looked at that in a while, I thought there was no interest. Now you're prompting me to finish some stuff again :-)

I'd recommend checking out the last tag, v0.3.0, and building that instead. I shouldn't have, but I think I pushed some broken code.

TexTerry commented 3 years ago

i tried v0.3.0 and was able to compile OpenCOMAL after fiddling around with the Makefile and some other files:

  1. Building of tools/mkcatdefs failed. So I build it separately: gcc -o mkcatdefs mkcatdefs.c
  2. Even with LANG=en_GB.ISO8859-15 ga.msg can't be processed due to invalid characters. So I replaced it with the content of en.msg
  3. During the build process msgnrs.h got deleted somehow. So I included this line after $(TARG1): $(OBJ1) $(OS) and $(TARG2): $(OBJ2) $(OS): ../tools/mkcatdefs msgnrs.h en.msg

Dirty hacks, I know. And I am serenely not proud of it. But it worked.