Skip to content

Error compiling darcs on Mac OS X

The only reason I'm using ghc is to compile darcs on Mac OS X 10.4.6 build 8I127, so I'm not really sure about anything that's happening here. I've attached the output of the console after compilation failed using Darwinports. Hope it helps.

charles@aluminum ~ $ sudo port -v upgrade darcs Password: ---> Configuring darcs checking for darcs... darcs checking the release state... release checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking for ghc... ghc checking where GHC keeps its libraries... /opt/local/lib/ghc-6.4.2 checking GHC.Handle.openFd... NOT old API checking GHC.Handle.openFd new API... okay checking for module System.Posix.Signals(installHandler, Handler(..), Signal,

sigINT, sigHUP, sigABRT, sigALRM, sigTERM, sigPIPE,)... yes

checking for module Text.Regex( mkRegex, matchRegex, Regex )... yes checking for module Debug.QuickCheck( quickCheck )... in package QuickCheck checking for module Control.Monad.Error... in package util checking for module Control.Monad.Error... yes checking for module Text.ParserCombinators.Parsec... in package parsec checking getCurrentDirectory... uses / checking for module System.Posix.Files( createLink )... yes checking createDirectoryIfMissing... has createDirectoryIfMissing checking renameFile... okay checking for module System.Posix.Files( fileMode, getFileStatus, setFileMode )... yes checking for module System.Posix.Files( fileMode, getFileStatus, setFileMode )... yes checking whether to optimize... yes checking whether to profile... no checking whether to use mmap... yes checking whether to do PackedString debugging... no checking whether to use wxhaskell... no checking whether to build docs... yes checking for latex... no configure: WARNING: Cannot find latex in your path! checking for dvips... no configure: WARNING: Cannot find dvips in your path! checking for latex2html... no configure: WARNING: Cannot find latex2html in your path! checking for htlatex... no configure: WARNING: Cannot find htlatex in your path either! checking for hevea... no configure: WARNING: Cannot find hevea in your path either! checking for sendmail... /usr/sbin/sendmail checking for MAPISendMail in -lmapi32... no checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for libcurl... 7.15.3 checking for curl_global_init in -lcurl... yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking term.h usability... yes checking term.h presence... yes checking for term.h... yes checking for library containing tgetent... -lcurses checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzopen... yes checking whether to enable Git support... no checking for gdiff... no checking for gnudiff... no checking for diff... diff checking for makensis.exe... no checking whether byte ordering is bigendian... yes configure: creating ./config.status config.status: creating autoconf.mk config.status: creating gitlib.h config.status: creating Autoconf.lhs config.status: creating ThisVersion.lhs config.status: creating cgi/darcs.cgi config.status: creating cgi/README config.status: creating cgi/cgi.conf config.status: executing config.command commands

The build is configured as follows:

bindir = ${exec_prefix}/bin

sbindir = ${exec_prefix}/sbin

mandir = /opt/local/share/man

datadir = ${prefix}/share

sysconfdir = ${prefix}/etc

libexecdir = ${exec_prefix}/libexec

Build Manual = no

Git support = no

If you want to adjust any of these values, edit autoconf.mk and Autoconf.lhs -- or run configure with appropriate settings.

---> Building darcs with target all rm -f Main.hi Main.o ghc -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lcurl -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lssl -optl-lcrypto -optl-L/opt/local/lib -optl-lz -optl-lcurses -o stringify stringify.hs /usr/bin/ld: warning prebinding disabled because dependent library: /opt/local/lib/libcurl.3.dylib is not prebound test -f \Context.hs || echo unknown | ./stringify Context context > \Context.hs Rebuild dependencies ... test -f \Context.hs || echo unknown | ./stringify Context context > \Context.hs ghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsUtils.lhs ghc-6.4.2: internal error: scavenge_stack: weird activation record found on stack: 441

Please report this as a compiler bug. See:

http://www.haskell.org/ghc/reportabug

