Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16976 closed defect (fixed)

ghc build fails

Reported by: mokeefe8@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: haskell ghc Cc:
Port: ghc

Description (last modified by jmroot (Joshua Root))

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.

Change History (6)

comment:1 Changed 16 years ago by blb@…

Owner: changed from macports-tickets@… to gwright@…

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)

comment:3 Changed 16 years ago by gwright@…

Status: newassigned

Does this still happen with the new 6.10.1 portfile?

comment:4 in reply to:  3 Changed 16 years ago by mokeefe8@…

Replying to gwright@…:

Does this still happen with the new 6.10.1 portfile?

Builds like a charm! I tested ghci and my Haskell source files still load. Thanks!

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.