#1291: Binary Solaris build fails on Solaris 9
--------------------------+-------------------------------------------------
 Reporter:  guest         |          Owner:         
     Type:  bug           |         Status:  new    
 Priority:  normal        |      Milestone:  _|_    
Component:  Build System  |        Version:  6.6.1  
 Severity:  normal        |     Resolution:         
 Keywords:                |     Difficulty:  Unknown
 Testcase:                |   Architecture:  sparc  
       Os:  Solaris       |  
--------------------------+-------------------------------------------------
Comment (by guest):

 The fundamental problem is that the GHC binary package was built on a
 Solaris 9 release with the C99 patches installed.  These patches are not
 publicly available, and many Solaris 9 systems don't have them.

 There is no clean fix for this.  A very ugly solution is:
 - cd /usr/lib; ln -s libm.so.1 libm.so.2
 - LD_NOVERSION=1 export LD_NOVERSION
 - create a file with stubs for the C99 (float) functions (e.g. sinf())
 which invoke the (double) versions, and "ar r" this to libHSbase.a;
 otherwise programs compiled with the binary GHC will fail to link
 - alter the GHC build sequence to add this object to the *new*
 libHSbase.a, because GHC assumes the existence of the C99 functions
 instead of testing and substituting the (double) versions

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1291#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to