#3472: Porting through .hc files broken
---------------------------------+------------------------------------------
    Reporter:  pumpkin           |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:  6.12 branch     
   Component:  Build System      |      Version:  6.12.1 RC1      
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by simonmar):

 Replying to [comment:3 ksf]:
 > Solution 2 to issue 2 (running hsc2hs with the target's headers on the
 host) needs a cross-compiler, at least if the system's bytesizes differ.
 Otherwise, offsetof is going to return borkage, even if given the right
 headers.

 In the past we've avoided using `hsc2hs` in parts of the libraries that
 are required by the bootstrap for exactly this reason.  I think we
 recently regressed in this area since I started using `System.Posix` stuff
 to implement `System.Directory`; my humble apologies.  It was fragile to
 start with though.

 We either have to come up with a solution for using hsc2hs (take the
 intermediate C files to the target and compile/run them?) or convert .hsc
 files to autoconf + CPP (yeuch).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3472#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

Reply via email to