[nhc-users] Problems Compiling

James Mills prologic@daisy.ods.org
Thu, 21 Aug 2003 20:21:55 +1000


--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I'm new to Haskell, let alone NHC.
I'm James, a 2nd year Software Engineering student at Griffith
University of Australia (www.griffith.edu.au)

I have a few problems compiling, there are more errors than will fit on
my terminal. I have attached the following files if anyone would like to
assist me in where I've gone wrong.

cheers
James

-- 
-
-Zero Defect Software Engineers Group - ZDSEG
-
-You need only two tools. WD-40 and duct tape.
-If it doesn't move and it should, use WD-40.
-If it moves and shouldn't, use the tape.

--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="make.output"

cd src/runtime;        make install nhc98heap
make[1]: Entering directory `/archives/system/nhc98-1.16/src/runtime'
mkdir -p /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime
mkdir -p /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel || /bin/true
mkdir -p /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Mk || /bin/true
mkdir -p /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Builtin || /bin/true
mkdir -p /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer || /bin/true
cd Kernel; make all
make[2]: Entering directory `/archives/system/nhc98-1.16/src/runtime/Kernel'
Link bytecode.h already exists.
Link cinterface.h already exists.
Link mutlib.h already exists.
Link newmacros.h already exists.
Link node.h already exists.
Link runtime.h already exists.
Link stableptr.h already exists.
Link newbytecode.h already exists.
Link bytecode_o.h already exists.
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/mutator.o mutator.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/mutlib.o mutlib.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/main.o main.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/haskellInit.o haskellInit.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/dump.o dump.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/inscount.o inscount.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/collector.o collector.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/mark.o mark.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/cdata.o cdata.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/timeUnix.o timeUnix.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/xlib_debug.o xlib_debug.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/stableptr.o stableptr.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/closureval.o closureval.c
gcc -c   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/ffiexport.o ffiexport.c
gcc -S   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o - newtables.c | sed '/.align 32/s/32/4/' |\
	 gcc -c -x assembler   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/newtables.o -
gcc -S   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o - newbuiltin.c | sed '/.align 32/s/32/4/' |\
	 gcc -c -x assembler   -DLOW_BYTE_FIRST -O3 -I/archives/system/nhc98-1.16/include -DVERSION="\"1.16\""   -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/newbuiltin.o -
cd /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel; \
	ar rv /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Kernel/Runtime.a haskellInit.o dump.o inscount.o collector.o mark.o cdata.o timeUnix.o xlib_debug.o stableptr.o closureval.o ffiexport.o newtables.o newbuiltin.o
a - haskellInit.o
a - dump.o
a - inscount.o
a - collector.o
a - mark.o
a - cdata.o
a - timeUnix.o
a - xlib_debug.o
a - stableptr.o
a - closureval.o
a - ffiexport.o
a - newtables.o
a - newbuiltin.o
make[2]: Leaving directory `/archives/system/nhc98-1.16/src/runtime/Kernel'
cd Integer; make all
make[2]: Entering directory `/archives/system/nhc98-1.16/src/runtime/Integer'
Link flt.h already exists.
gcc -I../Kernel -I/archives/system/nhc98-1.16/include  -O3 -DLOW_BYTE_FIRST `if [ xcre-mparam.c = x ];	\
		       then echo cre-mparam.c;		\
		       else echo cre-mparam.c; fi` -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/cre-mparam
/archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/cre-mparam > tmp-gmp-mparam.h
mv tmp-gmp-mparam.h gmp-mparam.h
gcc -c -I../Kernel -I/archives/system/nhc98-1.16/include  -O3 -DLOW_BYTE_FIRST -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_add.o mpz_add.c
gcc -c -I../Kernel -I/archives/system/nhc98-1.16/include  -O3 -DLOW_BYTE_FIRST -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_sub.o mpz_sub.c
gcc -c -I../Kernel -I/archives/system/nhc98-1.16/include  -O3 -DLOW_BYTE_FIRST -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_mul.o mpz_mul.c
gcc -c -I../Kernel -I/archives/system/nhc98-1.16/include  -O3 -DLOW_BYTE_FIRST -o /archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_div.o mpz_div.c
make[2]: Leaving directory `/archives/system/nhc98-1.16/src/runtime/Integer'
make[1]: Leaving directory `/archives/system/nhc98-1.16/src/runtime'

--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="make.errors"

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
asmlong.h:465:38: missing terminating ' character
asmlong.h:503:21: missing terminating " character
asmlong.h:508:12: missing terminating " character
asmlong.h:514:46: missing terminating ' character
asmlong.h:534:40: missing terminating " character
asmlong.h:541:12: missing terminating " character
asmlong.h:545:38: missing terminating " character
asmlong.h:547:12: missing terminating " character
asmlong.h:551:37: missing terminating " character
mpz_div.c:27: warning: initialization makes integer from pointer without a cast
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before "while"
mpz_div.c:27: error: conflicting types for `u'
mpz_div.c:27: error: previous declaration of `u'
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: redefinition of `nodeptr'
mpz_div.c:27: error: `nodeptr' previously defined here
mpz_div.c:27: warning: initialization makes integer from pointer without a cast
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before "while"
mpz_div.c:27: error: conflicting types for `v'
mpz_div.c:27: error: previous declaration of `v'
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: conflicting types for `size'
mpz_div.c:27: error: previous declaration of `size'
mpz_div.c:27: warning: passing arg 1 of `mpz_div_need' makes pointer from integer without a cast
mpz_div.c:27: warning: passing arg 2 of `mpz_div_need' makes pointer from integer without a cast
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before "if"
mpz_div.c:27: error: conflicting types for `Fp'
../Kernel/runtime.h:77: error: previous declaration of `Fp'
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: conflicting types for `Hp'
../Kernel/runtime.h:75: error: previous declaration of `Hp'
mpz_div.c:27: warning: passing arg 2 of `callGc' makes pointer from integer without a cast
mpz_div.c:27: warning: passing arg 4 of `callGc' makes pointer from integer without a cast
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before '++' token
mpz_div.c:27: warning: initialization makes integer from pointer without a cast
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before "while"
mpz_div.c:27: error: subscripted value is neither array nor pointer
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: subscripted value is neither array nor pointer
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before '}' token
mpz_div.c:27: error: redefinition of `nodeptr'
mpz_div.c:27: error: `nodeptr' previously defined here
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: warning: passing arg 2 of `mpz_div' makes pointer from integer without a cast
mpz_div.c:27: warning: passing arg 3 of `mpz_div' makes pointer from integer without a cast
mpz_div.c:27: warning: initialization makes integer from pointer without a cast
mpz_div.c:27: error: initializer element is not constant
mpz_div.c:27: warning: data definition has no type or storage class
mpz_div.c:27: error: syntax error before '--' token
mpz_div.c: In function `primIntegerQuotC':
mpz_div.c:28: warning: comparison between pointer and integer
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
mpz_div.c:28: warning: passing arg 2 of `callGc' makes pointer from integer without a cast
mpz_div.c:28: warning: passing arg 4 of `callGc' makes pointer from integer without a cast
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
mpz_div.c:28: error: subscripted value is neither array nor pointer
mpz_div.c:28: error: subscripted value is neither array nor pointer
mpz_div.c:28: error: subscripted value is neither array nor pointer
mpz_div.c:28: error: subscripted value is neither array nor pointer
mpz_div.c:28: warning: assignment makes pointer from integer without a cast
mpz_div.c:28: warning: assignment makes integer from pointer without a cast
make[2]: *** [/archives/system/nhc98-1.16/targets/ix86-Linux/obj/runtime/Integer/mpz_div.o] Error 1
make[1]: *** [afile] Error 2
make: *** [targets/ix86-Linux/runtime] Error 2

--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="configure.output"

Configuring for nhc98... [ v1.16 (2003-03-08) ]
Starting with earlier config in targets/ix86-Linux/config.cache
[ config: ix86-Linux/gcc by root@daisy on 21 Aug 2003 ]
  (but cmdline options have precedence)
--------
Looking for already-installed Haskell compilers:
  Looking for hbc...   (not found)
  Note: LMLDIR/HBCDIR variables must be set to enable detection of hbc.
  Looking for ghc...   (not found)
  Looking for nhc98... (not found)
You said you want to use gcc to build hmake.
  Now I'm creating targets/ix86-Linux/hmake3.config for your installation.
Done.
--------
                   Configuration report for nhc98.
    (You can re-run configure to change settings before proceeding.)
You wish (eventually) to install the following components in these locations:
    (Installation directories are not created/checked at this stage.)
Final install root:   /usr/local
nhc98 binaries/libs:  /usr/local/lib/nhc98/ix86-Linux
hmake binaries:       /usr/local/lib/hmake/ix86-Linux
Interfaces/includes:  /usr/local/include/nhc98
Scripts:              /usr/local/bin
Man pages:            /usr/local/man/man1
Html documents:       (none)

Now we check/create your build directories:
Config directory:      targets/ix86-Linux
Build directory root:
    /archives/system/nhc98-1.16/targets (exists)
Object files build in:
    /archives/system/nhc98-1.16/targets/ix86-Linux (exists)
Executables and libs:
    /archives/system/nhc98-1.16/lib/ix86-Linux (exists)

You are going to build nhc98 with:          gcc
nhc98comp uses RTS delimiters?              yes
This machine's endian-ness is:              -DLOW_BYTE_FIRST (cached) 
Executables need .exe suffix?               no  (detected)
Testing for the curses library:             -lncurses (cached) 
Testing for the readline library:           no  (detected)
Reading /usr/include/errno.h:               no change
Default heap for compiled programs is: 100000 words (cached) 

Adding Makefile config script to
    /archives/system/nhc98-1.16/lib/ix86-Linux...
Adding build scripts to
    /archives/system/nhc98-1.16/script...    
    nhc98 hmake hmake-config hi greencard 
Creating src/runtime/nhc98heap.c ...
Updating targets/ix86-Linux/hmake3.config...
Saving current configuration in targets/ix86-Linux/config.cache
Done.


--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="configure.errors"

cat: targets/ix86-Linux/ghcsym: No such file or directory

--9jxsPFA5p3P2qPhR--