Hello, I am trying to install nhc on my machine (ix86, OpenBSD) by building it from the source distribution. I get a number of warnings (see below). The warnings about the large decimal constants seem worrying: is it supposed to be like this? The build failed, because I have no Java (which, I think, was not mentioned in the installation documents). To what extent will this limit my options? I am looking forward to your response. Sincerely, -- Feliks Kluzniak ------------------------------------------------------ /usr/include/malloc.h:4: warning: #warning "<malloc.h> is obsolete, use <stdlib.h>" ./Int.hc:1312: warning: decimal constant is so large that it is unsigned ./Int.hc:2266: warning: decimal constant is so large that it is unsigned ./Bounded_Int.p.c:58: warning: decimal constant is so large that it is unsigned ./Int.p.c:3558: warning: decimal constant is so large that it is unsigned ./Int.p.c:5363: warning: decimal constant is so large that it is unsigned ./Bounded_Int.z.c:42: warning: decimal constant is so large that it is unsigned ./Int.z.c:1982: warning: decimal constant is so large that it is unsigned ./Int.z.c:3121: warning: decimal constant is so large that it is unsigned ./Bounded_Int.T.c:156: warning: decimal constant is so large that it is unsigned ./Int.T.c:6892: warning: decimal constant is so large that it is unsigned ./Int.T.c:9188: warning: decimal constant is so large that it is unsigned browsercomms.c:36: warning: passing arg 2 of `accept' from incompatible pointer type gmake[1]: Entering directory `/scratch/try/nhc/nhc98-1.10/src/tracer/ui' javac nhctracer/*.java /bin/sh: javac: not found gmake[1]: *** [classfiles] Error 127 ------------------------------------------------------ P.S. Just in case it might help throw some light on the problem, here is the output from configure. ------------------------------------------------------ 108 /scratch/try/nhc/nhc98-1.10> ./configure --buildwith=gcc --prefix=/scratch/try/nhc --heap=4Mb Configuring for nhc98... [ v1.10 (2001-10-19) ] -------- Configuring hmake... [ 2.03 (2001-10-02) ] (hmake configuration is done once only.) First we look for already-installed Haskell compilers: Looking for hbc... (not found) Looking for ghc... (not found) Looking for nhc13... (not found) Looking for nhc98... (not found) You said you want to use gcc to build hmake. Now I'm creating targets/ix86-OpenBSD/hmake.config for your installation. If I got something wrong, you can edit targets/ix86-OpenBSD/hmake.config by hand and run 'configure' again. (I will not undo your changes.) (You can force me to auto-configure hmake again by removing that file.) 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: /scratch/try/nhc hmake binaries: /scratch/try/nhc/lib/hmake/ix86-OpenBSD nhc98 binaries/libs: /scratch/try/nhc/lib/nhc98/ix86-OpenBSD Interfaces/includes: /scratch/try/nhc/include/nhc98 Scripts: /scratch/try/nhc/bin Man pages: /scratch/try/nhc/man/man1 Html documents: (none) Now we check/create your build directories: Config directory: targets/ix86-OpenBSD Build directory root: /scratch/try/nhc/nhc98-1.10/targets (exists) Object files build in: /scratch/try/nhc/nhc98-1.10/targets/ix86-OpenBSD (exists) Executables and libs: /scratch/try/nhc/nhc98-1.10/lib/ix86-OpenBSD (created) You are going to build nhc98 with: gcc nhc98comp uses RTS delimiters? yes This machine's endian-ness is: -DLOW_BYTE_FIRST (detected) Executables need .exe suffix? no (detected) Testing for the curses library: -lcurses (detected) Testing for the readline library: -lreadline (detected) Reading /usr/include/errno.h: updated DErrNo.hs Default heap for compiled programs is: 1000000 words (calculated) Creating new lib/ix86-OpenBSD/nhc98heap ... Adding Makefile config script to /scratch/try/nhc/nhc98-1.10/lib/ix86-OpenBSD... Updating hmake config script in /scratch/try/nhc/nhc98-1.10/lib/ix86-OpenBSD/hmake.config... Adding build scripts to /scratch/try/nhc/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/ix86-OpenBSD/config.cache Done.
I get a number of warnings (see below). The warnings about the large decimal constants seem worrying: is it supposed to be like this?
Yes, these warnings are normal. They occur in C code generated for the maximum and minimum bounds of the Int/Int32/Int64 types. The minimum Int value of -2147483648, when expressed literally in C, generates a warning from gcc that the decimal constant is so large it is unsigned. If you think this message is misleading, I agree, and I suggest you should report it as a bug to Gnu.
The build failed, because I have no Java (which, I think, was not mentioned in the installation documents). To what extent will this limit my options?
The only requirement for Java is to build the hat-trail browser and the HOOD browser. (This is mentioned near the top of the installation page, under System Requirements.) Do not worry if you don't wish to use these particular debugging tools - the rest of the nhc98 build is complete. (For the future, we are working to remove Java as a requirement for the hat-trail browser, by redesigning and recoding it in Haskell.) Regards, Malcolm
participants (2)
-
Feliks Kluzniak -
Malcolm Wallace