[MacPorts] #16976: ghc build fails

MacPorts noreply at macports.org
Thu Oct 23 19:37:16 PDT 2008


#16976: ghc build fails
-----------------------------------+----------------------------------------
  Reporter:  mokeefe8 at comcast.net  |       Owner:  gwright at macports.org
      Type:  defect                |      Status:  new                 
  Priority:  Normal                |   Milestone:  Port Bugs           
 Component:  ports                 |     Version:  1.6.0               
Resolution:                        |    Keywords:  haskell ghc         
      Port:  ghc                   |  
-----------------------------------+----------------------------------------
Description changed by jmr at macports.org:

Old description:

> sudo port install ghc results in the following error:
>
> ~ $ sudo port install hs-ghc-paths
> --->  Fetching ghc
> --->  Verifying checksum(s) for ghc
> --->  Extracting ghc
> --->  Applying patches to ghc
> --->  Configuring ghc
> --->  Building ghc with target all
> Error: Target org.macports.build returned: shell command "cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3
> && env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make" returned error 2
> Command output:                    --with-hsc2hs=../../utils/hsc2hs
> /hsc2hs-inplace \
>                    --with-ld=/usr/bin/ld \
>                    --haddock-options="--use-contents=../index.html \
>                                    --use-index=../doc-index.html" \
>                       --configure-option='--prefix=/opt/local'
> --configure-option='--
> prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local'
> --configure-option='--
> mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/man/'
> --configure-option='--with-gmp-includes=/opt/local/include'  --configure-
> option='--with-gmp-libraries=/opt/local/lib'  --configure-option='--with-
> readline-includes=/opt/local/include'  --configure-option='--with-
> readline-libraries=/opt/local/lib'  --configure-option='--with-
> ghc=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work
> /ghc-bootstrap/bin/ghc'  --configure-option='CC=/usr/bin/gcc-4.0'
> --configure-option='CFLAGS=-O2 -I/opt/local/include'  --configure-
> option='LDFLAGS=-L/opt/local/lib -L/usr/lib'  --configure-
> option='CPPFLAGS=-I/opt/local/include'  --configure-
> option='CPP=/usr/bin/cpp-4.0' \
>                    --configure-option=--with-cc=gcc ) \
>               && touch stamp/configure.library.build-profiling-
> splitting.cgi || touch cgi/unbuildable
> Configuring cgi-3001.1.6.0...
> if ifBuildable/ifBuildable cgi; then \
>           cd cgi && \
>           cmp -s ../Makefile.local Makefile.local || cp ../Makefile.local
> .; \
>           mv GNUmakefile GNUmakefile.tmp; \
>           setup/Setup makefile -f GNUmakefile; \
>           cmp -s GNUmakefile GNUmakefile.tmp && mv GNUmakefile.tmp
> GNUmakefile; \
>           make -r && \
>           setup/Setup register --inplace; \
>         fi
> mv: rename GNUmakefile to GNUmakefile.tmp: No such file or directory
> Preprocessing library cgi-3001.1.6.0...
> Generating Makefile cgi-3001.1.6.0...
> GNUmakefile:71: dist/build/.depend: No such file or directory
> ../../compiler/stage1/ghc-inplace -M -optdep-f -optdepdist/build/.depend
> -optdep-s -optdepp  -package-name cgi-3001.1.6.0 -hide-all-packages -i
> -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build
> -hidir dist/build -stubdir dist/build -package base-3.0.2.0 -package old-
> time-1.0.0.0 -package old-locale-1.0.0.0 -package containers-0.1.0.2
> -package base-3.0.2.0 -package bytestring-0.9.0.1.1 -package
> network-2.2.0.0 -package parsec-2.1.0.1 -package mtl-1.1.0.1 -package
> xhtml-3000.2.0.0 -O -Wall -XMultiParamTypeClasses -idist/build -H16m -O
> -I/opt/local/include -L/opt/local/lib -O -Rghc-timing -fgenerics
> Network.CGI Network.CGI.Monad Network.CGI.Protocol Network.CGI.Cookie
> Network.CGI.Compat Network.CGI.Multipart Network.CGI.Header
>
> Network/CGI.hs:98:7:
>     Could not find module `Network.URI':
>       Use -v to see a list of the files searched for.
> <<ghc: 51223564 bytes, 8 GCs, 638976/1118208 avg/max bytes residency (2
> samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.10 MUT (0.17 elapsed),
> 0.06 GC (0.08 elapsed) :ghc>>
> make[2]: *** [dist/build/.depend] Error 1
> make[1]: *** [make.library.cgi] Error 2
> make: *** [stage1] Error 2
>
> Error: The following dependencies failed to build: ghc
> Error: Status 1 encountered during processing.

New description:

 sudo port install ghc results in the following error:
 {{{
 ~ $ sudo port install hs-ghc-paths
 --->  Fetching ghc
 --->  Verifying checksum(s) for ghc
 --->  Extracting ghc
 --->  Applying patches to ghc
 --->  Configuring ghc
 --->  Building ghc with target all
 Error: Target org.macports.build returned: shell command "cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3
 && env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make" returned error 2
 Command output:                    --with-hsc2hs=../../utils/hsc2hs
 /hsc2hs-inplace \
                    --with-ld=/usr/bin/ld \
                    --haddock-options="--use-contents=../index.html \
                                    --use-index=../doc-index.html" \
                       --configure-option='--prefix=/opt/local'
 --configure-option='--
 prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local'
 --configure-option='--
 mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/man/'
 --configure-option='--with-gmp-includes=/opt/local/include'  --configure-
 option='--with-gmp-libraries=/opt/local/lib'  --configure-option='--with-
 readline-includes=/opt/local/include'  --configure-option='--with-
 readline-libraries=/opt/local/lib'  --configure-option='--with-
 ghc=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work
 /ghc-bootstrap/bin/ghc'  --configure-option='CC=/usr/bin/gcc-4.0'
 --configure-option='CFLAGS=-O2 -I/opt/local/include'  --configure-
 option='LDFLAGS=-L/opt/local/lib -L/usr/lib'  --configure-
 option='CPPFLAGS=-I/opt/local/include'  --configure-
 option='CPP=/usr/bin/cpp-4.0' \
                    --configure-option=--with-cc=gcc ) \
               && touch stamp/configure.library.build-profiling-
 splitting.cgi || touch cgi/unbuildable
 Configuring cgi-3001.1.6.0...
 if ifBuildable/ifBuildable cgi; then \
           cd cgi && \
           cmp -s ../Makefile.local Makefile.local || cp ../Makefile.local
 .; \
           mv GNUmakefile GNUmakefile.tmp; \
           setup/Setup makefile -f GNUmakefile; \
           cmp -s GNUmakefile GNUmakefile.tmp && mv GNUmakefile.tmp
 GNUmakefile; \
           make -r && \
           setup/Setup register --inplace; \
         fi
 mv: rename GNUmakefile to GNUmakefile.tmp: No such file or directory
 Preprocessing library cgi-3001.1.6.0...
 Generating Makefile cgi-3001.1.6.0...
 GNUmakefile:71: dist/build/.depend: No such file or directory
 ../../compiler/stage1/ghc-inplace -M -optdep-f -optdepdist/build/.depend
 -optdep-s -optdepp  -package-name cgi-3001.1.6.0 -hide-all-packages -i
 -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir
 dist/build -stubdir dist/build -package base-3.0.2.0 -package old-
 time-1.0.0.0 -package old-locale-1.0.0.0 -package containers-0.1.0.2
 -package base-3.0.2.0 -package bytestring-0.9.0.1.1 -package
 network-2.2.0.0 -package parsec-2.1.0.1 -package mtl-1.1.0.1 -package
 xhtml-3000.2.0.0 -O -Wall -XMultiParamTypeClasses -idist/build -H16m -O
 -I/opt/local/include -L/opt/local/lib -O -Rghc-timing -fgenerics
 Network.CGI Network.CGI.Monad Network.CGI.Protocol Network.CGI.Cookie
 Network.CGI.Compat Network.CGI.Multipart Network.CGI.Header

 Network/CGI.hs:98:7:
     Could not find module `Network.URI':
       Use -v to see a list of the files searched for.
 <<ghc: 51223564 bytes, 8 GCs, 638976/1118208 avg/max bytes residency (2
 samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.10 MUT (0.17 elapsed),
 0.06 GC (0.08 elapsed) :ghc>>
 make[2]: *** [dist/build/.depend] Error 1
 make[1]: *** [make.library.cgi] Error 2
 make: *** [stage1] Error 2

 Error: The following dependencies failed to build: ghc
 Error: Status 1 encountered during processing.
 }}}

--

-- 
Ticket URL: <http://trac.macports.org/ticket/16976#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list