Re: [GHC] #1750: ghc-pkg stack overflow when mutually dependent packages installed

2008-01-24 Thread GHC
#1750: ghc-pkg stack overflow when mutually dependent packages installed
--+-
 Reporter:  greenrd   |  Owner:  igloo  
 Type:  merge | Status:  new
 Priority:  normal|  Milestone:  6.8.3  
Component:  Compiler  |Version:  6.7
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Easy (1 hr)
 Testcase:|   Architecture:  Multiple   
   Os:  Multiple  |  
--+-
Changes (by simonmar):

  * owner:  simonmar = igloo
  * type:  bug = merge

Comment:

 Fixed, to merge:

 {{{
 Wed Jan 23 16:06:35 GMT 2008  Simon Marlow [EMAIL PROTECTED]
   * FIX #1750: throw out mutually recursive groups of packages

 Wed Jan 23 16:07:03 GMT 2008  Simon Marlow [EMAIL PROTECTED]
   * FIX #1750: in isBrokenPackage, don't loop if the deps are recursive

 Wed Jan 23 16:31:45 GMT 2008  Simon Marlow [EMAIL PROTECTED]
   * Show CmdLineError exceptions as command line: ...
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1750#comment:4
GHC http://www.haskell.org/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] #427: Random.StdGen slowness

2008-01-24 Thread GHC
#427: Random.StdGen slowness
--+-
 Reporter:  remit |  Owner: 
 Type:  bug   | Status:  new
 Priority:  low   |  Milestone:  _|_
Component:  libraries/random  |Version:  6.4.1  
 Severity:  normal| Resolution:  None   
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Changes (by simonmar):

  * status:  assigned = new
  * owner:  nobody =
  * component:  libraries/base = libraries/random

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/427#comment:5
GHC http://www.haskell.org/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] #482: 'Bug' when installing GHC 6.4.1

2008-01-24 Thread GHC
#482: 'Bug' when installing GHC 6.4.1
--+-
 Reporter:  nobody|  Owner:  wolfgang
 Type:  bug   | Status:  closed  
 Priority:  normal|  Milestone:  _|_ 
Component:  Build System  |Version:  6.4.1   
 Severity:  normal| Resolution:  wontfix 
 Keywords:| Difficulty:  Unknown 
 Testcase:  N/A   |   Architecture:  powerpc 
   Os:  MacOS X   |  
--+-
Changes (by simonmar):

  * status:  assigned = closed
  * resolution:  None = wontfix

Comment:

 Closing, as this appears to be not our bug.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/482#comment:6
GHC http://www.haskell.org/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] #552: GHCi :m doesn't restore default decl

2008-01-24 Thread GHC
#552: GHCi  :m  doesn't restore default decl
-+--
 Reporter:  simonpj  |  Owner:  nobody  
 Type:  bug  | Status:  assigned
 Priority:  lowest   |  Milestone:  _|_ 
Component:  GHCi |Version:  5.00
 Severity:  normal   | Resolution:  None
 Keywords:   | Difficulty:  Unknown 
 Testcase:  ghci016  |   Architecture:  Unknown 
   Os:  Unknown  |  
-+--
Changes (by simonmar):

  * component:  Driver = GHCi

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/552#comment:3
GHC http://www.haskell.org/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] #631: GHCi doesn't work unregisterised

2008-01-24 Thread GHC
#631: GHCi doesn't work unregisterised
-+--
 Reporter:  [EMAIL PROTECTED]  |  Owner:  simonmar  
 Type:  bug  | Status:  new   
 Priority:  normal   |  Milestone:  6.8 branch
Component:  GHCi |Version:  6.4.1 
 Severity:  minor| Resolution:
 Keywords:   | Difficulty:  Unknown   
 Testcase:   |   Architecture:  Multiple  
   Os:  Multiple |  
-+--
Changes (by simonmar):

  * owner:  igloo = simonmar

Comment:

 I'm taking this: the remaining issue is only that GHCi does not support
 FFI when compiled unregisterised, which will be fixed by #793.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/631#comment:14
GHC http://www.haskell.org/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] #1936: When lazy IO blocks, it blocks the whole runtime

2008-01-24 Thread GHC
#1936: When lazy IO blocks, it blocks the whole runtime
--+-
 Reporter:  guest |  Owner:  igloo   
 Type:  merge | Status:  new 
 Priority:  normal|  Milestone:  6.8.3   
Component:  None  |Version:  6.8.1   
 Severity:  normal| Resolution:  
 Keywords:  lazy IO getContents blocking  | Difficulty:  Unknown 
 Testcase:|   Architecture:  Multiple
   Os:  Linux |  
--+-
Changes (by simonmar):

  * owner:  simonmar = igloo
  * type:  bug = merge

Comment:

 Fixed, to merge:

 {{{
 Thu Jan 24 01:22:03 PST 2008  Simon Marlow [EMAIL PROTECTED]
   * FIX #1936: hGetBufNonBlocking was blocking on stdin/stdout/stderr
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1936#comment:9
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by simonmar):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Lennart - I was just doing some bug gardening, and thought I'd try to
 knock this one off.  The files that I'm aware of that contain your code
 are:

  * [http://darcs.haskell.org/packages/base/GHC/Float.lhs]
  * [http://darcs.haskell.org/ghc/rts/StgPrimFloat.c]

 do you know of any others?  Perhaps some of the `USE_REPORT_PRELUDE` stuff
 in `Data.List` was yours?

 Basically there was a lot of cross-pollination between hbc and ghc in the
 early days (or perhaps it was just one way :-).  Most of the actual cut-
 and-pasting was done I think by Will Partain, he might be the only person
 who remembers what happened...

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:3
GHC http://www.haskell.org/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] #1368: Use filepath in GHC

2008-01-24 Thread GHC
#1368: Use filepath in GHC
--+-
 Reporter:  simonmar  |  Owner:  igloo  
 Type:  task  | Status:  closed 
 Priority:  normal|  Milestone:  6.10 branch
Component:  Compiler  |Version:  6.7
 Severity:  normal| Resolution:  fixed  
 Keywords:| Difficulty:  Easy (1 hr)
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Changes (by igloo):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 Now done in the HEAD.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1368#comment:2
GHC http://www.haskell.org/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] #911: Better information about the location of exceptions

2008-01-24 Thread GHC
#911: Better information about the location of exceptions
-+--
 Reporter:  simonmar |  Owner: 
 Type:  feature request  | Status:  closed 
 Priority:  normal   |  Milestone:  _|_
Component:  Runtime System   |Version:  6.4.2  
 Severity:  normal   | Resolution:  fixed  
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by simonmar):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 The User's Guide has a section on Debugging Exceptions.

 I also improved the entry in the FAQ about head [] to point to the
 relevant part of the docs.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/911#comment:3
GHC http://www.haskell.org/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] #1205: ghci reports functions not in scope after loading a .hs, if there is a .o present

2008-01-24 Thread GHC
#1205: ghci reports functions not in scope after loading a .hs, if there is a .o
present
-+--
 Reporter:  guest|  Owner: 
 Type:  feature request  | Status:  new
 Priority:  high |  Milestone:  6.10 branch
Component:  GHCi |Version:  6.6
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by simonmar):

  * priority:  normal = high
  * milestone:  _|_ = 6.10 branch

Comment:

 Bumping this as it is an oft-reported source of confusion.  We'll do
 something for 6.10.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1205#comment:6
GHC http://www.haskell.org/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] #1409: Allow recursively dependent modules transparently (without .hs-boot or anything)

2008-01-24 Thread GHC
#1409: Allow recursively dependent modules transparently (without .hs-boot or
anything)
-+--
 Reporter:  Isaac Dupree |  Owner: 
 Type:  feature request  | Status:  new
 Priority:  normal   |  Milestone:  _|_
Component:  Compiler |Version:  6.6.1  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by simonmar):

  * milestone:  6.10 branch = _|_

Comment:

 We don't have any plans to do this, so remove it from the 6.10 milestone.
 Perhaps it could be done as part of some kind of support for module
 signatures?

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1409#comment:3
GHC http://www.haskell.org/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] #427: Random.StdGen slowness

2008-01-24 Thread GHC
#427: Random.StdGen slowness
--+-
 Reporter:  remit |  Owner: 
 Type:  bug   | Status:  new
 Priority:  low   |  Milestone:  _|_
Component:  libraries/random  |Version:  6.4.1  
 Severity:  normal| Resolution:  None   
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Changes (by dons):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 The mersenne twister C lib is also some 60x faster. There's a binding to
 it here:

 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mersenne-
 random-0.1

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/427#comment:6
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by tim):

 I think that as a general rule, it would be a good idea to be more careful
 about copyright assignment. This is a problem that affects lots and lots
 of open-source projects. The usual model is that when somebody commits a
 patch, they are assigning copyright to the project as a whole (whatever
 that might mean), but legally, this is questionable (at least from the
 perspective of US law, which is the only legal system I'm really familiar
 with.) I don't know what the right solution to this is, nor am I
 volunteering to be the one who tracks down all former contributors and
 makes sure they consent to assign copyright, I'm just pointing out that
 it's worth being careful about, especially as GHC becomes more widely
 used.

 -Tim

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:4
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by Isaac Dupree):

 no, that's only the usual model for FSF and proprietary GPL'd software.
 Most open-source software doesn't require copyright assignment, they just
 implicitly (though stated somewhere) require releasing contributions under
 the same license.  (This is trivial for licenses like GPL that don't allow
 releasing changes in any other way.)  Also the BSD-style license that GHC
 uses is pretty much liberal enough for everyone, GPL and proprietary
 people, so there probably will never be a need/desire to track down all
 contributors.

 It's still good bookkeeping to list the actual copyright owners, and
 possibly useful if we ever want to sue someone for violating the terms of
 the BSD license (unlikely though that seems)

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:5
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by tim):

 At least under US law, however, the original author does retain copyright
 (as Lennart said in the original bug report) *unless* they explicitly
 enter into a contract that says that they give up copyright. The question
 is whether the act of committing (or submitting) a patch constitutes a
 contractual agreement to give up copyright (licensing one's work under the
 BSD license is a form of giving up copyright, as the BSD license, broad as
 it is, involves terms that are different than the terms that would apply
 if somebody retained all rights.)

 You say that the BSD license is pretty much liberal enough for everyone,
 but I'm not that confident. I'm sure all GHC contributors are nice people
 who would never sue over their code being redistributed, but with the
 number of people on the contributors list, maybe it gets to be a risk to
 the project to assume that everyone is nice and the license is liberal
 enough.

 Disclaimer: I am not a lawyer, nor do I play one on TV.

 -Tim

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:6
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by Isaac Dupree):

 okay, there's a difference between assigning copyright to someone, and
 releasing something under a license less restrictive than the (U.S.)
 default.

 If the code is actually legally all BSD-licensed (no matter who owns the
 copyright; licenses are irrevocable by default), all users have to do is
 follow those simple terms, and they can't be sued. (well, not
 successfully, anyway.  But it's possible to sue anyone for anything or
 nothing at all in an attempt to cause financial harm.)  The risk is that
 some contributor didn't legally actually agree to using the BSD license
 (which is a less drastic step than handing over copyright to someone else;
 it doesn't require copyright transfer papers).  Does anyone know of any
 example in an open-source project where this risk actually happened /
 caused trouble?

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:7
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by tim):

 Isaac wrote: The risk is that some contributor didn't legally actually
 agree to using the BSD license -- exactly. Sorry I wasn't so clear
 before. What's ambiguous, legally, is just what it means for somebody to
 legally agree to using the BSD license.

 I don't know of any cases where this actually happened and caused legal
 problems for a project, but maybe someone else does. The point is, though,
 that in the absence of precedent (and AFAIK there is no case law about
 this), it *could* happen.

 -Tim

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:8
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by claus):

 the ticket is about copyright/source attribution, the discussion is
 drifting towards licensing. i assumed it was clear that the ghc code base
 was bsd-style licensed (as in: enjoy, but please don't bother us with
 legalese;-). since bsd isn't viral, it would be nice if there was a clear
 point of entry for newcomers stating that all contributors agree to ghc's
 default license (with the few documented exceptions).

 to see that it isn't about being nice, refer to the squeak relicensing
 experience - after over a year, they still haven't identified, let alone
 tracked down all contributors (some may have left this earth, others have
 just left the social and online circles in which they were known):

 http://www.squeak.org/SqueakLicense/

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:9
GHC http://www.haskell.org/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] #740: Copyright information is wrong in some GHC source files

2008-01-24 Thread GHC
#740: Copyright information is wrong in some GHC source files
-+--
 Reporter:  guest|  Owner: 
 Type:  bug  | Status:  new
 Priority:  lowest   |  Milestone:  _|_
Component:  Prelude  |Version:  6.4.1  
 Severity:  trivial  | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  N/A  |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by tim):

 Claus: I think it's hard to separate licensing from copyright attribution.
 I don't want to cause Yet Another Licensing Flamewar, but I think it ought
 to be taken more seriously than just oh, we know that nobody is going to
 want to bother us about legal issues, since everyone's nice. Which you
 seem to agree on as well.

 I agree that there should be a clear point of entry. As a (minor)
 contributor, I was never asked to agree to the license (although I
 certainly do agree to it).

 -Tim

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/740#comment:10
GHC http://www.haskell.org/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] #2063: Breackage on OpenBSD due to mmap remap

2008-01-24 Thread GHC
#2063: Breackage on OpenBSD due to mmap remap
-+--
Reporter:  dons  |   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Component:  Compiler
 Version:  6.8.2 |Severity:  normal  
Keywords:  OpenBSD   |Testcase:  
Architecture:  Multiple  |  Os:  OpenBSD 
-+--
 GHC head since the 6.8 split back in October, is broken on OpenBSD, due to
 changes in mmap use

 {{{
 Thu Oct 18 05:52:20 PDT 2007  Simon Marlow simonmar at microsoft.com

   * add PIC relocations for x86_64, and use a simpler hack in place of
 x86_64_high_symbol()

   This is Wolfgang Thaller's patch sent to cvs-ghc recently, with extra
   commentary by me.  It turns out that this patch is not just a cleanup,
   it is also necessary for GHCi to work on x86_64 with shared libraries,
   because previously lookupSymbol() was creating jump-table entries for
   all symbols looked up that resolved outside 2Gb, whereas Wolfgang's
   version only generates jump-table entries for 32-bit symbol references
   in object code that we load.
 }}}

 It appears to still be broken:

 {{{
 ../compiler/ghc-inplace -optc-O -optc-L/usr/local/lib
 -optc-I/usr/local/include -optc-Wall -optc-W -optc-Wstrict-prototypes
 -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-
 Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
 -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I../gmp/gmpbuild
 -optc-fno-strict-aliasing -H128m -O2 -L/usr/local/lib -I/usr/local/include
 -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name
 rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -optc-fno-stack-
 protector -dcmm-lint   -optc-O0  -H128m -O2 -L/usr/local/lib
 -I/usr/local/include -optc-O2 -I../includes -I. -Iparallel -Ism
 -DCOMPILING_RTS -package-name rts -static -I../gmp/gmpbuild -I. -#include
 HCIncludes.h -optc-fno-stack-protector -dcmm-lint  -c Main.c -o Main.o

 Linker.c:1599:10:
  #error ocAllocateSymbolExtras doesnt want USE_MMAP to be defined
 Linker.c: In function `ocAllocateSymbolExtras':

 Linker.c:1623:0:
  warning: implicit declaration of function `mremap'

 Linker.c:1623:0:
  error: `MREMAP_MAYMOVE' undeclared (first use in this function)

 Linker.c:1623:0:
  error: (Each undeclared identifier is reported only once

 Linker.c:1623:0:  error: for each function it appears in.)
 }}}

 originally reported on the mailing list,
 http://thread.gmane.org/gmane.comp.lang.haskell.cvs.ghc/24330

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