[GHC] #3953: Misleading error message when quasiquoter not in scopennnnnnnnnn

2010-03-31 Thread GHC
#3953: Misleading error message when quasiquoter not in scopenn
-+--
Reporter:  guest |   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Component:  Compiler
 Version:  6.12.1|Keywords:  
  Os:  Unknown/Multiple  |Testcase:  
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
-+--
 t.hs:
 {{{
 {-# LANGUAGE QuasiQuotes #-}
 main = [$notDefinedHere| |]
 }}}

 ghc's output:
 {{{
 t.hs:2:7: Not in scope: `notDefinedHere'

 t.hs:2:7:
 GHC stage restriction: notDefinedHere
   is used in a quasiquote, and must be imported, not defined locally
 Failed, modules loaded: none.
 }}}

 The second message is wrong, since notDefinedHere isn't defined anywhere.

-- 
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


[GHC] #3952: add machdepCCOpts to runPhase_MoveBinary

2010-03-31 Thread GHC
#3952: add machdepCCOpts to runPhase_MoveBinary
-+--
Reporter:  igloo |Owner:  
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  6.14.1  
   Component:  Compiler  |  Version:  6.12.1  
Keywords:|   Difficulty:  
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
 runPhase_MoveBinary should presumably be using machdepCCOpts:
 http://www.haskell.org/pipermail/cvs-ghc/2010-March/053214.html

-- 
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


[GHC] #3951: Unknown symbol error when ghci tries to load package scion

2010-03-31 Thread GHC
#3951: Unknown symbol error when ghci tries to load package scion
+---
Reporter:  greenrd  |   Owner:  
Type:  bug  |  Status:  new 
Priority:  normal   |   Component:  Compiler
 Version:  6.12.1   |Keywords:  
  Os:  Linux|Testcase:  
Architecture:  x86  | Failure:  None/Unknown
+---
 If you add scion to your flags in ~/.cabal/config, and then do the
 following:

 {{{
 git clone git://github.com/greenrd/scion.git
 cd scion
 git checkout devel   # DON'T OMIT THIS LINE!!!
 cabal install
 cd ..
 darcs get --lazy http://code.haskell.org/yi/
 cd yi
 }}}

 and then make the following change to yi.cabal

 {{{
-- requires an unreleased version atm.

  if flag (scion)
 -  build-depends: ghc == 6.10.*
 +  build-depends: ghc >= 6.10.1
build-depends: ghc-syb
build-depends: scion
cpp-options: -DSCION
 }}}

 and then do cabal install, you should get, after some time, when it gets
 around to compiling yi itself:

 {{{
 Loading package multiset-0.2 ... linking ... done.
 Loading package network-bytestring-0.1.2.1 ... linking ... done.
 Loading package uniplate-1.4 ... linking ... done.
 ghc: /home/greenrd/.cabal/lib/scion-0.1.0.3/ghc-6.12.1/HSscion-0.1.0.3.o:
 unknown symbol
 `scionzm0zi1zi0zi3_ScionziTypesziOutline_OutlineDef_con_info'
 Loading package scion-0.1.0.3 ... linking ... ghc: unable to load package
 `scion-0.1.0.3'
 cabal: Error: some packages failed to install:
 yi-0.6.2.2 failed during the building phase. The exception was:
 ExitFailure 1
 }}}

 (I had to make a couple of changes from upstream scion to make scion
 compile together with yi, and those are in my repository.)

 Although, to save time, you probably DON'T need to go to the trouble of
 trying to compile yi - I'd hazard a guess that the bug occurs in the
 compilation of scion, not the compilation of yi.

 I did "cabal clean" in the scion directory and tried again - same result.

-- 
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] #3945: Bugs (with fixes) in withThread and runInUnboundThread

2010-03-31 Thread GHC
#3945: Bugs (with fixes) in withThread and runInUnboundThread
-+--
Reporter:  basvandijk|Owner:  simonmar
Type:  bug   |   Status:  assigned
Priority:  high  |Milestone:  6.12.3  
   Component:  libraries/base|  Version:  6.12.1  
Keywords:|   Difficulty:  
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
Changes (by simonmar):

  * owner:  => simonmar
  * priority:  normal => high
  * status:  new => assigned
  * milestone:  => 6.12.3


-- 
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] #635: Replace use of select() in the I/O manager with epoll/kqueue/etc.

2010-03-31 Thread GHC
#635: Replace use of select() in the I/O manager with epoll/kqueue/etc.
-+--
Reporter:  simonmar  |Owner:  bos   
Type:  task  |   Status:  new   
Priority:  normal|Milestone:  _|_   
   Component:  libraries/base|  Version:  6.4.1 
Keywords:|   Difficulty:  Project (more than a week)
  Os:  Unknown/Multiple  | Testcase:  N/A   
Architecture:  Unknown/Multiple  |  Failure:  Runtime performance bug   
-+--

Comment(by tibbe):

 Replying to [comment:35 kazu-yamamoto]:
 > The error: (Note I upgrade my Mac to Snow Leopard and GHC to 6.12.1)
 >
 {{{
 % make
 ranlib ../dist/build/libHSevent-0.1.a
 ghc -funbox-strict-fields -package bytestring -ignore-package event -fno-
 ignore-asserts -Wall -fno-warn-orphans -fno-warn-missing-signatures
 -i../dist/build -package-name event-0.1  -package network -package
 network-bytestring -package attoparsec -package bytestring-show -package
 mtl -threaded -o dead-conn Args.o EventUtil.o EventSocket.o DeadConn.o
 ../dist/build/libHSevent-0.1.a
 gcc -O2 -o deadconn deadconn.o
 ld: warning: in deadconn.o, file is not of required architecture
 Undefined symbols:
   "_main", referenced from:
   start in crt1.10.6.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make: *** [deadconn] Error 1
 }}}

 I'm not quite sure what this is, looks like a 32 vs 64-bit issue. If you
 don't need deadconn (which creates idle connections useful when
 benchmarking scaling properties) you can build the target you want using
 e.g. `make pong-server`.

-- 
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] #635: Replace use of select() in the I/O manager with epoll/kqueue/etc.

2010-03-31 Thread GHC
#635: Replace use of select() in the I/O manager with epoll/kqueue/etc.
-+--
Reporter:  simonmar  |Owner:  bos   
Type:  task  |   Status:  new   
Priority:  normal|Milestone:  _|_   
   Component:  libraries/base|  Version:  6.4.1 
Keywords:|   Difficulty:  Project (more than a week)
  Os:  Unknown/Multiple  | Testcase:  N/A   
Architecture:  Unknown/Multiple  |  Failure:  Runtime performance bug   
-+--

Comment(by kazu-yamamoto):

 > If you send me an email with the error I can try to reproduce it
 > (I'm also on OS X).

 The error is attached.

 > There are a number of kernel settings that need to be changed to run
 > some of these benchmarks. All of the settings are done automatically
 > for you by the `benchmark_shell.py` script. It can be used like so:

 Thanks!

 > If you want to play with the code using `forkIO` style concurrency
 > (but using `Socket`s instead of `Handle`s) you can you
 > `System.Event.Thread` and `benchmarks/EventSocket.hs`.

 I read it before. But I still want to use Handle for buffering.

 The error: (Note I upgrade my Mac to Snow Leopard and GHC to 6.12.1)

 {{{
 % make
 ranlib ../dist/build/libHSevent-0.1.a
 ghc -funbox-strict-fields -package bytestring -ignore-package event -fno-
 ignore-asserts -Wall -fno-warn-orphans -fno-warn-missing-signatures
 -i../dist/build -package-name event-0.1  -package network -package
 network-bytestring -package attoparsec -package bytestring-show -package
 mtl -threaded -o dead-conn Args.o EventUtil.o EventSocket.o DeadConn.o
 ../dist/build/libHSevent-0.1.a
 gcc -O2 -o deadconn deadconn.o
 ld: warning: in deadconn.o, file is not of required architecture
 Undefined symbols:
   "_main", referenced from:
   start in crt1.10.6.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make: *** [deadconn] Error 1
 }}}

-- 
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] #3768: 6.12.1 Mac OS X installer lacks all HTML documentation

2010-03-31 Thread GHC
#3768: 6.12.1 Mac OS X installer lacks all HTML documentation
+---
  Reporter:  Minimiscience  |  Owner: 
  Type:  bug| Status:  closed 
  Priority:  normal |  Milestone:  6.12.2 
 Component:  Documentation  |Version:  6.12.1 
Resolution:  fixed  |   Keywords: 
Difficulty: | Os:  MacOS X
  Testcase: |   Architecture:  x86
   Failure:  Documentation bug  |  
+---

Comment(by simonmar):

 Added this info to [wiki:Building/MacOSX].

-- 
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] #3948: unsafeCoerce leaks types

2010-03-31 Thread GHC
#3948: unsafeCoerce leaks types
---+
  Reporter:  ksf   |  Owner:
  Type:  bug   | Status:  closed
  Priority:  normal|  Milestone:
 Component:  Template Haskell  |Version:  6.12.1
Resolution:  invalid   |   Keywords:
Difficulty:| Os:  Linux 
  Testcase:|   Architecture:  x86_64 (amd64)
   Failure:  None/Unknown  |  
---+
Changes (by simonmar):

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


Comment:

 At the risk of being glib, this is an unsafe use of `unsafeCoerce`.
 `Int32` is internally represented as an `Int#`, which is 64 bits on your
 platform, but there's a representation invariant that the upper 32 bits
 are guaranteed to be either all zero or all one.  The invariant is
 respected by all the operations on `Int32`, but by using `unsafeCoerce`
 you created an invalid `Int32`.

-- 
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