#3683: could not build ghc-6.12.0.20091121 under solaris
----------------------------------+-----------------------------------------
  Reporter:  maeder               |          Owner:                  
      Type:  bug                  |         Status:  new             
  Priority:  normal               |      Milestone:                  
 Component:  Build System         |        Version:  6.12.1 RC1      
Resolution:                       |       Keywords:                  
Difficulty:                       |             Os:  Solaris         
  Testcase:                       |   Architecture:  Unknown/Multiple
   Failure:  Building GHC failed  |  
----------------------------------+-----------------------------------------
Comment (by simonmar):

 I don't think it's possible to "build stage 1 without CPP support", the
 problem is more likely to be that the `-XCPP` option just got lost
 somewhere.

 My guess is that this has something to do with the `$$(shell ...)`
 commands in `rules/distdir-way-opts.mk`.  You could try replacing, e.g.

 {{{
 $1_$2_$3_HSC2HS_CC_OPTS:=$$(shell for i in $$($1_$2_DIST_CC_OPTS); do echo
 \'--cflag=$$$$i\'; done)
 }}}

 with

 {{{
 $1_$2_$3_HSC2HS_CC_OPTS:=$$($1_$2_DIST_CC_OPTS)
 }}}

 and see if that helps (similarly for the other occurrences of `$$(shell
 ...)` in that file).  If that is indeed the problem, then we need to find
 another fix.  I'm guessing that Solaris `/bin/sh` has different quoting
 semantics from Bash.

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