[nhc-bugs] nhc98 1.14a build fails on Linux
Malcolm Wallace
Malcolm.Wallace@cs.york.ac.uk
Mon, 6 Jan 2003 18:09:22 +0000
Peter Simons <simons@cryp.to> writes:
> I just tried to build the latest nhc98 version on Gentoo Linux/ix86.
> And failed. ;-)
>
> /usr/local/src/nhc98-1.14a/script/nhc98: line 600: 32003 Segmentation fault
>
> I am quite lost what to do and what to try. Does anyone have an idea?
My guess is that your system has gcc-3.xx by default, which is known
to break nhc98. I'm not totally sure why, but I think it has to do
with data layout in array initialisation statements in C.
The only current work-around I know is to use gcc-2.9x if you can.
I don't know whether it possible for you to have both versions of
gcc installed simultaneously, but if so, then I would suggest starting
a fresh build with something like
CC=gcc-2.96 ./configure --prefix=/usr/local/nhc98
It may also be necessary for you to set the CC variable for any
subsequent compilations performed by nhc98, since it uses your C
compiler as a portable back-end for code generation.
> One more thing: Is it possible that the build is screwed up pretty
> much in case I do have a version of hmake installed already?
No, that is unlikely.
Regards,
Malcolm