make: *** [DarcsUtils.o] Error 254 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.6" && PREFIX=/opt/local make all" returned error 2 Command output: rm -f Main.hi Main.o ghc -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lcurl -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lssl -optl-lcrypto -optl-L/opt/local/lib -optl-lz -optl-lcurses -o stringify stringify.hs /usr/bin/ld: warning prebinding disabled because dependent library: /opt/local/lib/libcurl.3.dylib is not prebound test -f \Context.hs || echo unknown | ./stringify Context context > \Context.hs Rebuild dependencies ... test -f \Context.hs || echo unknown | ./stringify Context context > \Context.hs ghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -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 util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsUtils.lhs ghc-6.4.2: internal error: scavenge_stack: weird activation record found on stack: 441

Please report this as a compiler bug. See:

http://www.haskell.org/ghc/reportabug

make: *** [DarcsUtils.o] Error 254

Warning: the following items did not execute (for darcs): com.apple.destroot com.apple.build Error: Unable to upgrade port: 1 charles@aluminum ~ $ ghc -v Glasgow Haskell Compiler, Version 6.4.2, for Haskell 98, compiled by GHC version 6.4.2 Using package config file: /opt/local/lib/ghc-6.4.2/package.conf Using package config file: /Users/charles/.ghc/powerpc-darwin-6.4.2/package.conf Hsc static flags: -static

  • ** Deleting temp files

Deleting: ghc-6.4.2: no input files Usage: For basic information, try the `--help' option.

Trac metadata
Trac field Value
Version 6.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Configuring darcs\r\nchecking for darcs... darcs\r\nchecking the release state... release\r\nchecking for gcc... gcc\r\nchecking for C compiler default output file name... a.out\r\nchecking whether the C compiler works... yes\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of executables... \r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ANSI C... none needed\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking for ghc... ghc\r\nchecking where GHC keeps its libraries... /opt/local/lib/ghc-6.4.2\r\nchecking GHC.Handle.openFd... NOT old API\r\nchecking GHC.Handle.openFd new API... okay\r\nchecking for module System.Posix.Signals(installHandler, Handler(..), Signal,\r\n sigINT, sigHUP, sigABRT, sigALRM, sigTERM, sigPIPE,)... yes\r\nchecking for module Text.Regex( mkRegex, matchRegex, Regex )... yes\r\nchecking for module Debug.QuickCheck( quickCheck )... in package QuickCheck\r\nchecking for module Control.Monad.Error... in package util\r\nchecking for module Control.Monad.Error... yes\r\nchecking for module Text.ParserCombinators.Parsec... in package parsec\r\nchecking getCurrentDirectory... uses /\r\nchecking for module System.Posix.Files( createLink )... yes\r\nchecking createDirectoryIfMissing... has createDirectoryIfMissing\r\nchecking renameFile... okay\r\nchecking for module System.Posix.Files( fileMode, getFileStatus, setFileMode )... yes\r\nchecking for module System.Posix.Files( fileMode, getFileStatus, setFileMode )... yes\r\nchecking whether to optimize... yes\r\nchecking whether to profile... no\r\nchecking whether to use mmap... yes\r\nchecking whether to do PackedString debugging... no\r\nchecking whether to use wxhaskell... no\r\nchecking whether to build docs... yes\r\nchecking for latex... no\r\nconfigure: WARNING: Cannot find latex in your path!\r\nchecking for dvips... no\r\nconfigure: WARNING: Cannot find dvips in your path!\r\nchecking for latex2html... no\r\nconfigure: WARNING: Cannot find latex2html in your path!\r\nchecking for htlatex... no\r\nconfigure: WARNING: Cannot find htlatex in your path either!\r\nchecking for hevea... no\r\nconfigure: WARNING: Cannot find hevea in your path either!\r\nchecking for sendmail... /usr/sbin/sendmail\r\nchecking for MAPISendMail in -lmapi32... no\r\nchecking for gawk... no\r\nchecking for mawk... no\r\nchecking for nawk... no\r\nchecking for awk... awk\r\nchecking for libcurl... 7.15.3\r\nchecking for curl_global_init in -lcurl... yes\r\nchecking for egrep... grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking windows.h usability... no\r\nchecking windows.h presence... no\r\nchecking for windows.h... no\r\nchecking term.h usability... yes\r\nchecking term.h presence... yes\r\nchecking for term.h... yes\r\nchecking for library containing tgetent... -lcurses\r\nchecking zlib.h usability... yes\r\nchecking zlib.h presence... yes\r\nchecking for zlib.h... yes\r\nchecking for gzopen... yes\r\nchecking whether to enable Git support... no\r\nchecking for gdiff... no\r\nchecking for gnudiff... no\r\nchecking for diff... diff\r\nchecking for makensis.exe... no\r\nchecking whether byte ordering is bigendian... yes\r\nconfigure: creating ./config.status\r\nconfig.status: creating autoconf.mk\r\nconfig.status: creating gitlib.h\r\nconfig.status: creating Autoconf.lhs\r\nconfig.status: creating ThisVersion.lhs\r\nconfig.status: creating cgi/darcs.cgi\r\nconfig.status: creating cgi/README\r\nconfig.status: creating cgi/cgi.conf\r\nconfig.status: executing config.command commands\r\n\r\nThe build is configured as follows:\r\n\r\n bindir = ${exec_prefix}/bin\r\n sbindir = ${exec_prefix}/sbin\r\n mandir = /opt/local/share/man\r\n datadir = ${prefix}/share\r\n sysconfdir = ${prefix}/etc\r\n libexecdir = ${exec_prefix}/libexec\r\n\r\n Build Manual = no\r\n Git support = no\r\n\r\nIf you want to adjust any of these values, edit autoconf.mk and\r\nAutoconf.lhs -- or run configure with appropriate settings.\r\n\r\n---> Building darcs with target all\r\nrm -f Main.hi Main.o\r\nghc -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lcurl -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lssl -optl-lcrypto -optl-L/opt/local/lib -optl-lz -optl-lcurses -o stringify stringify.hs\r\n/usr/bin/ld: warning prebinding disabled because dependent library: /opt/local/lib/libcurl.3.dylib is not prebound\r\ntest -f \\Context.hs || echo unknown | ./stringify Context context > \\Context.hs\r\nRebuild dependencies ...\r\ntest -f \\Context.hs || echo unknown | ./stringify Context context > \\Context.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c ThisVersion.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Autoconf.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Workaround.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c FastPackedString.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Printer.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsUtils.lhs\r\nghc-6.4.2: internal error: scavenge_stack: weird activation record found on stack: 441\r\n Please report this as a compiler bug. See:\r\n http://www.haskell.org/ghc/reportabug\r\nmake: *** [DarcsUtils.o] Error 254\r\nError: 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.6\" && PREFIX=/opt/local make all\" returned error 2\r\nCommand output: rm -f Main.hi Main.o\r\nghc -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lcurl -optl-L/opt/local/lib -optl-L/opt/local/lib -optl-lssl -optl-lcrypto -optl-L/opt/local/lib -optl-lz -optl-lcurses -o stringify stringify.hs\r\n/usr/bin/ld: warning prebinding disabled because dependent library: /opt/local/lib/libcurl.3.dylib is not prebound\r\ntest -f \\Context.hs || echo unknown | ./stringify Context context > \\Context.hs\r\nRebuild dependencies ...\r\ntest -f \\Context.hs || echo unknown | ./stringify Context context > \\Context.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c ThisVersion.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Autoconf.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Workaround.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c FastPackedString.hs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c Printer.lhs\r\nghc -I/opt/local/include -cpp -package QuickCheck -package util -package parsec -O -funbox-strict-fields -I/opt/local/include -Wall -Werror -I. -I/opt/local/include -DHAVE_CURSES -DHAVE_CURL -c DarcsUtils.lhs\r\nghc-6.4.2: internal error: scavenge_stack: weird activation record found on stack: 441\r\n Please report this as a compiler bug. See:\r\n http://www.haskell.org/ghc/reportabug\r\nmake: *** [DarcsUtils.o] Error 254\r\n\r\nWarning: the following items did not execute (for darcs): com.apple.destroot com.apple.build\r\nError: Unable to upgrade port: 1\r\ncharles@aluminum ~ $ ghc -v\r\nGlasgow Haskell Compiler, Version 6.4.2, for Haskell 98, compiled by GHC version 6.4.2\r\nUsing package config file: /opt/local/lib/ghc-6.4.2/package.conf\r\nUsing package config file: /Users/charles/.ghc/powerpc-darwin-6.4.2/package.conf\r\nHsc static flags: -static\r\n*** Deleting temp files\r\nDeleting: \r\nghc-6.4.2: no input files\r\nUsage: For basic information, try the `--help' option.","type_of_failure":"OtherFailure","blocking":[]} -->
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information