[nhc-bugs] Unable to build on MacOSX

shiv@mac.com shiv@mac.com
Mon, 5 Nov 2001 22:27:02 -0800


Hi,

I tried installing nhc-1.10 from source on a PowerBook G4 Mac OSX 10.1.

I ran

./configre --buildwith=cc --buildopts=-traditional-cpp

>                    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
> hmake binaries:       /usr/local/lib/hmake/powerpc-Darwin-1.4
> nhc98 binaries/libs:  /usr/local/lib/nhc98/powerpc-Darwin-1.4
> 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/powerpc-Darwin-1.4
> Build directory root:  
> /Users/shiv/Documents/Programs/nhc98-1.10/targets (exists)
> Object files build in: 
> /Users/shiv/Documents/Programs/nhc98-1.10/targets/powerpc-Darwin-1.4 
> (exists)
> Executables and libs:  
> /Users/shiv/Documents/Programs/nhc98-1.10/lib/powerpc-Darwin-1.4 
> (exists)
>
> You are going to build nhc98 with:          cc
> nhc98comp uses RTS delimiters?              yes
> You gave the following extra build options:  -traditional-cpp 
> -traditional-cpp
> This machine's endian-ness is:              -DHIGH_BYTE_FIRST (cached)
> Executables need .exe suffix?               no  (detected)
> Testing for the curses library:             -ltermcap -lcurses (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 
> /Users/shiv/Documents/Programs/nhc98-1.10/lib/powerpc-Darwin-1.4...
> Updating hmake config script in 
> /Users/shiv/Documents/Programs/nhc98-1.10/lib/powerpc-
> Darwin-1.4/hmake.config...
> Adding build scripts to 
> /Users/shiv/Documents/Programs/nhc98-1.10/script...
>     nhc98 hmake hi greencard hat-trail hat-stack hat-connect hat-check 
> hat-observe hat-detect hat-checki hat-port
> Creating src/runtime/nhc98heap.c ...
> Saving current configuration in targets/powerpc-Darwin-1.4/config.cache
> Done.

I then did make and got the following errors:

> cd src/runtime;        make install nhc98heap
> cd Kernel; make all
> 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.
> cd Integer; make all
> Link flt.h already exists.
> cc -I../Kernel -I/Users/shiv/Documents/Programs/nhc98-1.10/include  
> -O3 `if [ xcre-mparam.c = x ];      \
>                        then echo cre-mparam.c;          \
>                        else echo cre-mparam.c; fi` -o 
> /Users/shiv/Documents/Programs/nhc98-1.10/targets/powerpc-
> Darwin-1.4/obj/runtime/Integer/cre-mparam
> ../Kernel/newmacros.h:38: "Can't find default endian-ness for this 
> machine."
> cpp-precomp: warning: errors during smart preprocessing, retrying in 
> basic mode
> make[2]: *** 
> [/Users/shiv/Documents/Programs/nhc98-1.10/targets/powerpc-
> Darwin-1.4/obj/runtime/Integer/cre-mparam] Error 1
> make[1]: *** [afile] Error 2
> make: *** [targets/powerpc-Darwin-1.4/runtime] Error 2

Any idea, what I should do? I thought that config had figured out that 
this was a big-endian machine. Or is the problem elsewhere. Any help 
will be appreciated (as this is the only haskell compiler on Mac). 
Thanks,

--shiv--