[nhc-bugs] Compiling from src under cygwin

David Duke D.Duke at bath.ac.uk
Mon Nov 10 16:04:27 EST 2003


I've been trying to compile nhc 1.16 from source under cygwin (updated 
today) using gcc 3.3.1.  I have no other Haskell compiler installed on 
the machine.

Configuration goes fine, but there seems to be a problem with the 
asmlong.h file in the runtime/Integer directory, see the extract below. 
Looking at asmlong.h file, I wondered if the line breaks within strings 
are (now) legit.

	thanks
	David

p.s. I am aware I can download an executable, but if there is an 
underlying problem here, it might bite other people later ....

p.p.s. If someone knows the fix, could you please reply direct, as I am 
not on the mailing list.


[compiled first dir okay]
make[2]: Leaving directory `/cygdrive/d/haskell/nhc
cd Integer; make all
make[2]: Entering directory `/cygdrive/d/haskell/nh

gcc -I../Kernel -Id:/haskell/nhc98-1.16/include  -O
-mparam.c = x ];        \
                        then echo cre-mparam.c;
                        else echo cre-mparam.c; fi`
ets/ix86-CYGWIN_NT-5.1/obj/runtime/Integer/cre-mpar
d:/haskell/nhc98-1.16/targets/ix86-CYGWIN_NT-5.1/ob
 > tmp-gmp-mparam.h
mv tmp-gmp-mparam.h gmp-mparam.h
gcc -c -I../Kernel -Id:/haskell/nhc98-1.16/include
askell/nhc98-1.16/targets/ix86-CYGWIN_NT-5.1/obj/ru
dd.c
gcc -c -I../Kernel -Id:/haskell/nhc98-1.16/include
askell/nhc98-1.16/targets/ix86-CYGWIN_NT-5.1/obj/ru
ub.c
gcc -c -I../Kernel -Id:/haskell/nhc98-1.16/include
askell/nhc98-1.16/targets/ix86-CYGWIN_NT-5.1/obj/ru
ul.c
gcc -c -I../Kernel -Id:/haskell/nhc98-1.16/include
askell/nhc98-1.16/targets/ix86-CYGWIN_NT-5.1/obj/ru
iv.c
In file included from longlong.h:75,
                  from mpz_div.c:25:
asmlong.h:3:12: missing terminating " character
asmlong.h:7:40: missing terminating " character
asmlong.h:9:12: missing terminating " character
asmlong.h:13:39: missing terminating " character
asmlong.h:34:12: missing terminating " character
asmlong.h:38:39: missing terminating " character
asmlong.h:40:12: missing terminating " character
asmlong.h:44:38: missing terminating " character
asmlong.h:49:12: missing terminating " character
asmlong.h:53:37: missing terminating " character
asmlong.h:55:12: missing terminating " character
asmlong.h:59:36: missing terminating " character
asmlong.h:77:12: missing terminating " character
asmlong.h:81:38: missing terminating " character
asmlong.h:83:12: missing terminating " character
asmlong.h:87:37: missing terminating " character
asmlong.h:92:12: missing terminating " character
In file included from longlong.h:75,
                  from mpz_div.c:25:
asmlong.h:93: error: syntax error before '%' token
asmlong.h:96:37: missing terminating " character
asmlong.h:98:12: missing terminating " character
asmlong.h:102:36: missing terminating " character
asmlong.h:160:12: missing terminating " character
asmlong.h:164:38: missing terminating " character
asmlong.h:166:12: missing terminating " character
asmlong.h:170:37: missing terminating " character
asmlong.h:267:12: missing terminating " character
asmlong.h:295:37: missing terminating " character
asmlong.h:301:12: missing terminating " character
asmlong.h:305:40: missing terminating " character
asmlong.h:307:12: missing terminating " character
asmlong.h:311:39: missing terminating " character
asmlong.h:325:12: missing terminating " character
asmlong.h:329:36: missing terminating " character
asmlong.h:341:12: missing terminating " character
asmlong.h:348:44: missing terminating " character
asmlong.h:353:12: missing terminating " character
asmlong.h:357:38: missing terminating " character
asmlong.h:359:12: missing terminating " character
asmlong.h:363:37: missing terminating " character
asmlong.h:366:12: missing terminating " character
asmlong.h:372:17: missing terminating " character
asmlong.h:377:12: missing terminating " character
asmlong.h:381:38: missing terminating " character
asmlong.h:383:12: missing terminating " character
asmlong.h:387:37: missing terminating " character
asmlong.h:392:8: missing terminating " character
asmlong.h:414:13: missing terminating " character
asmlong.h:436:12: missing terminating " character
asmlong.h:440:39: missing terminating " character
asmlong.h:442:12: missing terminating " character
asmlong.h:446:38: missing terminating " character
asmlong.h:461:12: missing terminating " character
asmlong.h:463:38: missing terminating ' character
asmlong.h:464:38: missing terminating ' character

etc.


-- 
Dr. David Duke                        Email: D.Duke at bath.ac.uk
Department of Computer Science        Web:   www.bath.ac.uk/~masdad/
University of Bath                    Tel:   +44 1225 383 407
Bath, BA2 7AY U.K.                    Fax:   +44 1225 383 493




More information about the Nhc-bugs mailing list