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

2003-06-04 Thread SourceForge.net
Bugs item #748108, was opened at 2003-06-03 11:23
Message generated for change (Comment added) made by simonmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=748108group_id=8032

Category: Build System
Group: 6.0
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Hampus Ram (hampusr)
Assigned to: Simon Marlow (simonmar)
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.

--

Comment By: Simon Marlow (simonmar)
Date: 2003-06-03 14:08

Message:
Logged In: YES 
user_id=48280

Fixed, thanks.


--

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


ghc --make and missing interface files

2003-06-04 Thread George Russell
Hello all, I have a file BinaryIO.  This used to import a module
HGetCharHack to work around an annoying problem with ghc5.04 which
meant that hGetChar was blocking unexpectedly.  However I see that
this problem has now been fixed in ghc6 (ta very much, Simon) so I
deleted the files HGetCharHack.*, modified BinaryIO to stop importing
it, and then tried to compile it using ghc --make.  However the thing
fell over, as follows:
 Skipping ... (lots of files) ...
 Skipping UnionFind

 Could not find interface file for `HGetCharHack'
 (use -v to see a list of the files searched for)
What I think is happening is that ghc --make is picking up BinaryIO.hi
somehow, discovering that it refers to HGetCharHack, and complaining
when it can't find HGetCharHack.  At any rate, deleting BinaryIO.hi
fixed the problem.
What I think it should do is not look at BinaryIO.hi when BinaryIO.hs
is newer, or at least not be so surprised when an obsolete BinaryIO.hi
refers to non-existent modules.


Oh, by the way, I don't think I've said thank you very much for ghc6,
which in general is very good, and mostly works fine, so please take
that as read now.  Alas there isn't a [EMAIL PROTECTED]
list, so -bugs will have to do ...


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


locating package.conf

2003-06-04 Thread Derek Elkins
After building GHC6.1 from CVS a few days old now, on Win2k with MinGW
3.2, I tested it in the build tree and it worked fine.  After performing
make install, the GHC completely stopped working because it couldn't
find package.conf(.inplace).  I eventually tracked it down to a
self-described hack in SysTools.lhs that decides if it's
installed or in the build tree by whether package.conf can be found in
TopDir (which I'm assuming is (usu.) $prefix).  Sometime in the past
couple months all the files in $prefix got moved to $prefix/lib, the
result being the installed GHC thinks it's in the build tree and dies
when it can't find $prefix/driver/package.conf.inplace.  I'm not sure
where in the build system this was changed or what's the best thing to
do about it (in general; moving lib to $prefix and copying gcc to
$prefix [though that's probably due to the way I configured] seems to
get it working for me.)

I don't know if this is immediately related to the things Alastair Reid
is doing or if this was known (I remember something about make install
not working, but that seemed for standalone libraries, not GHC, also
this seems easy enough to fix at least temporarily while a better
solution is worked out.)  This may already be fixed, but just not in the
Win32 path through the build system.

On a side note:  Is there any reason why cygpath -w + some sed/shell
hackery is used to get what seems to be the behavior of cygpath -m?  I
haven't had any problems with it, just wondering.

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


[ ghc-Bugs-748490 ] -odir bug

2003-06-04 Thread SourceForge.net
Bugs item #748490, was opened at 2003-06-03 15:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=748490group_id=8032

Category: Compiler
Group: 6.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: -odir bug

Initial Comment:
hello,
there seems to be a problem when compiling modules
using the hirarchical-namespace and using the -odir flag:

(in A/A.hs)
module A.A where
  import A.B

(in A/B.hs)
module A.B where

ghc --make A.A -odir obj
Chasing modules from: A.A
Compiling A.B  ( A/B.hs, obj/A/B.o )
Compiling A.A  ( A/A.hs, obj/A/A.o )

ls obj
A  A.o  B.o
(the object files were put in obj instead of obj/A)

since the compiler thinks that the files are in obj/A
but they are actually in obj the files are recompiled
all the time.

bye
iavor


--

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


Re: ANNOUNCE: GreenCard 3.00 (alpha release)

2003-06-04 Thread Jens Petersen
20030603()0459 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.

Thanks! I made an rpm package of it with ghc-6.0 built for Red Hat Linux
9:

http://haskell.org/~petersen/rpms/greencard/greencard-3.00-1.src.rpm
http://haskell.org/~petersen/rpms/greencard/greencard-ghc6.0-3.00-1.rhl9.i386.rpm

 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.

Ok, I had to apply the patch below in order to be able to build it and
package it.  I assume the HSHS is just a typo?  The changes to the
ghc-pkg related rules are because file installation and ghc package
installation must be done separately when making a binary package. Let
me know if you need a changelog entry.

Cheers, Jens


--- gc-3.00/lib/Makefile~   2003-06-04 14:45:00.0 +0900
+++ gc-3.00/lib/Makefile2003-06-04 14:45:00.0 +0900
@@ -46,24 +46,28 @@
 
 SRC_HC_OPTS+= -package-name $(PACKAGE)
 
-libHSHSgreencard.$(way_)a : Foreign/GreenCard.$(way_)o Foreign/GreenCard_stub_ffi.o
+libHSgreencard.$(way_)a : Foreign/GreenCard.$(way_)o Foreign/GreenCard_stub_ffi.o
ar clqs $@ $^
 
 clean ::
rm -f package.conf 
-   rm -f Foreign/GreenCard.$(way_)o Foreign/GreenCard_stub_ffi.o 
libHSHSgreencard.$(way_)a
+   rm -f Foreign/GreenCard.$(way_)o Foreign/GreenCard_stub_ffi.o 
libHSgreencard.$(way_)a
 
-install :: package.conf libHSHSgreencard.$(way_)a Foreign/GreenCard.$(way_)hi
+install :: package.conf libHSgreencard.$(way_)a Foreign/GreenCard.$(way_)hi
install -D Foreign/GreenCard.gc $(libdir)/Foreign/GreenCard.gc
install -D Foreign/GreenCard.$(way_)hi $(libdir)/Foreign/GreenCard.$(way_)hi
-   install -D libHSHSgreencard.$(way_)a $(libdir)/libHSHSgreencard.$(way_)a
+   install -D libHSgreencard.$(way_)a $(libdir)/libHSgreencard.$(way_)a
+
+install-pkg :: package.conf
ghc-pkg --update-package --input-file=package.conf
 
-uninstall ::
+uninstall-pkg :: 
ghc-pkg --config-file=$(libdir)/package.conf --remove-package=$(PACKAGE)
+
+uninstall :: 
rm -f $(libdir)/Foreign/GreenCard.gc 
rm -f $(libdir)/Foreign/GreenCard.$(way_)hi
-   rm -f $(libdir)/libHSHSgreencard.$(way_)a
+   rm -f $(libdir)/libHSgreencard.$(way_)a
 
 endif # GHC
 ifeq x$(FOR_SYSTEM) xHUGS


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


RE: ghc --make and missing interface files

2003-06-04 Thread Simon Marlow
 
 Hello all, I have a file BinaryIO.  This used to import a module
 HGetCharHack to work around an annoying problem with ghc5.04 which
 meant that hGetChar was blocking unexpectedly.  However I see that
 this problem has now been fixed in ghc6 (ta very much, Simon) so I
 deleted the files HGetCharHack.*, modified BinaryIO to stop importing
 it, and then tried to compile it using ghc --make.  However the thing
 fell over, as follows:
 
   Skipping ... (lots of files) ...
   Skipping UnionFind
  
   Could not find interface file for `HGetCharHack'
   (use -v to see a list of the files searched for)

Yes, this is a known bug (it's been on my whiteboard for a few months).
We will get around to fixing it at some point.  In the meantime,
deleting the offending .hi file is the easy workaround.

Cheers,
Simon

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


Re: ANNOUNCE: GreenCard 3.00 (alpha release)

2003-06-04 Thread Jens Petersen
20030604()1733 Jens Petersen :
 Thanks! I made an rpm package of it with ghc-6.0 built for Red Hat Linux
 9:
 
 http://haskell.org/~petersen/rpms/greencard/greencard-3.00-1.src.rpm
 http://haskell.org/~petersen/rpms/greencard/greencard-ghc6.0-3.00-1.rhl9.i386.rpm

Sorry, I renamed the packages slightly, but they can still be found in

  http://haskell.org/~petersen/rpms/greencard/

Jens

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