[GHC] #3859: Problems with toClockTime on NetBSD
GHC
trac at galois.com
Sat Feb 6 15:35:08 EST 2010
#3859: Problems with toClockTime on NetBSD
---------------------------------+------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: Compiler | Version: 6.12.1
Keywords: | Difficulty:
Os: NetBSD | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by kristerw):
I would guess this is with NetBSD-current...
NetBSD changed time_t to become a 64-bit type shortly after NetBSD 5 was
released, and this caused some breakage for ghc. I sent patches for most
of the issues before 6.12 was released, but I know of at least one more
place that need to be updated: ghc think that struct timeval look like
struct timeval {time_t tv_sec; time_t tv_usec;};
while it according to POSIX look like
struct timeval {time_t tv_sec; suseconds_t tv_usec;};
which matter on NetBSD now, as time_t is 64 bits, and suseconds_t is 32
bits.
I just tried some patches for this, but it does not seem to solve all
problems... :(
I'll investigate some more, but will probably not have the time until late
next week...
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3859#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list