#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 maeder):
Replying to [comment:7 simonmar]:
> 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)
> }}}
The problem lies in an empty do-loop. `$$($1_$2_DIST_CC_OPTS)` within
`$$(shell ...)` is expanded to nothing.
I've changed SHELL in mk/config.mk to my own shell that also shows the
arguments. The arguments are as follows:
{{{
-c gmake -r --no-print-directory -f ghc.mk phase=0 just-makefiles
-c for i in ; do echo -isystem\"$i\"; done
-c for i in ; do echo \"-L$i\"; done
-c for i in ; do echo \'--cflag=$i\'; done
-c for i in ; do echo \'--lflag=$i\'; done
}}}
Checking bash versus sh shows:
{{{
-bash-3.00$ for i in ; do echo $i ; done
-bash-3.00$ sh
$ for i in ; do echo $i ; done
syntax error: `;' unexpected
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3683#comment:10>
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