Must be a FAQ - Can't make install Hugs98-Nov2003 on MacOSX 10.3.8

I'm sure this must be a FAQ, but I can't make install hugs98-Nov2003 on MacOS 10.3.8. The error message I get is: ... gcc -c -g -O2 machine.c machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1649: illegal expression, found `&&' machine.c:1673: illegal statement, missing `identifier' after `goto' machine.c:1673: syntax error, missing `;' after `*' machine.c:1677: illegal statement, missing `identifier' after `goto' machine.c:1677: syntax error, missing `;' after `*' machine.c:1681: illegal statement, missing `identifier' after `goto' machine.c:1681: syntax error, missing `;' after `*' machine.c:1685: illegal statement, missing `identifier' after `goto' machine.c:1685: syntax error, missing `;' after `*' machine.c:1689: illegal statement, missing `identifier' after `goto' machine.c:1689: syntax error, missing `;' after `*' machine.c:1694: illegal statement, missing `identifier' after `goto' machine.c:1694: syntax error, missing `;' after `*' machine.c:1698: illegal statement, missing `identifier' after `goto' machine.c:1698: syntax error, missing `;' after `*' machine.c:1707: illegal statement, missing `identifier' after `goto' machine.c:1707: syntax error, missing `;' after `*' machine.c:1715: illegal statement, missing `identifier' after `goto' machine.c:1715: syntax error, missing `;' after `*' machine.c:1729: illegal statement, missing `identifier' after `goto' machine.c:1729: syntax error, missing `;' after `*' machine.c:1738: illegal statement, missing `identifier' after `goto' machine.c:1738: syntax error, missing `;' after `*' machine.c:1742: illegal statement, missing `identifier' after `goto' machine.c:1742: syntax error, missing `;' after `*' machine.c:1748: illegal statement, missing `identifier' after `goto' machine.c:1748: syntax error, missing `;' after `*' machine.c:1756: illegal statement, missing `identifier' after `goto' machine.c:1756: syntax error, missing `;' after `*' machine.c:1759: illegal statement, missing `identifier' after `goto' machine.c:1759: syntax error, missing `;' after `*' machine.c:1763: illegal statement, missing `identifier' after `goto' machine.c:1763: syntax error, missing `;' after `*' machine.c:1771: illegal statement, missing `identifier' after `goto' machine.c:1771: syntax error, missing `;' after `*' machine.c:1791: illegal statement, missing `identifier' after `goto' machine.c:1791: syntax error, missing `;' after `*' machine.c:1814: illegal statement, missing `identifier' after `goto' machine.c:1814: syntax error, missing `;' after `*' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode ... What should I do? Thanks. Kaoru Hosokawa

See the hugs-bugs archive: http://www.mail-archive.com/hugs-bugs@haskell.org/msg02815.html Malcolm Wallace wrote:
The configure script is (wrongly) determining that the MacOS X C compiler does not support Floats/Doubles. Ideally, the autoconf magic which determined this setting should be fixed, but in the meantime, you can work around it by:
(1) Edit src/config.h, replacing the line /* #undef HAVE_LIBM */ with #define HAVE_LIBM 1 (2) rm src/*.o (3) cd src; make
Regards, Malcolm
Hope this answers your question. Arthur On 25-feb-05, at 16:09, Kaoru Hosokawa wrote:
I'm sure this must be a FAQ, but I can't make install hugs98-Nov2003 on MacOS 10.3.8. The error message I get is:

Arthur Baars wrote:
See the hugs-bugs archive: http://www.mail-archive.com/hugs-bugs@haskell.org/msg02815.html
Malcolm Wallace wrote:
The configure script is (wrongly) determining that the MacOS X C compiler does not support Floats/Doubles. Ideally, the autoconf magic which determined this setting should be fixed, [...]
Hmmm, I'm not sure if the autoconf magic has been fixed. Does it work with Hugs from CVS HEAD? If not, could somebody please send a patch for it or at least a log + all involved config.logs? I don't have access to a Mac... Cheers, S.

Hi, The hugs98-20041101 snapshot builds without trouble on OS X 10.3.8. (It's the one I use in darwinports for hugs98-devel). Our standard DP hugs98 is still the Nov2002 version, since I was never able to get the Nov2003 release to build properly. (If your not familiar with darwinports, see http://darwinports.opendarwin.org. It is in some ways similar to fink, but is intended to be a more flexible building/ packaging infrastructure.) If you do decide to set up darwinports on your system, you can build the 20041101 snapshot from source by typing sudo port install hugs98-devel Remember to add the darwinports binary directory (/opt/local/bin by default) to your path. If you want to watch the progress of the build, use sudo port -dv install hugs98-devel (the -dv option gives you verbose debugging, and will let you see all of the output from the build). Best Wishes, Greg On Feb 25, 2005, at 4:56 PM, Sven Panne wrote:
Arthur Baars wrote:
See the hugs-bugs archive: http://www.mail-archive.com/hugs-bugs@haskell.org/msg02815.html Malcolm Wallace wrote:
The configure script is (wrongly) determining that the MacOS X C compiler does not support Floats/Doubles. Ideally, the autoconf magic which determined this setting should be fixed, [...]
Hmmm, I'm not sure if the autoconf magic has been fixed. Does it work with Hugs from CVS HEAD? If not, could somebody please send a patch for it or at least a log + all involved config.logs? I don't have access to a Mac...
Cheers, S. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Arthur Baars
-
Gregory Wright
-
Kaoru Hosokawa
-
Sven Panne