Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Pronk doesn't build on OS/X #9

Merged
merged 1 commit into from

5 participants

@ppurang
>uname -a
Darwin quark 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

> ghci --version
The Glorious Glasgow Haskell Compilation System, version 7.0.4

> cabal --version
cabal-install version 0.10.2
using version 1.10.2.0 of the Cabal library 

>  git lg -1
* h 9487197 t 0fff73f   (HEAD, origin/master, origin/HEAD, master) Make nicer with the reports. (10 days ago) <Bryan O'Sullivan> [2011-11-25 17:55:47 -0800] 

> cabal update
Downloading the latest package list from hackage.haskell.org
cabal update  7.43s user 0.38s system 23% cpu 33.792 total

> cabal configure && cabal install 
Resolving dependencies...
Configuring pronk-0.1.0...
Resolving dependencies...
Configuring pronk-0.1.0...
Preprocessing library pronk-0.1.0...
Preprocessing executables for pronk-0.1.0...
Building pronk-0.1.0...
Registering pronk-0.1.0...
[1 of 1] Compiling Main             ( app/App.hs, dist/build/pronk/pronk-tmp/Main.o )

app/App.hs:125:35: Not in scope: `BL.hPutStrLn'
cabal: Error: some packages failed to install:
pronk-0.1.0 failed during the building phase. The exception was:
ExitFailure 1
cabal install  7.23s user 0.38s system 98% cpu 7.701 total
@mightybyte

I'm getting this same error on arch linux with GHC 7.0.3. The issue appears to be that bytestring-0.9.1.10 does not export hPutStrLn from Data.ByteString.Lazy.Char8. That looks to be new in 0.9.2.0.

@ppurang

Hi,

On Ubuntu 11.10

> ghci --version
The Glorious Glasgow Haskell Compilation System, version 7.0.4
pion ~/repositories/github/external/pronk-wunki on master(9487197) tracking origin/master

> cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library 

> git diff 
diff --git a/pronk.cabal b/pronk.cabal
index 4499395..18646c5 100644
--- a/pronk.cabal
+++ b/pronk.cabal
@@ -49,7 +49,7 @@ library
   build-depends:
     aeson,
     base < 5,
-    bytestring,
+    bytestring >= 0.9.2.0,
     case-insensitive,
     criterion >= 0.6.0.0,
     deepseq,
@@ -80,7 +80,7 @@ executable pronk
   build-depends:
     aeson,
     base < 5,
-    bytestring,
+    bytestring >= 0.9.2.0,
     cmdargs >= 0.7,
     criterion,
     deepseq,

> cabal configure 
Resolving dependencies...
Configuring pronk-0.1.0...
cabal: At least the following dependencies are missing:
bytestring >=0.9.2.0

Then I tried installing the bytestring using:

> cabal install bytestring-0.9.2.0
Resolving dependencies...
cabal: bytestring.cabal:70: The 'type' field is required for test suites. The
available test types are: exitcode-stdio-1.0
cabal: Error: some packages failed to install:
bytestring-0.9.2.0 failed during the configure step. The exception was:
ExitFailure 1

Next try: Find the last commit that compiles for me!

@hvr

this might have been fixed by the pull-request attached to issue #13

@ppurang

Yes, it certainly does. Look at my comment on #13

@bos bos merged commit 1beaa41 into bos:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 27, 2011
  1. @wunki
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  pronk.cabal
View
2  pronk.cabal
@@ -49,7 +49,7 @@ library
build-depends:
aeson,
base < 5,
- bytestring,
+ bytestring >= 0.9.2.0,
case-insensitive,
criterion >= 0.6.0.0,
deepseq,
Something went wrong with that request. Please try again.