[GHC] #8764: Usage of `sed' in GHC build system (Solaris build failure).

GHC ghc-devs at haskell.org
Mon Feb 17 09:32:55 UTC 2014


#8764: Usage of `sed' in GHC build system (Solaris build failure).
----------------------------------------+-----------------------------
        Reporter:  kgardas              |            Owner:
            Type:  bug                  |           Status:  patch
        Priority:  normal               |        Milestone:  7.8.1
       Component:  Build System         |          Version:  7.8.1-rc1
      Resolution:                       |         Keywords:
Operating System:  Solaris              |     Architecture:  x86
 Type of failure:  Building GHC failed  |       Difficulty:  Unknown
       Test Case:                       |       Blocked By:
        Blocking:                       |  Related Tickets:
----------------------------------------+-----------------------------

Comment (by maeder):

 Did you test with a non-GNU sed under Solaris? It worked for me under
 linux. Under Mac OSX I got a (possibly unrelated) failure:

 {{{
  "inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O
 -package-name base-4.7.0.0 -hide-all-packages
  -i -ilibraries/base/. -ilibraries/base/dist-install/build
 -ilibraries/base/dist-install/build/autogen -Ilibraries/base/
 dist-install/build -Ilibraries/base/dist-install/build/autogen
 -Ilibraries/base/include   -optP-DOPTIMISE_INTEGER_GCD_LC
 M -optP-include -optPlibraries/base/dist-
 install/build/autogen/cabal_macros.h -package ghc-prim-0.3.1.0 -package
 integer
 -gmp-0.5.1.0 -package rts-1.0 -package-name base -XHaskell2010 -O2  -no-
 user-package-db -rtsopts      -odir libraries/ba
 se/dist-install/build -hidir libraries/base/dist-install/build -stubdir
 libraries/base/dist-install/build -split-objs -d
 ynamic-too -c libraries/base/./Control/Applicative.hs -o libraries/base
 /dist-install/build/Control/Applicative.o -dyno l
 ibraries/base/dist-install/build/Control/Applicative.dyn_o
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 7.8.20140130 for x86_64-apple-darwin):
         tcIfaceGlobal (local): not found:
     base:Control.Applicative.$fApplicativeWrappedMonad{v ri}
     [(0c7, Identifier ‛base:Control.Applicative.<*>{v 0c7}’),
 }}}

 and under Solaris I got:

 {{{
  gmake[4]: Entering directory
 `/local/home/maeder/haskell/ghc-7.8.20140130-src/libraries/integer-
 gmp/gmp/gmpbuild/mpn'
 /bin/sh ../libtool --tag=CC   --mode=compile /opt/csw/bin/gcc -std=gnu99
 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.
 . -DOPERATION_`echo fib_table | sed 's/_$//'`    -m32 -O2 -pedantic
 -fomit-frame-pointer -mtune=i386 -march=i386 -c -o f
 ib_table.lo fib_table.c
 ../libtool: bad substitution
 }}}

 I suspect that gmp can not be compiled without GNU sed.

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


More information about the ghc-tickets mailing list