Skip to content

Instantly share code, notes, and snippets.

@nevinng
Created July 20, 2012 02:50
Show Gist options
  • Save nevinng/3148366 to your computer and use it in GitHub Desktop.
Save nevinng/3148366 to your computer and use it in GitHub Desktop.
brew install --use-llvm -v haskell-platform
(master)⚡ [1] % brew install --use-llvm -v haskell-platform /usr/local
==> Downloading http://lambda.haskell.org/platform/download/2012.2.0.0/haskell-platform-2012.2.0.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/haskell-platform-2012.2.0.0.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/haskell-platform-2012.2.0.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2012.2.0.0 --enable-unsupported-ghc-version
./configure --prefix=/usr/local/Cellar/haskell-platform/2012.2.0.0 --enable-unsupported-ghc-version
**************************************************
*
* Haskell Platform Source Installer
*
* For the Haskell Platform 2012.2.0.0 and GHC 7.4.1
*
**************************************************
checking build system type... i386-apple-darwin12.0.0
checking host system type... i386-apple-darwin12.0.0
checking target system type... i386-apple-darwin12.0.0
checking for ghc... /usr/local/bin/ghc
checking for ghc-pkg... /usr/local/bin/ghc-pkg
checking for hsc2hs... /usr/local/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... /usr/bin/llvm-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/llvm-gcc accepts -g... yes
checking for /usr/bin/llvm-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/llvm-gcc -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.2.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"
**************************************************
==> EXTRA_CONFIGURE_OPTS="--libdir=/usr/local/Cellar/haskell-platform/2012.2.0.0/lib/ghc" make install
EXTRA_CONFIGURE_OPTS="--libdir=/usr/local/Cellar/haskell-platform/2012.2.0.0/lib/ghc" make install
scripts/build.sh
**************************************************
Scanning system for any installed Haskell Platform components...
-n Found:
None.
-n New packages to install:
None! All done.
**************************************************
Building HUnit-1.2.4.2
"/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal"
[1 of 1] Compiling Main ( Setup.hs, Setup.o )
Setup.hs:6:1:
Warning: In the use of `runTests'
(imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
Deprecated: "Please use the new testing interface instead!"
Linking Setup ...
"./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/usr/local/Cellar/haskell-platform/2012.2.0.0" "--with-compiler=/usr/local/bin/ghc" "--with-hc-pkg=/usr/local/bin/ghc-pkg" "--with-hsc2hs=/usr/local/bin/hsc2hs" "--enable-library-profiling" "--libdir=/usr/local/Cellar/haskell-platform/2012.2.0.0/lib/ghc" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
Configuring HUnit-1.2.4.2...
/var/folders/wk/l_58s9gx1wv5_hddh3mjs1n00000gn/T/88905.c:1:12:
warning: control reaches end of non-void function [-Wreturn-type]
int foo() {}
^
1 warning generated.
"./Setup" "build"
Building HUnit-1.2.4.2...
Preprocessing executable 'terminal-tests' for HUnit-1.2.4.2...
Test/HUnit/Text.hs:23:49:
warning: missing terminating '"' character
-- 'PutText'. A report string is known as a \"line\", although it includes
^
Test/HUnit/Text.hs:26:47:
warning: missing terminating '"' character
-- receives a flag indicating the intended \"persistence\" of the line:
^
Test/HUnit/Text.hs:79:45: warning: missing terminating ' character
-- reporting scheme. The reporting scheme's state is threaded through calls
^
Test/HUnit/Text.hs:80:29: warning: missing terminating ' character
-- to the reporting scheme's function and finally returned, along with final
^
Test/HUnit/Text.hs:85:10:
warning: missing terminating ' character
(counts', us1) <- performTest reportStart reportError reportFailure us0 t
^
Test/HUnit/Text.hs:86:32:
warning: missing terminating ' character
us2 <- put (showCounts counts') True us1
^
Test/HUnit/Text.hs:87:17:
warning: missing terminating ' character
return (counts', us2)
^
Test/HUnit/Text.hs:93:48:
warning: missing terminating ' character
where line = "### " ++ kind ++ path' ++ '\n' : msg
^
Test/HUnit/Text.hs:94:30:
warning: missing terminating ' character
kind = if null path' then p0 else p1
^
Test/HUnit/Text.hs:95:14:
warning: missing terminating ' character
path' = showPath (path ss)
^
Test/HUnit/Text.hs:108:72:
warning: missing terminating ' character
-- the colon (\':\'). An element of the path is quoted (as with 'show') when
^
Test/HUnit/Text.hs:120:20:
warning: missing terminating '"' character
-- | Provides the \"standard\" text-based test controller. Reporting is made to
^
Test/HUnit/Text.hs:124:11:
warning: missing terminating '"' character
-- The \"TT\" in the name suggests \"Text-based reporting to the Terminal\".
^
Test/HUnit/Text.hs:127:25:
warning: missing terminating ' character
runTestTT t = do (counts', 0) <- runTestText (putTextToHandle stderr True) t
^
Test/HUnit/Text.hs:128:31:
warning: missing terminating ' character
return counts'
^
15 warnings generated.
Test/HUnit/Base.hs:58:17:
warning: missing terminating '"' character
-- other than @\"\"@) is passed.
^
Test/HUnit/Base.hs:67:47:
warning: missing terminating '"' character
-- If the prefix is the empty string (i.e., @\"\"@), then the prefix is omitted
^
Test/HUnit/Base.hs:118:42:
warning: missing terminating ' character
-- | The result of an assertion that hasn't been evaluated yet.
^
Test/HUnit/Base.hs:327:24:
warning: missing terminating ' character
unless (null (path ss')) $ error "performTest: Final path is nonnull"
^
Test/HUnit/Base.hs:335:7:
warning: missing terminating ' character
us' <- reportStart ss us
^
Test/HUnit/Base.hs:338:66:
warning: missing terminating ' character
Just (True, m) -> do usF <- reportFailure m ssF us'
^
Test/HUnit/Base.hs:340:66:
warning: missing terminating ' character
Just (False, m) -> do usE <- reportError m ssE us'
^
Test/HUnit/Base.hs:343:12:
warning: missing terminating ' character
ss' = ss{ counts = c{ tried = n + 1 } }
^
8 warnings generated.
Test/HUnit/Lang.hs:91:21:
warning: missing terminating ' character
-- because it's thought that none of them will be encountered during
^
1 warning generated.
[1 of 6] Compiling Test.HUnit.Lang ( Test/HUnit/Lang.hs, dist/build/terminal-tests/terminal-tests-tmp/Test/HUnit/Lang.o )
Test/HUnit/Lang.hs:22:1:
Warning: In the use of `mkTyCon'
(imported from Data.Dynamic, but defined in Data.Typeable):
Deprecated: "either derive Typeable, or use mkTyCon3 instead"
[2 of 6] Compiling Test.HUnit.Base ( Test/HUnit/Base.hs, dist/build/terminal-tests/terminal-tests-tmp/Test/HUnit/Base.o )
Test/HUnit/Base.hs:338:36:
The last statement in a 'do' block must be an expression
usF <- reportFailure m ssF us' return (ssF, usF)
Test/HUnit/Base.hs:339:50:
Not in scope: `usF'
Perhaps you meant one of these:
`us' (line 334), us' (line 335), `ssF' (line 344)
Error:
Building the HUnit-1.2.4.2 package failed
make: *** [build.stamp] Error 2
config.log was copied to /Users/ngn/Library/Logs/Homebrew
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/haskell-platform.rb#L13
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: 9ed848f061d4a83bb1d80032c5f3a8f4bf83d8f6
CPU: 8-core 64-bit nehalem
OS X: 10.8-x86_64
Xcode: 4.4
CLT: 4.4.0.0.1.1249367152
X11: N/A
"--use-llvm" was specified
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.8
MAKEFLAGS: -j8
Error: Failed executing: EXTRA_CONFIGURE_OPTS="--libdir=/usr/local/Cellar/haskell-platform/2012.2.0.0/lib/ghc" make install (haskell-platform.rb:13)
If `brew doctor` does not, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment