Unable to build on MacOSX

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--

I tried installing nhc-1.10 from source on a PowerBook G4 Mac OSX 10.1.
../Kernel/newmacros.h:38: "Can't find default endian-ness for this machine."
Here's a patch. Do let us know if you encounter any further problems with building nhc98 under MacOS X. We like to support as many platforms as possible.
... (as this is the only haskell compiler on Mac)
I believe ghc has been ported to MacOS X. Look for instance at http://www.haskell.org/ghc/download_ghc_500.html (The latest version available seems to be 5.00.2, rather than 5.02.1) Regards, Malcolm Index: src/runtime/Integer/Makefile =================================================================== RCS file: /usr/src/master/nhc/src/runtime/Integer/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- src/runtime/Integer/Makefile 1999/11/01 13:48:41 1.4 +++ src/runtime/Integer/Makefile 2001/11/06 10:03:26 @@ -12,7 +12,7 @@ HEADERS = gmp-mparam.h -CFLAGS= -I../Kernel -I${INCDIR} ${DCFG} ${OPT} +CFLAGS= -I../Kernel -I${INCDIR} ${DCFG} ${OPT} ${ENDIAN} LINKS = flt.h

Hi, Endianness of MacOS X if I recall can be computed with: -DHIGH_BYTE_FIRST (it's a BIG_ENDIAN) I had a port of an old version of nhc (1.02) to MacOS X, but I couldn't (and currently do not have time) to continue working on it. I have a tarball of that port, if it is useful I can make it visible for those interested. I have a slow link so you have to download it at night (bolivian night). Best, Pablo On Tuesday, November 6, 2001, at 07:15 AM, Malcolm Wallace wrote:
I tried installing nhc-1.10 from source on a PowerBook G4 Mac OSX 10.1.
../Kernel/newmacros.h:38: "Can't find default endian-ness for this machine."
Here's a patch. Do let us know if you encounter any further problems with building nhc98 under MacOS X. We like to support as many platforms as possible.
... (as this is the only haskell compiler on Mac)
I believe ghc has been ported to MacOS X. Look for instance at http://www.haskell.org/ghc/download_ghc_500.html (The latest version available seems to be 5.00.2, rather than 5.02.1)
Regards, Malcolm
participants (3)
-
Malcolm Wallace
-
Pablo Azero
-
shiv@mac.com