[GHC] #4973: building ghc7.0.1.20110217 under x86 solaris fails

GHC cvs-ghc at haskell.org
Tue Mar 29 14:01:54 CEST 2011


#4973: building ghc7.0.1.20110217 under x86 solaris fails
----------------------------------+-----------------------------------------
  Reporter:  maeder               |          Owner:  igloo  
      Type:  bug                  |         Status:  patch  
  Priority:  highest              |      Milestone:  7.2.1  
 Component:  Compiler             |        Version:  7.0.2  
Resolution:                       |       Keywords:         
  Testcase:                       |      Blockedby:         
Difficulty:                       |             Os:  Solaris
  Blocking:                       |   Architecture:  x86    
   Failure:  Building GHC failed  |  
----------------------------------+-----------------------------------------

Comment(by kgardas):

 Hello, I've retested GHC 7.0.3 and GHC HEAD as of 2011-03-25 on both
 Solaris 11 Express and Solaris 10 and found out that I was mistaken
 assuming 7.0.x builds fine on Solaris 11 Express. It does not. The
 attached patch disables shared libs support in GHC 7.0.3 release. On the
 other hand GHC HEAD seems to be compilable with shared libs support on
 both Solaris 11 Express and Solaris 10. On Solaris 11 Express the shared
 libs support is working well, while on Solaris 10 it is not working due to
 linker complaining about conflicting command-line options -dn and -P:
 {{{
 Linking HelloWorld ...
 ld: fatal: option -dn and -P are incompatible
 ld: fatal: Flags processing errors
 collect2: ld returned 1 exit status
 }}}
 This is output of compiling bindisttest HelloWorld with ghc --make
 -dynamic on Solaris 10. The -dn option means that linker is working in
 static mode, i.e. linking static executable. The -P option is documented
 in man ld as:
 {{{
      -P auditlib

          Identifies  an  audit  library,  auditlib.  This   audit
          library  is used to audit the dependencies of the object
          being created at runtime. Dependency auditing  can  also
          be  inherited  from  dependencies that are identified as
          requiring auditing. See the -p option.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4973#comment:56>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list