problem building hmake on Mac OS X

Hello everyone, I'm trying to build hmake on version 10.3.6 of Mac OS, having installed the ghc 6.2.2 dmg I found on haskell.org, but I'm encountering the following problem: Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ make cd src/hmake; make HC=ghc all config /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7/config:9: *** missing separator. Stop. make: *** [targets/powerpc-Darwin7/hmake-ghc] Error 2 Here's lib/powerpc-Darwin7/config: Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ cat lib/powerpc-Darwin7/config BUILDWITH=ghc BUILDOPTS="" INSTALLVER="3.09 (2004-11-13)" INSTALLINFO="config: powerpc-Darwin7/ by sge@Steven-Elkins-Computer.local on Thu Dec 2 04:43:46 EST 2004" BUILDBASEDIR=/Users/sge/haskell/hmake-3.09/targets READLINE="-DUSE_READLINE=1 -lreadline" EXE= GHCSYM=#pragma GCC set_debug_pwd "/Users/sge/haskell/hmake-3.09" 602 TRUE=/usr/bin/true In case Gmail wraps this, line 9 has the oracular '602'. Finally, here's the ./configure output: Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ ./configure --prefix=/usr/local Configuring for hmake... [ 3.09 (2004-11-13) ] -------- 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... found 6.2.2 Looking for nhc98... (not found) I am guessing that you want to use ghc to build hmake. Now I'm creating targets/powerpc-Darwin7/hmake3.config for your installation. Done. -------- Configuration report for hmake. (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-Darwin7 Scripts: /usr/local/bin Man pages: /usr/local/man/man1 Now we check/create your build directories: Config directory: targets/powerpc-Darwin7 Build directory root: /Users/sge/haskell/hmake-3.09/targets (exists) Object files build in: /Users/sge/haskell/hmake-3.09/targets/powerpc-Darwin7 (exists) Executables and libs: /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7 (created) I have guessed you will build hmake with: ghc Testing for the curses library: -lncurses (detected) Testing for the readline library: -lreadline (detected) Executables need .exe suffix? no (detected) Found /usr/bin/true not /bin/true Adding Makefile config script to /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7... Adding build scripts for hmake, hmake-config, and hi to /Users/sge/haskell/hmake-3.09/script... Updating targets/powerpc-Darwin7/hmake3.config... Saving current configuration in targets/powerpc-Darwin7/config.cache Done. Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ Thanks, Steve

Steven Elkins
I'm trying to build hmake on version 10.3.6 of Mac OS,
GHCSYM=#pragma GCC set_debug_pwd "/Users/sge/haskell/hmake-3.09" 602
Thanks for the bug report - another MacOS user has already reported it and supplied a patch (attached). Apparently Apple's version of gcc always inserts that nasty pragma line. Regards, Malcolm

Hi Steve, I see that Malcolm Wallace has already answered your question, but you might be interested in some of the other haskell tools for OS X supported under darwinports. See http://darwinports.opendarwin.org hmake is supported, as well as a the new haskell-mode for emacs and a bunch of other stuff (e.g. alex, happy, hat, buddha, haskelldb). I support most of the tools, so feel free to ask questions. Best Wishes, Greg On Dec 2, 2004, at 5:05 AM, Steven Elkins wrote:
Hello everyone,
I'm trying to build hmake on version 10.3.6 of Mac OS, having installed the ghc 6.2.2 dmg I found on haskell.org, but I'm encountering the following problem:
Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ make cd src/hmake; make HC=ghc all config /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7/config:9: *** missing separator. Stop. make: *** [targets/powerpc-Darwin7/hmake-ghc] Error 2
Here's lib/powerpc-Darwin7/config:
Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ cat lib/powerpc-Darwin7/config BUILDWITH=ghc BUILDOPTS="" INSTALLVER="3.09 (2004-11-13)" INSTALLINFO="config: powerpc-Darwin7/ by sge@Steven-Elkins-Computer.local on Thu Dec 2 04:43:46 EST 2004" BUILDBASEDIR=/Users/sge/haskell/hmake-3.09/targets READLINE="-DUSE_READLINE=1 -lreadline" EXE= GHCSYM=#pragma GCC set_debug_pwd "/Users/sge/haskell/hmake-3.09" 602 TRUE=/usr/bin/true
In case Gmail wraps this, line 9 has the oracular '602'.
Finally, here's the ./configure output:
Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$ ./configure --prefix=/usr/local Configuring for hmake... [ 3.09 (2004-11-13) ] -------- 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... found 6.2.2 Looking for nhc98... (not found) I am guessing that you want to use ghc to build hmake. Now I'm creating targets/powerpc-Darwin7/hmake3.config for your installation. Done. -------- Configuration report for hmake. (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-Darwin7 Scripts: /usr/local/bin Man pages: /usr/local/man/man1
Now we check/create your build directories: Config directory: targets/powerpc-Darwin7 Build directory root: /Users/sge/haskell/hmake-3.09/targets (exists) Object files build in: /Users/sge/haskell/hmake-3.09/targets/powerpc-Darwin7 (exists) Executables and libs: /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7 (created)
I have guessed you will build hmake with: ghc Testing for the curses library: -lncurses (detected) Testing for the readline library: -lreadline (detected) Executables need .exe suffix? no (detected) Found /usr/bin/true not /bin/true
Adding Makefile config script to /Users/sge/haskell/hmake-3.09/lib/powerpc-Darwin7... Adding build scripts for hmake, hmake-config, and hi to /Users/sge/haskell/hmake-3.09/script... Updating targets/powerpc-Darwin7/hmake3.config... Saving current configuration in targets/powerpc-Darwin7/config.cache Done.
Steven-Elkins-Computer:~/haskell/hmake-3.09 sge$
Thanks, Steve _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Thanks for reminding me of DarwinPorts. I've been meaning to look at
it. The haskell tools are more complete than Fink's. I didn't see
the new Emacs mode you mentioned when I looked earlier today (and now
I'm getting "Parse error: parse error in
/Library/WebServer/Documents/projects/darwinports/ports.php on line
126" when I try to visit the ports page, but never mind that). Is it
part of something, or did I just miss it?
Thanks,
Steve
On Thu, 2 Dec 2004 06:35:15 -0500, Gregory Wright
Hi Steve,
I see that Malcolm Wallace has already answered your question, but you might be interested in some of the other haskell tools for OS X supported under darwinports. See http://darwinports.opendarwin.org
hmake is supported, as well as a the new haskell-mode for emacs and a bunch of other stuff (e.g. alex, happy, hat, buddha, haskelldb). I support most of the tools, so feel free to ask questions.
Best Wishes, Greg
participants (3)
-
Gregory Wright
-
Malcolm Wallace
-
Steven Elkins