[GHC] #1612: GHC_PACKAGE_PATH and $topdir bug

2007-08-12 Thread GHC
#1612: GHC_PACKAGE_PATH and $topdir bug
---+
  Reporter:  eivuokko  |  Owner: 
  Type:  bug   | Status:  new
  Priority:  normal|  Milestone: 
 Component:  Compiler  |Version:  6.6.1  
  Severity:  normal|   Keywords: 
Difficulty:  Unknown   | Os:  Unknown
  Testcase:|   Architecture:  Unknown
---+
In ghc-pkg $topdir is replaced according to path to package that is
 considered global - the last on in GHC_PACKAGE_PATH (if it doesn't contain
 trailing ';')

 Following shows how (head, 1.1.7) Cabal's haddock-command gets broken.

 {{{
 C:\Users\eivuokko>copy con temp.conf
 []
 ^Z
 1 file(s) copied.

 C:\Users\eivuokko>set
 GHC_PACKAGE_PATH=c:\tools\ghc\ghc-6.6.1\package.conf;c:\Us
 ers\eivuokko\temp.conf

 C:\Users\eivuokko>ghc-pkg field base haddock-interfaces
 haddock-interfaces: c:\Users\eivuokko\html\libraries\base\base.haddock

 C:\Users\eivuokko>set GHC_PACKAGE_PATH=

 C:\Users\eivuokko>ghc-pkg field base haddock-interfaces
 haddock-interfaces:
 C:/tools/ghc/ghc-6.6.1\html\libraries\base\base.haddock

 C:\Users\eivuokko>
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1566: Move the throwErrnoPath* functions from unix:System.Posix.Error to base:Foreign.C.Error

2007-08-12 Thread GHC
#1566: Move the throwErrnoPath* functions from unix:System.Posix.Error to
base:Foreign.C.Error
---+
Reporter:  igloo   |Owner: 
Type:  proposal|   Status:  closed 
Priority:  normal  |Milestone:  Not GHC
   Component:  libraries/base  |  Version:  6.6.1  
Severity:  normal  |   Resolution:  fixed  
Keywords:  |   Difficulty:  Unknown
  Os:  Unknown | Testcase: 
Architecture:  Unknown |  
---+
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 Done; no discussion.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1568: Proposal: Move System.Posix.Signals to the unix package

2007-08-12 Thread GHC
#1568: Proposal: Move System.Posix.Signals to the unix package
---+
Reporter:  igloo   |Owner: 
Type:  proposal|   Status:  closed 
Priority:  normal  |Milestone:  Not GHC
   Component:  libraries/base  |  Version:  6.6.1  
Severity:  normal  |   Resolution:  fixed  
Keywords:  |   Difficulty:  Unknown
  Os:  Unknown | Testcase: 
Architecture:  Unknown |  
---+
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 Done; no discussion.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


error in compiling ghc-6.6.1 on 64-bit linux

2007-08-12 Thread an0

Following error occured while compiling ghc-6.6.1 on a 64-bit linux using
Linux (x86_64) binary distribution of ghc-6.6.1:

make -C utils/mkdependC boot
make[1]: Entering directory `/home/wangling/soft/ghc-6.6.1/utils/mkdependC'
rm -f mkdependC
Creating mkdependC...
echo "#! "/usr/bin/perl > mkdependC
Done.
make[1]: Leaving directory `/home/wangling/soft/ghc-6.6.1/utils/mkdependC'

== make boot -r;
in /home/wangling/soft/ghc-6.6.1/includes

Creating ghcautoconf.h...
Done.
Creating ghcplatform.h...
Done.
../utils/mkdependC/mkdependC -f .depend -- -O -I. -I../rts--
mkDerivedConstants.c
gcc -O -I. -I../rts-c mkDerivedConstants.c -o mkDerivedConstants.o
gcc -o mkDerivedConstantsHdr -O -I. -I../rts   mkDerivedConstants.o
./mkDerivedConstantsHdr >DerivedConstants.h
gcc -o mkGHCConstants.o -O -I. -I../rts-c mkDerivedConstants.c
-DGEN_HASKELL
gcc -o mkGHCConstants -O -I. -I../rts   mkGHCConstants.o
./mkGHCConstants >GHCConstants.h

== make boot -r;
in /home/wangling/soft/ghc-6.6.1/compat

../utils/mkdependC/mkdependC -f .depend-I. -Iinclude -I../includes  --
-O -I. -Iinclude -D__GHC_PATCHLEVEL__=1 -I../libraries/base/cbits
-I../libraries/base/include-- cbits/directory.c cbits/rawSystem.c
cbits/unicode.c
/home/wangling/bin/ghc -M -optdep-f -optdep.depend  -osuf o
-optdep--exclude-module=System.Directory.Internals   -H16m -O -I. -Iinclude
-Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp
Compat/Directory.hs Compat/RawSystem.hs Compat/Unicode.hs
Distribution/Compat/FilePath.hs Distribution/Compat/ReadP.hs
Distribution/Compiler.hs Distribution/GetOpt.hs
Distribution/InstalledPackageInfo.hs Distribution/License.hs
Distribution/Package.hs Distribution/ParseUtils.hs Distribution/Version.hs
Language/Haskell/Extension.hs
<>
make all
/home/wangling/bin/ghc -H16m -O -I. -Iinclude -Rghc-timing  -ignore-package
Cabal -I../libraries -fglasgow-exts -no-recomp-c Compat/Directory.hs -o
Compat/Directory.o  -ohi Compat/Directory.hi
cc1: error: unrecognized option `-fwrapv'
<>
make[2]: *** [Compat/Directory.o] Error 1
make[1]: *** [boot] Error 2
make: *** [stage1] Error 1

The same error "cc1: error: unrecognized option `-fwrapv'" also occured when
I used the Linux (86_64) binary distribution of ghc-6.6.1 to compile a
haskell programme with ffi foreign export (that is why I wanted to try to
build a ghc by myself).

some info:
gcc -v
Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --libdir=/usr/lib64 --enable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
Thread model: posix
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
--
Ling Wang
Work at: ICScape(Beijing) Technology Ltd.
Graduate from: Department of Electrical Engineering, Tsinghua University
Email: [EMAIL PROTECTED]
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Visual Haskell will not Install with Visual Studio 2005, Express Edition

2007-08-12 Thread Sean Johnson
Hi Everyone,

Is there some way to install Visual Haskell with VS2005, Express? Perhaps
some workaround or hack?

Thanks for your help,
-- 
Sean Erle Johnson
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


bug report: picoseconds handling in System.Time

2007-08-12 Thread Andrei Paskevich
The diffClockTimes function can generate TimeDiff's with 
a negative value of tdPicosec. When you pass such a TimeDiff 
to addToClockTime, the latter may send negative picoseconds 
to toClockTime, provoking the error "picoseconds out of range".

While we are at it, please, teach normalizeTimeDiff to normalize
tdPicoSeconds, too. This misfeature hangs around for too long :)

Best regards,
Andrei

P.S. I'm not subscribed to the list, so please cc: me if needed.
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


"data" package

2007-08-12 Thread Ian Johnston
I keep getting this error:

ghc-6.6.1: unknown package: data

I have searched all over for this "data" package, but I have not found
anything.  Do you know how I can fix this problem?

Thanks in advance, for any reply,

- Ian J.

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


crash in ghc.exe while exiting ghci.exe

2007-08-12 Thread Gopi Krishna Madabhushi
Here's the crash, probably accessing deleted critical section? Please let me 
know how can I send more information.



Thanks,
Gopi


0:002> k100
ChildEBP RetAddr
01bafed8 770fb071 ntdll!RtlpWaitOnCriticalSection+0xc5
*** ERROR: Module load completed but symbols could not be loaded for ghc.exe
01baff00 00cee614 ntdll!RtlEnterCriticalSection+0x152
WARNING: Stack unwind information not available. Following frames may be wrong.
01baffa0 76f23833 ghc+0x8ee614
01baffac 770fa9bd kernel32!BaseThreadInitThunk+0xe
01baffec  ntdll!_RtlUserThreadStart+0x23
0:002> r
eax= ebx=fffc ecx= edx=0004 esi=00d96160 edi=00d96164
eip=770fb15f esp=01bafe88 ebp=01bafed8 iopl=0 nv up ei pl nz ac po cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= efl=00010213
ntdll!RtlpWaitOnCriticalSection+0xc5:
770fb15f 83401401add dword ptr [eax+14h],1 ds:0023:0014=





ghc-mini.dmp
Description: ghc-mini.dmp
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: "data" package

2007-08-12 Thread Stefan O'Rear
On Thu, Aug 02, 2007 at 11:10:47AM -0400, Ian Johnston wrote:
> I keep getting this error:
> 
> ghc-6.6.1: unknown package: data
> 
> I have searched all over for this "data" package, but I have not found
> anything.  Do you know how I can fix this problem?
> 
> Thanks in advance, for any reply,

Not offhand, but it sounds like it would be easy with a little more
context; what command is failing?

Stefan


signature.asc
Description: Digital signature
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: error in compiling ghc-6.6.1 on 64-bit linux

2007-08-12 Thread Stefan O'Rear
On Wed, Jul 25, 2007 at 02:50:02PM +0800, an0 wrote:
> The same error "cc1: error: unrecognized option `-fwrapv'" also occured 
> when
> I used the Linux (86_64) binary distribution of ghc-6.6.1 to compile a
> haskell programme with ffi foreign export (that is why I wanted to try to
> build a ghc by myself).
>
> some info:
> gcc -v
> Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
> --disable-checking --libdir=/usr/lib64 --enable-libgcj 
> --with-slibdir=/lib64
> --with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
> Thread model: posix
> gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)

This seems to be a case of GHC bug #1569:

http://hackage.haskell.org/trac/ghc/ticket/1569

Does the poster's fix (upgrading gcc) work for you?

Stefan


signature.asc
Description: Digital signature
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: "data" package

2007-08-12 Thread Ian Lynagh

Hi Ian,

On Thu, Aug 02, 2007 at 11:10:47AM -0400, Ian Johnston wrote:
> 
> ghc-6.6.1: unknown package: data
> 
> I have searched all over for this "data" package, but I have not found
> anything.  Do you know how I can fix this problem?

It sounds like you're trying to compile something very old that uses the
data package from hslibs, which is no more. If no later version is
available then you'll probably need to update the code to use modern
libraries instead.


Thanks
Ian

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1569: error in compiling ghc-6.6.1 on 64-bit linux

2007-08-12 Thread GHC
#1569: error in compiling ghc-6.6.1 on 64-bit linux
--+-
Reporter:  guest  |Owner:  
simonmar
Type:  bug|   Status:  new  
   
Priority:  high   |Milestone:  6.8  
   
   Component:  Compiler   |  Version:  
6.6.1   
Severity:  blocker|   Resolution:   
   
Keywords:  cc1: error: unrecognized option `-fwrapv'  |   Difficulty:  
Unknown 
  Os:  Linux  | Testcase:   
   
Architecture:  x86_64 (amd64) |  
--+-
Changes (by igloo):

  * milestone:  => 6.8
  * priority:  highest => high
  * owner:  => simonmar

Comment:

 Simon is looking at making the use of `-fno-top-level-reorder`/`-funit-
 at-a-time` more dynamic; `-fwrapv` should be given the same treatment.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: crash in ghc.exe while exiting ghci.exe

2007-08-12 Thread Ian Lynagh

Hi Gopi,

On Thu, Aug 09, 2007 at 05:16:23PM -0700, Gopi Krishna Madabhushi wrote:
> Here's the crash, probably accessing deleted critical section? Please let me 
> know how can I send more information.

Can you please let us know what version of GHC you have, what version of
Windows and how to reproduce the crash?


Thanks
Ian

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: Visual Haskell will not Install with Visual Studio 2005, Express Edition

2007-08-12 Thread Esa Ilari Vuokko
Hi,

On 7/27/07, Sean Johnson <[EMAIL PROTECTED]> wrote:
> Is there some way to install Visual Haskell with VS2005, Express? Perhaps
> some workaround or hack?

It's probably impossible.  Feature matrix for Visual Studio products says
"Use 3rd party controls and content. No Macros, Add-ins or Packages". [1]

Best regards,
Esa

[1] http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: Visual Haskell will not Install with Visual Studio 2005, Express Edition

2007-08-12 Thread Seth Kurtzberg
It won't install with the full edition either.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Esa Ilari
Vuokko
Sent: Sunday, August 12, 2007 6:22 PM
To: Sean Johnson
Cc: glasgow-haskell-bugs@haskell.org; [EMAIL PROTECTED]
Subject: Re: Visual Haskell will not Install with Visual Studio 2005,
Express Edition

Hi,

On 7/27/07, Sean Johnson <[EMAIL PROTECTED]> wrote:
> Is there some way to install Visual Haskell with VS2005, Express? Perhaps
> some workaround or hack?

It's probably impossible.  Feature matrix for Visual Studio products says
"Use 3rd party controls and content. No Macros, Add-ins or Packages". [1]

Best regards,
Esa

[1] http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: Visual Haskell will not Install with Visual Studio 2005, Express Edition

2007-08-12 Thread Duncan Coutts
On Thu, 2007-07-26 at 23:51 -0700, Sean Johnson wrote:
> Hi Everyone,
> 
> Is there some way to install Visual Haskell with VS2005, Express?
> Perhaps some workaround or hack?

I believe that free version of VS is specifically designed not to allow
any plugins, you have to pay for the the full version for that sadly.

As a free alternative, emacs and eclipse have Haskell modes and many
other editors have Haskell syntax highlighting.

Duncan

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: Visual Haskell will not Install with Visual Studio 2005, Express Edition

2007-08-12 Thread Seth Kurtzberg
I was not aware of the Eclipse support, so thanks for that information.

However, Visual Haskell will not install on the full version of Visual
Studio 2005 either.

To make sure this was not an issue specific to my installation, I completely
wiped a disk, installed Windows, installed Visual Studio 2005, and then
attempted to install Visual Haskell.  A fatal error occurs near the end of
the install.

I don't have the error text in front of me, but I'll send an email tomorrow
when I'll have access to it.


Seth Kurtzberg
Software Engineer
Specializing in Security, Reliability, and the Hardware/Software Interface



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Duncan
Coutts
Sent: Sunday, August 12, 2007 6:34 PM
To: Sean Johnson
Cc: glasgow-haskell-bugs@haskell.org; [EMAIL PROTECTED]
Subject: Re: Visual Haskell will not Install with Visual Studio 2005,
Express Edition

On Thu, 2007-07-26 at 23:51 -0700, Sean Johnson wrote:
> Hi Everyone,
> 
> Is there some way to install Visual Haskell with VS2005, Express?
> Perhaps some workaround or hack?

I believe that free version of VS is specifically designed not to allow
any plugins, you have to pay for the the full version for that sadly.

As a free alternative, emacs and eclipse have Haskell modes and many
other editors have Haskell syntax highlighting.

Duncan

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


___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs