Opened 18 years ago
Closed 18 years ago
#10965 closed defect (fixed)
Can't build darcs with ghc-6.6
Reported by: | steve@… | Owned by: | gwright@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 1.3.2 |
Keywords: | Cc: | gwright@… | |
Port: |
Description
Firstly - thanks for the great work!
I noticed that the ghc port was finally buildable on my intel mac, so I installed it and then tried to build darcs.
Sadly, the darcs build failed. I understand that darcs is buildable with GHC 6.6, but I guess that darcs 1.0.8 is not. Must we wait for a new darcs release, or can the darcs port build from the ghc-6.6 branch of darcs?
Failure messages follow:
% sudo port install darcs / 13:22 ---> Fetching darcs ---> Verifying checksum(s) for darcs ---> Extracting darcs ---> Applying patches to darcs ---> Configuring darcs ---> Building darcs with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_darcs/work/darcs-1.0.8" && PREFIX=/opt/local make all" returned error 2 Command output: Rebuild dependencies ... test -f \Context.hs || echo unknown | ./stringify Context context > \Context.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c ThisVersion.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Autoconf.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Workaround.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c FastPackedString.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Printer.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsUtils.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Compat.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c AtExit.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c SignalHandler.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsURL.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Lock.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c CheckFileSystem.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Exec.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Curl.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c CommandLine.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c PatchMatchData.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsFlags.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c External.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c ColourPrinter.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c UTF8.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c FileName.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsIO.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c RegChars.lhs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Map.hs ghc -I/opt/local/include -cpp -package QuickCheck -package parsec -package unix -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Lcs.lhs Lcs.lhs:433:8: Not in scope: type constructor or class `HasBounds' make: *** [Lcs.o] Error 1 Error: Status 1 encountered during processing.
Attachments (3)
Change History (10)
comment:1 Changed 18 years ago by steve@…
comment:2 Changed 18 years ago by jon.olsson@…
Try adding --make to ghc switches in the makefile, that'll pick up the library depencies correctly.
Changed 18 years ago by jon.olsson@…
Attachment: | patch-Lcs.lhs added |
---|
Patch 1 needed for GHC 6.6 build
Changed 18 years ago by jon.olsson@…
Attachment: | patch-configure.ac added |
---|
Patch 2 needed with GHC 6.6
Changed 18 years ago by jon.olsson@…
Attachment: | darcs.diff added |
---|
Portfile diff to include the two patches
comment:3 Changed 18 years ago by jon.olsson@…
And this patch is also needed:
--- patch-GNUmakefile.orig 2006-11-02 16:34:14.000000000 +0100 +++ patch-GNUmakefile 2006-11-02 16:34:25.000000000 +0100 @@ -4,7 +4,7 @@ C_OBJS := compat.o fpstring.o zlib_helper.o c_context.o -+GHCFLAGS += -I${PREFIX}/include ++GHCFLAGS += -I${PREFIX}/include -package mtl + ifeq ($(SYS), windows) GHCFLAGS += -iwin32 -Iwin32 -threaded -DOVERRIDE_RENAMEFILE -DWIN32
comment:5 Changed 18 years ago by gwright@…
Owner: | changed from yeled@… to gwright@… |
---|---|
Priority: | Blocker → Important |
Status: | new → assigned |
Should be fixed. I dropped the priority from Blocker -> Important. Blocker means that the problem affects many ports. "Important" should be used for ports that don't build.
Give it a try and if it works for others I'll close the bug.
-Greg
comment:7 Changed 18 years ago by gwright@…
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for giving it a try. I'm closing this bug.
-Greg
Just for fun, I tried compiling darcs-1.0.9rc1 with the macports ghc-6.6. It gets further, but fails at the linking stage: