Newsgroups: comp.parallel.pvm
From: tabaer@magnus.acs.ohio-state.edu (Highlander)
Subject: Troubles building HeNCE under Linux
Organization: The Ohio State University
Date: 5 Aug 1994 12:43:24 GMT
Message-ID: <31tc5c$gj0@charm.magnus.acs.ohio-state.edu>

I spent most of last evening trying to build HeNCE 2.0 on my Linux box,
and I had some rather serious trouble doing it.

First off, I had to hack the Makefiles to look for pvm3 in $(PVM_ROOT)
rather than $(HOME)/pvm3, since on my box pvm3.2 is a shared program
installed in /usr/local/pvm-3.2 by the sysadmin (who happens to be me).
Is there any reason why the Imakefile ignores $(PVM_ROOT)?

I then tried running "make", which would generate a compile error in ./htool
but not actually die until it hit a compile error in ./master.  In both
cases, the C compiler (gcc) would find an error in a C file generated by
lex and yacc.  I checked the Makefiles and found that references to lex
and yacc were direct, rather than using $(LEX) and $(YACC) as defined
in the Imakefile.  This causes some strange behavior on my machine, which
has both the BSD lex/yacc as well as GNU flex/bison.  In any case, I
changed all the references to lex to $(LEX) and yacc to $(YACC) (excepting
the macro definitions at the top of the Makefiles, of course) and ran
"make clean ; make".  The compiler again had errors in the same files,
but the errors were different!

Unfortunately, I can't remember what the exact errors gcc gave were,
except that most of them were parse errors or references to macros
that weren't substituted correctly.  I'll try post a list of them Monday.

Anyway, to the authors of HeNCE:  could you PLEASE try to make your
Imakefile a little more consistent by using macro definitions rather
than hard-coding things (eg $(HOME)/pvm3 rather than $(PVM_ROOT),
lex instead of $(LEX), yacc instead of $(YACC)?  I'll post a patch for
the Imakefile if I get a chance to work on it and there is any interest.

Sorry if this is a little harse; I've been impressed by pvm3's capabilities,
but I'm not very knowledgeable in hacking lex/yacc files so the compile
errors with HeNCE were frustrating.  The inflexibilty of the generated
Makefiles didn't help matters much.

	--Troy
+--------------------+------------------------------------------------+
|   Troy A. Baer     | "My soul is painted like wings of butterflies, |
| Senior, Aero. Engr.|  Fairy tales of yesterday, grow but never die, |
| DOS?!? Try Linux!! |  I can fly, my friends!"  --Brian May          |
+--------------------+------------------------------------------------+


