Skip to content

Instantly share code, notes, and snippets.

@larrytheliquid
Created January 9, 2010 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larrytheliquid/273108 to your computer and use it in GitHub Desktop.
Save larrytheliquid/273108 to your computer and use it in GitHub Desktop.
laptoptheliquid:~ larry$ brew install ghc
Error: RubyCocoa could not be loaded, therefore checking for spill is disabled.
When using a custom Ruby installation, you'll need to install RubyCocoa.
If this is not the case, see if the following ticket applies, or create one.
http://github.com/mxcl/homebrew/issues#issue/37
Warning: You should upgrade to Xcode 3.1.4
Warning: It appears you have Macports or Fink installed
Although, unlikely, this can break builds or cause obscure runtime issues.
If you experience problems try uninstalling these tools.
==> Downloading http://www.haskell.org/ghc/dist/current/dist/ghc-6.13.20100108-src.tar.bz2
File already downloaded and cached to /Users/larry/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/ghc/6.13.20100108 --enable-shared --disable-debug --disable-dependency-tracking
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for GHC version date... given 6.13.20100108
checking for ghc... /usr/bin/ghc
checking version of ghc... 6.10.4
Build platform inferred as: i386-apple-darwin
Host platform inferred as: i386-apple-darwin
Target platform inferred as: i386-apple-darwin
checking for nhc... no
checking for nhc98... no
checking for hbc... no
checking for path to top of build tree... /private/tmp/homebrew-ghc-6.13.20100108-sjS2/ghc-6.13.20100108
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for nm... /usr/bin/nm
checking Mac OS X deployment target... none
checking whether #! works in shell scripts... yes
checking for perl... /opt/local/bin/perl
checking if your perl works in shell scripts... yes
checking for python... /usr/bin/python
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
http://github.com/mxcl/homebrew/blob/master/Library/Formula/ghc.rb#L9
==> Environment
HOMEBREW_VERSION: 0.5
HEAD: d9dc06a0a7e276d504836091b8edd50cb9df10d0
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Users/larry/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.5.8
Kernel Architecture: i386
Ruby: 1.8.7-174
GCC-4.2: build 5566
LLVM: N/A
MacPorts or Fink? /opt/local/bin/port
Exit status: 77
Error: Failure while executing: ./configure --prefix=/usr/local/Cellar/ghc/6.13.20100108 --enable-shared --disable-debug --disable-dependency-tracking
Please report this bug at http://github.com/mxcl/homebrew/issues
require 'formula'
class Ghc <Formula
url 'http://www.haskell.org/ghc/dist/current/dist/ghc-6.13.20100108-src.tar.bz2'
homepage 'http://www.haskell.org/ghc/'
md5 '67760489ddecc520545551d0bb4e1fcd'
def caveats
<<-TEXT
Experimenting with development-version GHC features.
Requires existing GHC (6.8.* or greater) to compile.
TEXT
end
def install
system "./configure", "--prefix=#{prefix}",
"--enable-shared",
"--disable-debug",
"--disable-dependency-tracking"
system "make"
system "make install"
end
end
configure:3539: /usr/bin/gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
configure:3542: $? = 0
configure:3549: /usr/bin/gcc -V >&5
gcc-4.0: argument to `-V' is missing
configure:3552: $? = 1
configure:3575: checking for C compiler default output file name
configure:3602: /usr/bin/gcc -O3 -march=nocona -mfpmath=sse -mmmx -msse4.1 -w -pipe -m32 -m32 conftest.c >&5
cc1: error: invalid option 'sse4.1'
configure:3539: /usr/bin/gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
configure:3542: $? = 0
configure:3549: /usr/bin/gcc -V >&5
gcc-4.0: argument to `-V' is missing
configure:3552: $? = 1
configure:3575: checking for C compiler default output file name
configure:3602: /usr/bin/gcc -m32 -L/opt/local/lib -m32 conftest.c >&5
laptoptheliquid:ghc-6.13.20100108 larry$ ./configure --enable-shared --prefix=/usr/local --disable-debug --disable-dependency-tracking
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for GHC version date... given 6.13.20100108
checking for ghc... /usr/bin/ghc
checking version of ghc... 6.10.4
Build platform inferred as: i386-apple-darwin
Host platform inferred as: i386-apple-darwin
Target platform inferred as: i386-apple-darwin
checking for nhc... no
checking for nhc98... no
checking for hbc... no
checking for path to top of build tree... /Users/larry/Downloads/ghc-6.13.20100108
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for nm... /usr/bin/nm
checking Mac OS X deployment target... none
checking whether #! works in shell scripts... yes
checking for perl... /opt/local/bin/perl
checking if your perl works in shell scripts... yes
checking for python... /usr/bin/python
checking for gcc... /usr/bin/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 /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking version of gcc... 4.0.1
checking for extra options to pass gcc when compiling via C... -fwrapv -mno-omit-leaf-frame-pointer -fno-unit-at-a-time
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for a working context diff... diff -U 1
checking for a BSD-compatible install... /usr/bin/install -c
checking for ar... /usr/bin/ar
checking whether /usr/bin/ar is GNU ar... no
checking for ar arguments... clqs
checking whether ranlib is needed... yes
checking for ranlib... ranlib
checking whether /usr/bin/ar supports -input... no
checking whether ln -s works... yes
checking for gsed... no
checking for sed... /usr/bin/sed
checking for time... /usr/bin/time
checking for gnutar... /usr/bin/gnutar
checking for gpatch... no
checking for patch... /usr/bin/patch
checking for dtrace... /usr/sbin/dtrace
checking for HsColour... no
checking for xmllint... /opt/local/bin/xmllint
checking for DocBook DTD... I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
conftest.xml:5: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
]>
^
conftest.xml:6: element book: validity error : No declaration for attribute id of element book
<book id="test">
^
conftest-book.xml:2: parser error : Entity 'ldquo' not defined
<title>A DocBook &ldquo;Test Document&rdquo;</title>
^
conftest-book.xml:2: parser error : Entity 'rdquo' not defined
<title>A DocBook &ldquo;Test Document&rdquo;</title>
^
conftest-book.xml:11: parser error : chunk is not well balanced
^
conftest.xml:7: parser error : Failure to process entity conftest-book
&conftest-book;
^
conftest.xml:7: parser error : Entity 'conftest-book' not defined
&conftest-book;
^
failed
configure: WARNING: cannot find a DTD for DocBook XML V4.2, you will not be able to validate your documentation
configure: WARNING: check your XML_CATALOG_FILES environment variable and/or /etc/xml/catalog
checking for xsltproc... /opt/local/bin/xsltproc
checking for DocBook XSL stylesheet... no
configure: WARNING: cannot find DocBook XSL stylesheets, you will not be able to build the documentation
checking for dblatex... no
configure: WARNING: cannot find dblatex in your PATH, you will not be able to build the PDF and PS documentation
checking for hasktags... /usr/bin/hasktags
checking for ghc-pkg matching /usr/bin/ghc... /usr/bin/ghc-pkg
checking for happy... /usr/local/bin/happy
checking for version of happy... 1.18.4
checking for alex... /usr/local/bin/alex
checking for version of alex... 2.3.1
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
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 bfd.h usability... no
checking bfd.h presence... no
checking for bfd.h... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/timers.h usability... no
checking sys/timers.h presence... no
checking for sys/timers.h... no
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for long long... yes
checking for char... yes
checking size of char... 1
checking for double... yes
checking size of double... 8
checking for float... yes
checking size of float... 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... (cached) yes
checking size of long long... 8
checking for short... yes
checking size of short... 2
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for unsigned short... yes
checking size of unsigned short... 2
checking for void *... yes
checking size of void *... 4
checking for char... (cached) yes
checking alignment of char... 1
checking for double... (cached) yes
checking alignment of double... 4
checking for float... (cached) yes
checking alignment of float... 4
checking for int... (cached) yes
checking alignment of int... 4
checking for long... (cached) yes
checking alignment of long... 4
checking for long long... (cached) yes
checking alignment of long long... 4
checking for short... (cached) yes
checking alignment of short... 2
checking for unsigned char... (cached) yes
checking alignment of unsigned char... 1
checking for unsigned int... (cached) yes
checking alignment of unsigned int... 4
checking for unsigned long... (cached) yes
checking alignment of unsigned long... 4
checking for unsigned long long... (cached) yes
checking alignment of unsigned long long... 4
checking for unsigned short... (cached) yes
checking alignment of unsigned short... 2
checking for void *... (cached) yes
checking alignment of void *... 4
checking for WinExec... no
checking for GetModuleFileName... no
checking return type of signal handlers... void
checking for getclock... no
checking for getrusage... yes
checking for gettimeofday... yes
checking for setitimer... yes
checking for siginterrupt... yes
checking for sysconf... yes
checking for times... yes
checking for ctime_r... yes
checking for sched_setaffinity... no
checking for setlocale... yes
checking whether ctime_r is declared... yes
checking for closedir in -lmingwex... no
checking for library containing atan... none required
checking for xmalloc in -liberty... no
checking for bfd_init in -lbfd... no
checking for dlopen in -ldl... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking whether float word order is big endian... no
checking for nlist in -lelf... no
checking leading underscore in symbol names... yes
checking whether ld understands -x... yes
checking whether ld is GNU ld... no
checking for .subsections_via_symbols... yes
checking for GNU non-executable stack support... no
checking for clock_gettime in -lrt... no
checking for clock_gettime... no
checking for timer_create... no
checking for timer_settime... no
checking for a working timer_create(CLOCK_REALTIME)... no
checking for printf$LDBLStub... no
checking for pkg-config... /opt/local/bin/pkg-config
configure: WARNING: GTK+ not usable, need at least version 2.0
checking for PAPI_library_init in -lpapi... no
checking papi.h usability... no
checking papi.h presence... no
checking for papi.h... no
checking for __mingw_vfprintf... no
configure: creating ./config.status
config.status: creating mk/config.mk
config.status: creating mk/install.mk
config.status: creating mk/project.mk
config.status: creating compiler/ghc.cabal
config.status: creating ghc/ghc-bin.cabal
config.status: creating ghc.spec
config.status: creating extra-gcc-opts
config.status: creating docs/users_guide/ug-book.xml
config.status: creating distrib/ghc.iss
config.status: creating distrib/configure.ac
config.status: creating mk/config.h
config.status: executing mk/stamp-h commands
----------------------------------------------------------------------
Configure completed successfully.
Building GHC version : 6.13.20100108
Build platform : i386-apple-darwin
Host platform : i386-apple-darwin
Target platform : i386-apple-darwin
Bootstrapping using : /usr/bin/ghc
which is version : 6.10.4
Using GCC : /usr/bin/gcc
which is version : 4.0.1
ld : /usr/bin/ld
Happy : /usr/local/bin/happy (1.18.4)
Alex : /usr/local/bin/alex (2.3.1)
Python : /usr/bin/python
Perl : /opt/local/bin/perl
dblatex :
xsltproc : /opt/local/bin/xsltproc
HsColour was not found; documentation will not contain source links
Building DocBook HTML documentation : NO
Building DocBook PS documentation : NO
Building DocBook PDF documentation : NO
----------------------------------------------------------------------
For a standard build of GHC (fully optimised with profiling), type (g)make.
To make changes to the default build configuration, copy the file
mk/build.mk.sample to mk/build.mk, and edit the settings in there.
For more information on how to configure your GHC build, see
http://hackage.haskell.org/trac/ghc/wiki/Building
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment