Skip to content

Instantly share code, notes, and snippets.

@ksheedlo
Created May 20, 2013 06:47
Show Gist options
  • Save ksheedlo/5610763 to your computer and use it in GitHub Desktop.
Save ksheedlo/5610763 to your computer and use it in GitHub Desktop.
haskell-platform failed to build on 10.8
$ brew doctor
Your system is ready to brew.
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install haskell-platform 2>&1
==> Downloading http://lambda.haskell.org/platform/download/2012.4.0.0/haskell-platform-2012.4.0.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/haskell-platform-2012.4.0.0.tar.gz
tar xf /Library/Caches/Homebrew/haskell-platform-2012.4.0.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2012.4.0.0 --enable-unsupported-ghc-version
./configure --prefix=/usr/local/Cellar/haskell-platform/2012.4.0.0 --enable-unsupported-ghc-version
**************************************************
*
* Haskell Platform Source Installer
*
* For the Haskell Platform 2012.4.0.0 and GHC 7.4.2
*
**************************************************
checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
checking target system type... i386-apple-darwin12.3.0
checking for ghc... /usr/local/opt/ghc/bin/ghc
checking for ghc-pkg... /usr/local/opt/ghc/bin/ghc-pkg
checking for hsc2hs... /usr/local/opt/ghc/bin/hsc2hs
checking version of ghc... 7.4.2
checking version of ghc-pkg matches... yes
checking ghc actually works... [1 of 1] Compiling Main ( conftest.hs, conftest.o )
Linking conftest ...
yes
checking for perl... /usr/bin/perl
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
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 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 zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for zlibVersion in -lz... yes
configure: creating ./config.status
config.status: creating scripts/config
**************************************************
* Configuration completed successfully.
*
* Install prefix: /usr/local/Cellar/haskell-platform/2012.4.0.0
* Haskell packages will be registered into
* the global ghc package database
*
* If you wish to change these settings then
* use --prefix= and/or --enable-user-install
*
* Now do "make" followed by "sudo make install"
**************************************************
==> make install
make install
scripts/build.sh
**************************************************
Scanning system for any installed Haskell Platform components...
Found:
None.
New packages to install:
HUnit-1.2.5.1 OpenGL-2.2.3.1 GLUT-2.1.2.1 html-1.0.1.2 parallel-3.2.0.3 primitive-0.5.0.1 random-1.0.1.1 QuickCheck-2.5.1.1 alex-3.0.2 split-0.2.1.1 stm-2.4 async-2.0.1.3 syb-0.3.7 haskell-src-1.0.1.5 text-0.11.2.3 transformers-0.3.0.0 mtl-2.1.2 fgl-5.4.2.4 happy-1.18.10 parsec-3.1.3 network-2.3.1.0 HTTP-4000.2.5 regex-base-0.93.2 regex-posix-0.95.2 regex-compat-0.95.1 vector-0.10.0.1 xhtml-3000.2.1 cgi-3001.1.7.4 zlib-0.5.4.0 cabal-install-0.14.0 haskell-platform-2012.4.0.0
**************************************************
Building HUnit-1.2.5.1
"/usr/local/opt/ghc/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal"
Setup.hs:1:8:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.16.0.3' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
Error:
Compiling the Setup script failed
make: *** [build.stamp] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 34f6f509e71e56d5c8ee28acdd4a794f7f866110
CPU: 8-core 64-bit ivybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1365549073
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/ghc/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: haskell-platform did not build
Logs: /Users/ken/Library/Logs/Homebrew/haskell-platform/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by haskell-platform configure 2012.4.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/haskell-platform/2012.4.0.0 --enable-unsupported-ghc-version
## --------- ##
## Platform. ##
## --------- ##
hostname = ksheedlo-hackbook
uname -m = x86_64
uname -r = 12.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 163 tasks, 840 threads, 8 processors
Load average: 2.54, Mach factor: 5.44
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/Library/ENV/4.3
PATH: /usr/local/opt/ghc/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2113: checking build system type
configure:2127: result: i386-apple-darwin12.3.0
configure:2147: checking host system type
configure:2160: result: i386-apple-darwin12.3.0
configure:2180: checking target system type
configure:2193: result: i386-apple-darwin12.3.0
configure:2235: checking for ghc
configure:2253: found /usr/local/opt/ghc/bin/ghc
configure:2266: result: /usr/local/opt/ghc/bin/ghc
configure:2292: checking for ghc-pkg
configure:2310: found /usr/local/opt/ghc/bin/ghc-pkg
configure:2323: result: /usr/local/opt/ghc/bin/ghc-pkg
configure:2348: checking for hsc2hs
configure:2366: found /usr/local/opt/ghc/bin/hsc2hs
configure:2379: result: /usr/local/opt/ghc/bin/hsc2hs
configure:2475: checking version of ghc
configure:2478: result: 7.4.2
configure:2497: checking version of ghc-pkg matches
configure:2507: result: yes
configure:2517: checking ghc actually works
configure:2526: /usr/local/opt/ghc/bin/ghc -o conftest conftest.hs
configure:2529: $? = 0
configure:2546: result: yes
configure:2640: checking for perl
configure:2658: found /usr/bin/perl
configure:2671: result: /usr/bin/perl
configure:2735: checking for gcc
configure:2762: result: cc
configure:2991: checking for C compiler version
configure:3000: cc --version >&5
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
configure:3011: $? = 0
configure:3000: cc -v >&5
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang: warning: argument unused during compilation: '-isystem /usr/local/include'
clang: warning: argument unused during compilation: '-isystem /usr/include/libxml2'
clang: warning: argument unused during compilation: '-isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/'
clang: warning: argument unused during compilation: '-L/usr/local/lib'
clang: warning: argument unused during compilation: '-L/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries'
configure:3011: $? = 0
configure:3000: cc -V >&5
clang: error: unsupported option '-V -isystem/usr/local/include'
clang: error: no input files
configure:3011: $? = 1
configure:3000: cc -qversion >&5
clang: error: no input files
configure:3011: $? = 1
configure:3031: checking whether the C compiler works
configure:3053: cc conftest.c >&5
configure:3057: $? = 0
configure:3105: result: yes
configure:3108: checking for C compiler default output file name
configure:3110: result: a.out
configure:3116: checking for suffix of executables
configure:3123: cc -o conftest conftest.c >&5
configure:3127: $? = 0
configure:3149: result:
configure:3171: checking whether we are cross compiling
configure:3179: cc -o conftest conftest.c >&5
configure:3183: $? = 0
configure:3190: ./conftest
configure:3194: $? = 0
configure:3209: result: no
configure:3214: checking for suffix of object files
configure:3236: cc -c conftest.c >&5
configure:3240: $? = 0
configure:3261: result: o
configure:3265: checking whether we are using the GNU C compiler
configure:3284: cc -c conftest.c >&5
configure:3284: $? = 0
configure:3293: result: yes
configure:3302: checking whether cc accepts -g
configure:3322: cc -c -g conftest.c >&5
configure:3322: $? = 0
configure:3363: result: yes
configure:3380: checking for cc option to accept ISO C89
configure:3443: cc -c -g -O2 conftest.c >&5
configure:3443: $? = 0
configure:3456: result: none needed
configure:3482: checking how to run the C preprocessor
configure:3513: cc -E conftest.c
configure:3513: $? = 0
configure:3527: cc -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3527: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "haskell-platform"
| #define PACKAGE_TARNAME "haskell-platform"
| #define PACKAGE_VERSION "2012.4.0.0"
| #define PACKAGE_STRING "haskell-platform 2012.4.0.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3552: result: cc -E
configure:3572: cc -E conftest.c
configure:3572: $? = 0
configure:3586: cc -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3586: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "haskell-platform"
| #define PACKAGE_TARNAME "haskell-platform"
| #define PACKAGE_VERSION "2012.4.0.0"
| #define PACKAGE_STRING "haskell-platform 2012.4.0.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3615: checking for grep that handles long lines and -e
configure:3673: result: /usr/bin/grep
configure:3678: checking for egrep
configure:3740: result: /usr/bin/grep -E
configure:3745: checking for ANSI C header files
configure:3765: cc -c -g -O2 conftest.c >&5
configure:3765: $? = 0
configure:3838: cc -o conftest -g -O2 conftest.c >&5
configure:3838: $? = 0
configure:3838: ./conftest
configure:3838: $? = 0
configure:3849: result: yes
configure:3862: checking for sys/types.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for sys/stat.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for stdlib.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for string.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for memory.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for strings.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for inttypes.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for stdint.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3862: checking for unistd.h
configure:3862: cc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3862: result: yes
configure:3874: checking zlib.h usability
configure:3874: cc -c -g -O2 conftest.c >&5
configure:3874: $? = 0
configure:3874: result: yes
configure:3874: checking zlib.h presence
configure:3874: cc -E conftest.c
configure:3874: $? = 0
configure:3874: result: yes
configure:3874: checking for zlib.h
configure:3874: result: yes
configure:3882: checking for zlibVersion in -lz
configure:3907: cc -o conftest -g -O2 conftest.c -lz >&5
configure:3907: $? = 0
configure:3916: result: yes
configure:4297: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by haskell-platform config.status 2012.4.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on ksheedlo-hackbook
config.status:743: creating scripts/config
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-apple-darwin12.3.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_zlib_h=yes
ac_cv_host=i386-apple-darwin12.3.0
ac_cv_lib_z_zlibVersion=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GHC=/usr/local/opt/ghc/bin/ghc
ac_cv_path_GHC_PKG=/usr/local/opt/ghc/bin/ghc-pkg
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_HSC2HS=/usr/local/opt/ghc/bin/hsc2hs
ac_cv_path_PERL=/usr/bin/perl
ac_cv_prog_CPP='cc -E'
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_target=i386-apple-darwin12.3.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOW_UNSUPPORTED_GHC='YES'
CC='cc'
CFLAGS='-g -O2'
CPP='cc -E'
CPPFLAGS=''
DEFS='-DPACKAGE_NAME=\"haskell-platform\" -DPACKAGE_TARNAME=\"haskell-platform\" -DPACKAGE_VERSION=\"2012.4.0.0\" -DPACKAGE_STRING=\"haskell-platform\ 2012.4.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBZ=1'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
ENABLE_PROFILING='YES'
ENABLE_SHARED='NO'
EXEEXT=''
GHC='/usr/local/opt/ghc/bin/ghc'
GHC_PKG='/usr/local/opt/ghc/bin/ghc-pkg'
GREP='/usr/bin/grep'
HSC2HS='/usr/local/opt/ghc/bin/hsc2hs'
LDFLAGS=''
LIBOBJS=''
LIBS='-lz '
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='haskell-platform'
PACKAGE_STRING='haskell-platform 2012.4.0.0'
PACKAGE_TARNAME='haskell-platform'
PACKAGE_URL=''
PACKAGE_VERSION='2012.4.0.0'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
SHELL='/bin/sh'
USER_INSTALL='NO'
ac_ct_CC='cc'
bindir='${exec_prefix}/bin'
build='i386-apple-darwin12.3.0'
build_alias=''
build_cpu='i386'
build_os='darwin12.3.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i386-apple-darwin12.3.0'
host_alias=''
host_cpu='i386'
host_os='darwin12.3.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/Cellar/haskell-platform/2012.4.0.0'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i386-apple-darwin12.3.0'
target_alias=''
target_cpu='i386'
target_os='darwin12.3.0'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "haskell-platform"
#define PACKAGE_TARNAME "haskell-platform"
#define PACKAGE_VERSION "2012.4.0.0"
#define PACKAGE_STRING "haskell-platform 2012.4.0.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIBZ 1
configure: exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment