ghc installation on Linux doesn't like CDPATH

2003-06-03 Thread George Russell
The "cd" command on Linux considerately prints out the name of the
new directory, which it gets from the CDPATH. This has the unfortunate
side-effect of breaking "gmake install" for ghc6.0, which uses some shell
hackery of the form something like:
for i in `(cd share ; find .)`

where i's first value will of course be the new directory printed out by
"cd".
The workaround is to set CDPATH to null.

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-748108 ] Unable to build ghc 6.0 (linux with GCC cpp 3.3)

2003-06-03 Thread SourceForge.net
Bugs item #748108, was opened at 2003-06-03 13:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=748108&group_id=8032

Category: Build System
Group: 6.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Hampus Ram (hampusr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to build ghc 6.0 (linux with GCC cpp 3.3)

Initial Comment:
Building ghc 6.0 does not work on Debian GNU/Linux
testing. Failing with the error
'nativeGen/MachMisc.lhs:80: unterminated argument list
invoking macro "IF_ARCH_alpha"'. Also, _a lot_ of
'extra tokens at end of #endif directive' warnings appear.

To me this seems like a problem with gcc 3.3 (or rather
cpp) being stricter and not accepting haskell comments.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=748108&group_id=8032
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

2003-06-03 Thread Volker Stolz
Could the parties involved with the quoting issue please test the
following patch? It doesn't use an additional shell for starting
sub-tasks and does no additional quoting so that quoting remains
unaffected, i.e. testing with OpenGL shows that the double quotes
are indeed passed through. Sven, do you have time to verify this?

*** C pre-processor
gcc -E -undef -traditional -v -I . -I include -I 
/usr/tmp/fptools/libraries/base/include -I /usr/tmp/fptools/ghc/includes 
-D__HASKELL1__=5 -D__GLASGOW_HASKELL__=601 -D__HASKELL98__ -D__CONCURRENT_HASKELL__ 
-DCALLCONV=ccall -DGET_PROC_ADDRESS="glXGetProcAddressARB" 
-DDONT_WANT_WIN32_DLL_SUPPORT -x c Graphics/Rendering/OpenGL/GL/BasicTypes.hs -o 
/tmp/ghc70692.hscpp

It works successfully in all 3 stages and in the libraries, but I'm
not sure if I missed somebody sneaking in any
   Option "-foo -bar"
along the more obscure paths!

Perhaps I should add a sanity check to 'showOpt' which will print
a warning if it encounters " -" anywhere in the string until 6.2?
'ghc -v' will show the arguments with interspersed spaces, so you
cannot really tell if there's a quote in the argument or not -- but
it means you can still cut&paste sub-tasks from -v. It might be
sensible to surround *only* the arguments in the debugging output
with single quotes, so that perpetrators can be spotted.

Mingw is unaffected, but it might be worth seeing if now both cases
boil down to one.

Volker
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
rage against the finite state machine 
? autom4te.cache
? compiler/.depend-3
? compiler/stage3
? driver/stamp-pkg-conf-OpenGL
? driver/ghc/ghc-6.1
? driver/ghci/ghci-6.1
? rts/log
? rts/gmp/.deps
? rts/gmp/.libs
? rts/gmp/Makefile
? rts/gmp/config.cache
? rts/gmp/config.m4
? rts/gmp/config.status
? rts/gmp/gmp-mparam.h
? rts/gmp/libgmp.la
? rts/gmp/libtool
? rts/gmp/stamp-h
? rts/gmp/mpn/.libs
? rts/gmp/mpn/Makefile
? rts/gmp/mpn/add_n.asm
? rts/gmp/mpn/addmul_1.asm
? rts/gmp/mpn/bdivmod.c
? rts/gmp/mpn/bz_divrem_n.c
? rts/gmp/mpn/cmp.c
? rts/gmp/mpn/copyd.asm
? rts/gmp/mpn/copyi.asm
? rts/gmp/mpn/diveby3.asm
? rts/gmp/mpn/divrem.c
? rts/gmp/mpn/divrem_1.asm
? rts/gmp/mpn/divrem_2.c
? rts/gmp/mpn/dump.c
? rts/gmp/mpn/gcd.c
? rts/gmp/mpn/gcd_1.c
? rts/gmp/mpn/gcdext.c
? rts/gmp/mpn/get_str.c
? rts/gmp/mpn/hamdist.c
? rts/gmp/mpn/inlines.c
? rts/gmp/mpn/jacbase.c
? rts/gmp/mpn/libmpn.la
? rts/gmp/mpn/lshift.asm
? rts/gmp/mpn/mod_1.asm
? rts/gmp/mpn/mod_1_rs.c
? rts/gmp/mpn/mul.c
? rts/gmp/mpn/mul_1.asm
? rts/gmp/mpn/mul_basecase.asm
? rts/gmp/mpn/mul_fft.c
? rts/gmp/mpn/mul_n.c
? rts/gmp/mpn/perfsqr.c
? rts/gmp/mpn/popcount.c
? rts/gmp/mpn/pre_mod_1.c
? rts/gmp/mpn/random.c
? rts/gmp/mpn/random2.c
? rts/gmp/mpn/rshift.asm
? rts/gmp/mpn/sb_divrem_mn.c
? rts/gmp/mpn/scan0.c
? rts/gmp/mpn/scan1.c
? rts/gmp/mpn/set_str.c
? rts/gmp/mpn/sqr_basecase.c
? rts/gmp/mpn/sqrtrem.c
? rts/gmp/mpn/sub_n.asm
? rts/gmp/mpn/submul_1.asm
? rts/gmp/mpn/tdiv_qr.c
? rts/gmp/mpn/udiv.asm
? rts/gmp/mpn/umul.asm
? rts/gmp/mpz/.libs
? rts/gmp/mpz/Makefile
? rts/gmp/mpz/libmpz.la
? rts/gmp/mpz/mul_si.c
? rts/gmp/mpz/mul_ui.c
? utils/genapply/genapply
? utils/ghc-pkg/ghc-pkg-6.1
Index: compiler/main/SysTools.lhs
===
RCS file: /home/cvs/root/fptools/ghc/compiler/main/SysTools.lhs,v
retrieving revision 1.88
diff -u -r1.88 SysTools.lhs
--- compiler/main/SysTools.lhs  25 May 2003 20:54:18 -  1.88
+++ compiler/main/SysTools.lhs  3 Jun 2003 10:46:30 -
@@ -81,6 +81,7 @@
  openFile, hPutChar, hPutStrLn, hPutStr, hClose, hFlush, 
IOMode(..),
  stderr )
 import Directory   ( doesFileExist, removeFile )
+import List ( intersperse )
 
 #include "../includes/config.h"
 
@@ -93,8 +94,12 @@
 #ifndef mingw32_HOST_OS
 #if __GLASGOW_HASKELL__ > 504
 import qualified System.Posix.Internals
+import System.Posix.Process ( executeFile, getProcessStatus, forkProcess, 
ProcessStatus(..))
+import System.Posix.Signals ( installHandler, sigCHLD, Handler(..) )
 #else
 import qualified Posix
+import Posix ( executeFile, getProcessStatus, forkProcess, ProcessStatus(..), 
installHandler,
+   sigCHLD, Handler(..) )
 #endif
 #else /* Must be Win32 */
 import List( isPrefixOf )
@@ -190,7 +195,7 @@
 
 \begin{code}
 GLOBAL_VAR(v_Pgm_L,error "pgm_L",   String)-- unlit
-GLOBAL_VAR(v_Pgm_P,error "pgm_P",   String)-- cpp
+GLOBAL_VAR(v_Pgm_P,error "pgm_P",   (String,[Option])) -- cpp
 GLOBAL_VAR(v_Pgm_F,error "pgm_F",   String)-- pp
 GLOBAL_VAR(v_Pgm_c,error "pgm_c",   String)-- gcc
 GLOBAL_VAR(v_Pgm_m,error "pgm_m",   String)-- asm code mangler
@@ -374,7 +379,9 @@
 #endif
 
-- cpp is derived from gcc on all platforms
-; let cpp_path  = gcc_path ++ " -E " ++ cRAWCPP_FLAGS
+-- HACK, see setPgmP below. We keep 'words' here to remember to fix
+   

Package Main

2003-06-03 Thread Alastair Reid
I'm running into a strange problem when I build the X11 library using current 
ghc (built from repository yesterday using gcc 3.2).  The error message I get 
is:

   ghc-6.1: unknown package name: Main

The puzzling bit here is that I am compiling a part of a library using -c, I 
don't mention a package called Main and package.conf doesn't mention the word 
Main.  So why does the error message mention Main?

Any thoughts?

--
Alastair Reid

ps The command is

/usr/local/bin/ghc -H16m -O -Wall -cpp -fglasgow-exts -fffi -Iinclude -package 
haskell98 -package HSgreencard -package-name HSX11 -O -Rghc-timing  -package 
haskell98  -package HSgreencard -split-objs-c Graphics/X11/Types.hs -o 
Graphics/X11/Types.o  -ohi Graphics/X11/Types.hi -v 2> /tmp/log2 1> /tmp/log1

and I'm including Types.hs, stdout and stderr as attachments
 Packages 
Package
   {name = "data",
auto = False,
import_dirs = ["/usr/local/lib/ghc-6.1/hslibs-imports/data"],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HSdata"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["haskell98", "lang", "util"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
   {name = "haskell98",
auto = True,
import_dirs = ["/usr/local/lib/ghc-6.1/imports"],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HShaskell98"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
   {name = "rts",
auto = False,
import_dirs = [],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HSrts"],
extra_libraries = ["m", "gmp", "dl"],
include_dirs = ["/usr/local/lib/ghc-6.1/include"],
c_includes = ["Stg.h"],
package_deps = [],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts =
  ["-u",
   "GHCziBase_Izh_static_info",
   "-u",
   "GHCziBase_Czh_static_info",
   "-u",
   "GHCziFloat_Fzh_static_info",
   "-u",
   "GHCziFloat_Dzh_static_info",
   "-u",
   "GHCziPtr_Ptr_static_info",
   "-u",
   "GHCziWord_Wzh_static_info",
   "-u",
   "GHCziInt_I8zh_static_info",
   "-u",
   "GHCziInt_I16zh_static_info",
   "-u",
   "GHCziInt_I32zh_static_info",
   "-u",
   "GHCziInt_I64zh_static_info",
   "-u",
   "GHCziWord_W8zh_static_info",
   "-u",
   "GHCziWord_W16zh_static_info",
   "-u",
   "GHCziWord_W32zh_static_info",
   "-u",
   "GHCziWord_W64zh_static_info",
   "-u",
   "GHCziStable_StablePtr_static_info",
   "-u",
   "GHCziBase_Izh_con_info",
   "-u",
   "GHCziBase_Czh_con_info",
   "-u",
   "GHCziFloat_Fzh_con_info",
   "-u",
   "GHCziFloat_Dzh_con_info",
   "-u",
   "GHCziPtr_Ptr_con_info",
   "-u",
   "GHCziPtr_FunPtr_con_info",
   "-u",
   "GHCziStable_StablePtr_con_info",
   "-u",
   "GHCziBase_False_closure",
   "-u",
   "GHCziBase_True_closure",
   "-u",
   "GHCziPack_unpackCString_closure",
   "-u",
   "GHCziIOBase_stackOverflow_closure",
   "-u",
   "GHCziIOBase_heapOverflow_closure",
   "-u",
   "GHCziIOBase_NonTermination_closure",
   "-u",
   "GHCziIOBase_BlockedOnDeadMVar_closure",
   "-u",
   "GHCziIOBase_Deadlock_closure",
   "-u",
   "GHCziWeak_runFinalizzerBatch_closure",
   "-u",
   "__stginit_Prelude"],
framework_dirs = [],
extra_frameworks = []}
Package
   {name = "base",
auto = True,
import_dirs = ["/usr/local/lib/ghc-6.1/imports"],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HSbase"],
extra_libraries = ["HSbase_cbits"],
include_dirs = [],
c_includes = ["HsBase.h"],
package_deps = ["rts"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
   {name = "network",
auto = True,
import_dirs = ["/usr/local/lib/ghc-6.1/imports"],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HSnetwork"],
extra_libraries = [],
include_dirs = [],
c_includes = ["HsNet.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
   {name = "haskell-src",
auto = True,
import_dirs = ["/usr/local/lib/ghc-6.1/imports"],
source_dirs = [],
library_dirs = ["/usr/local/lib/ghc-6.1"],
hs_libraries = ["HShaskell-src"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
   

Re: ANNOUNCE: GreenCard 3.00 (alpha release)

2003-06-03 Thread Alastair Reid
On Monday 02 June 2003 7:20 pm, Alastair Reid wrote:

> In preparation for a major release of Green Card, we are making an alpha
> release for GHC folk to play with.

Ooops, I found some bugs at the last minute and recut the release - please 
download again (if you downloaded before 9pm British time).

Note that I (sloppily) have not increased the version number,

This being an alpha release for a major upgrade to the system, you should 
expect to find bugs in the documentation and packaging as well as in the 
program and library itself.  All formsd of bug report are welcome but I 
prefer either a bugfix or a cvs commit message.

--
Alastair Reid

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


ANNOUNCE: GreenCard 3.00 (alpha release)

2003-06-03 Thread Alastair Reid
   Green Card 3.00
A Foreign Function Interface Preprocessor for Haskell

In preparation for a major release of Green Card, we are making an alpha 
release for GHC folk to play with.

GreenCard is a foreign function interface pre-processor for Haskell.
GreenCard 3.00 has been updated to work with Haskell compilers that
support the foreign function interface and hierarchial libraries.

The major changes from the 2.x series of GreenCard are:

 - Support for hierarchial module names.
 - The StdDIS module has been renamed Foreign.GreenCard.
 - Support for all the types provided by the FFI specification.
 - Removed deprecated types like Addr: use the Ptr type provided
   by the FFI specification.
 - The Hugs and NHC-specific backends has been removed since FFI
   support renders it irrelevant.

Pointers to downloadable distributions, documentation etc.
is available via the Green Card home page:

   http://www.haskell.org/greencard/

Please send any bug reports or suggestions for improvements to
Alastair Reid .

Enjoy!

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Can't install ghc-6.0 on Solaris

2003-06-03 Thread George Russell
# uname -a
SunOS leo 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Fire-280R
# ./ghci
./ghci: /nfs/moussor/hdaume/lib/ghc-6.0/ghc-6.0: not found
Also the install process failed as follows:

./mkdirhier /usr/local/pub-bkb/ghc/ghc-6.0/share/ghc-6.0/html
if test -d share/html ; then cp -r share/html/* 
/usr/local/pub-bkb/ghc/ghc-6.0/share/ghc-6.0/html ; fi
for i in share/*.ps; do \
cp $i /usr/local/pub-bkb/ghc/ghc-6.0/share/ghc-6.0 ; \
done
cp: cannot access share/*.ps
gmake: *** [install-docs] Error 2
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

2003-06-03 Thread Sven Panne
Simon Marlow wrote:
> AFAICT, GHC on Windows has always done this quoting, the change was
> to make GHC on Unix do it too. [...]
Well, after some investigation of GHC's history, I came to the
conclusion that quoting for -D and -U options on *nix has been a
special case in pre-6.0 GHCs: -DFOO=BAR was passed as -D'FOO=BAR', but
as "-DFOO=BAR" on WinDoze. The latter done on all platforms now, which
is not very nice, but at least consistent. So I surrender and I will
adapt my Makefile (as soon as I have a new GHC ready).
Text substitution as a parameter passing mechanisms REALLY sucks...

Cheers,
   S.
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

2003-06-03 Thread Simon Marlow
 
>  > But in any case, just removing the double quotes from your 
> -D option
>  > should be enough to fix it.
> 
> Well, fixing my humble Makefile is not the point, I'm more concerned
> about this gratuitous change in the handling of quoting which breaks
> other people's Makefiles.
> 
> Regardless of the solution, th quoting issue should be documented in
> the GHC docs somehow.

AFAICT, GHC on Windows has always done this quoting, the change was to
make GHC on Unix do it too.

I think the reasoning behind it was to fix some bugs related to
filenames with spaces in.  We now consistently surround all arguments to
external commands in quotes, which on the face of it seems like a
reasonable thing to do, no?  It could be made more bulletproof, by
quoting each character individually I suppose.

Cheers,
Simon


___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs