
Hi, When I run cabal install zlib or cabal upgrade zlib I get the following error: Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Only one output file may be specified cabal: Error: some packages failed to install: zlib-0.5.2.0 failed during the building phase. The exception was: exit: ExitFailure 1 I have zlib-0.5.0.0 installed now. The OS is Snow Leopard. I couldn't find anything related to this error, that's why I'm asking community's opinion. Best, -- Ozgur Akgun

On Fri, 2009-12-18 at 23:01 +0000, Ozgur Akgun wrote:
Hi,
When I run cabal install zlib or cabal upgrade zlib I get the following error:
Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Only one output file may be specified
We'll need more details here. Try running with -v2 or -v3. It should say what command it's running. Duncan

Thanks for the feedback.
I guess the following part is the problematic part: (But I've no idea how to
resolve it)
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library zlib-0.5.2.0...
Creating dist/build/Codec/Compression/Zlib (and its parents)
/usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc
--cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz
--cflag=-I/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4/include
--cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include
--cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include
--lflag=-L/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-3.0.3.1
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/syb-0.1.0.1
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4
--lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o
dist/build/Codec/Compression/Zlib/Stream.hs
Codec/Compression/Zlib/Stream.hsc*
Only one output file may be specified
cabal: Error: some packages failed to install:
zlib-0.5.2.0 failed during the building phase. The exception was:
exit: ExitFailure 1
2009/12/19 Duncan Coutts
On Fri, 2009-12-18 at 23:01 +0000, Ozgur Akgun wrote:
Hi,
When I run cabal install zlib or cabal upgrade zlib I get the following error:
Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Only one output file may be specified
We'll need more details here. Try running with -v2 or -v3. It should say what command it's running.
Duncan
-- Ozgur Akgun

I actually ran into this problem last night. Here's my workaround (note that it involves downgrading to zlib-0.5.0.0 1) unregister the zlib-0.5.2.0 package (prompt> ghc-pkg unregister zlib-0.5.2.0) 2) rebuild and install cabal-install: prompt> tar -zxvf ~/.cabal/packages/hackage.haskell.org/cabal-install/0.6.4/cabal-install-0.6.4.tar.gz prompt> cd cabal-install-0.6.4 prompt> runghc Setup.hs configure --user && runghc Setup.hs build && runghc Setup.hs install Note that this requires that you still have zlib-0.5.0.0 installed. Also your paths and options for configuring may vary. But, this worked for me. Max On Dec 19, 2009, at 5:39 PM, Ozgur Akgun wrote:
Thanks for the feedback.
I guess the following part is the problematic part: (But I've no idea how to resolve it)
Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library zlib-0.5.2.0... Creating dist/build/Codec/Compression/Zlib (and its parents) /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz --cflag=-I/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-3.0.3.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/syb-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc Only one output file may be specified cabal: Error: some packages failed to install: zlib-0.5.2.0 failed during the building phase. The exception was: exit: ExitFailure 1
2009/12/19 Duncan Coutts
On Fri, 2009-12-18 at 23:01 +0000, Ozgur Akgun wrote: Hi,
When I run cabal install zlib or cabal upgrade zlib I get the following error:
Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Only one output file may be specified
We'll need more details here. Try running with -v2 or -v3. It should say what command it's running.
Duncan
-- Ozgur Akgun _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Sat, 2009-12-19 at 09:39 +0000, Ozgur Akgun wrote:
I guess the following part is the problematic part: (But I've no idea how to resolve it)
[..]
--lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc* Only one output file may be specified
Does that really use the character '*' ? That's pretty weird. Max, are you getting the same? We'll need some help working out where that '*' is coming from. Duncan

I have the same issue with zlib: /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc Only one output file may be specified And I'm getting the same with unix-compat-0.1.2.1: /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-Iinclude --cflag=-DUNIX_IMPL --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/unix-2.3.2.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/unix-2.3.2.0 --lflag=-ldl --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-3.0.3.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/syb-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/System/PosixCompat/Extensions.hs System/PosixCompat/Extensions.hsc Only one output file may be specified and with haskeline: /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --cflag=-Iincludes --cflag=-DTERMINFO --lflag=-liconv --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/directory-1.0.0.3/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/unix-2.3.2.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/old-time-1.0.0.2/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Users/sjoerd/.cabal/lib/utf8-string-0.3.6/ghc-6.10.4 --lflag=-L/Users/sjoerd/.cabal/lib/terminfo-0.3.1.1/ghc-6.10.4 --lflag=-lncursesw --lflag=-L/Library/Frameworks/HaskellPlatform.framework/lib/mtl-1.1.0.2/ghc-6.10.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/extensible-exceptions-0.1.1.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/directory-1.0.0.3 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/unix-2.3.2.0 --lflag=-ldl --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/old-time-1.0.0.2 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/old-locale-1.0.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/filepath-1.1.0.2 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/containers-0.2.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-3.0.3.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/array-0.2.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/syb-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/System/Console/Haskeline/Backend/Posix.hs System/Console/Haskeline/Backend/Posix.hsc Only one output file may be specified So I guess the issue is with everything that is using hsc2hs? This is how my hsc2hs looks like now, maybe I did something wrong while patching it for Snow Leopard: #!/bin/sh tflag="--template=/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs-0.67/template-hsc.h" Iflag="-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs-0.67/../include/" for arg do case "$arg" in -c*) HSC2HS_EXTRA=;; --cc=*) HSC2HS_EXTRA=;; -t*) tflag=;; --template=*) tflag=;; --) break;; esac done exec /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs $tflag $HSC2HS_EXTRA -optc-m32 -opta-m32 -optl-m32 ${1+"$@"} "$Iflag" greetings, Sjoerd Visscher On Dec 20, 2009, at 1:31 AM, Duncan Coutts wrote:
On Sat, 2009-12-19 at 09:39 +0000, Ozgur Akgun wrote:
I guess the following part is the problematic part: (But I've no idea how to resolve it)
[..]
--lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc* Only one output file may be specified
Does that really use the character '*' ? That's pretty weird. Max, are you getting the same? We'll need some help working out where that '*' is coming from.
Duncan
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Sjoerd Visscher sjoerd@w3future.com

On Sun, 2009-12-20 at 11:17 +0100, Sjoerd Visscher wrote:
I have the same issue with zlib:
/usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/bytestring-0.9.1.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc Only one output file may be specified
Ok so you don't seem to get the weird '*' character, but it's still not obvious why we're getting that message. There does not appear to be multiple output files specified. According to the hsc2hs code it only accepts -o and --output flags as specifying outputs.
And I'm getting the same with unix-compat-0.1.2.1:
and with haskeline:
So I guess the issue is with everything that is using hsc2hs?
Looks that way. Duncan

Oh sorry for that character. I wanted to make that part *underlined* in
gmail which uses (i guess) *'s to denote it. Just to emphasise the
problematic part.
And I was traveling for the last 2 days and I couldn't respond to your mail.
So what's the recommended thing to do now?
My output (untouched this time) is as follows:
Preprocessing library zlib-0.5.0.0...
Creating dist/build/Codec/Compression/Zlib (and its parents)
/usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc
--cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz
--cflag=-I/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4/include
--cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include
--cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include
--lflag=-L/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0
--lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4
--lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o
dist/build/Codec/Compression/Zlib/Stream.hs
Codec/Compression/Zlib/Stream.hsc
Only one output file may be specified
cabal: Error: some packages failed to install:
cabal-install-0.6.4 depends on zlib-0.5.0.0 which failed to install.
zlib-0.5.0.0 failed during the building phase. The exception was:
exit: ExitFailure 1
2009/12/20 Duncan Coutts
On Sat, 2009-12-19 at 09:39 +0000, Ozgur Akgun wrote:
I guess the following part is the problematic part: (But I've no idea how to resolve it)
[..]
--lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc* Only one output file may be specified
Does that really use the character '*' ? That's pretty weird. Max, are you getting the same? We'll need some help working out where that '*' is coming from.
Duncan
-- Ozgur Akgun

On Mon, Dec 21, 2009 at 5:08 PM, Ozgur Akgun
Oh sorry for that character. I wanted to make that part underlined in gmail which uses (i guess) *'s to denote it. Just to emphasise the problematic part.
Yikes — I just checked what Gmail sends as the plain-text alternative with an HTML email, and it does indeed use asterisks. Many people have their email clients set to show only the plain-text version of any email they get, so it's probably best to always use plain text in the first place for technical discussions. ^_^

That's verrry correct. Sorry for the confusion again.
Any more suggestions by the way?
2009/12/22 Tom Tobin
On Mon, Dec 21, 2009 at 5:08 PM, Ozgur Akgun
wrote: Oh sorry for that character. I wanted to make that part underlined in gmail which uses (i guess) *'s to denote it. Just to emphasise the problematic part.
Yikes — I just checked what Gmail sends as the plain-text alternative with an HTML email, and it does indeed use asterisks. Many people have their email clients set to show only the plain-text version of any email they get, so it's probably best to always use plain text in the first place for technical discussions. ^_^ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ozgur Akgun

On Mon, 2009-12-21 at 23:08 +0000, Ozgur Akgun wrote:
So what's the recommended thing to do now?
Please file a ticket in the ghc trac with as much detail as is necessary for someone else to reproduce this. Given what we have at the moment I cannot see the cause of the problem.
From what you've pasted we can see that Cabal is only calling hsc2hs with a single -o flag and yet hsc2hs is complaining that we're passing it multiple -o flags.
Duncan
My output (untouched this time) is as follows:
Preprocessing library zlib-0.5.0.0... Creating dist/build/Codec/Compression/Zlib (and its parents) /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz --cflag=-I/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc Only one output file may be specified

What about this part:
-o dist/build/Codec/Compression/
Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc
Isn't it passing multiple (two in this case) output parameters? Or am I
missing sth?
2009/12/22 Duncan Coutts
On Mon, 2009-12-21 at 23:08 +0000, Ozgur Akgun wrote:
So what's the recommended thing to do now?
Please file a ticket in the ghc trac with as much detail as is necessary for someone else to reproduce this.
Given what we have at the moment I cannot see the cause of the problem.
From what you've pasted we can see that Cabal is only calling hsc2hs with a single -o flag and yet hsc2hs is complaining that we're passing it multiple -o flags.
Duncan
My output (untouched this time) is as follows:
Preprocessing library zlib-0.5.0.0... Creating dist/build/Codec/Compression/Zlib (and its parents) /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz
--cflag=-I/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/include --lflag=-L/Users/ozgurakgun/.cabal/lib/bytestring-0.9.1.5/ghc-6.10.4 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/base-4.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/integer-0.1.0.1 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc-prim-0.1.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl -o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc
Only one output file may be specified
-- Ozgur Akgun

On Tue, 2009-12-22 at 21:48 +0000, Ozgur Akgun wrote:
What about this part:
-o dist/build/Codec/Compression/ Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc
Isn't it passing multiple (two in this case) output parameters? Or am I missing sth?
No, that's one -o flag and a single additional non-flag argument which is the input file. It's like: $ command input -o output but with the order reversed as: $ command -o output input Duncan

Just to check, anyone running Snow Leopard and *CAN* install "zlib-0.5.2.0"
using "cabal install zlib"?
I'm trying to make sure whether I am the only one having this problem or I
have some companion.
Best,
2009/12/22 Duncan Coutts
On Tue, 2009-12-22 at 21:48 +0000, Ozgur Akgun wrote:
What about this part:
-o dist/build/Codec/Compression/ Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc
Isn't it passing multiple (two in this case) output parameters? Or am I missing sth?
No, that's one -o flag and a single additional non-flag argument which is the input file. It's like:
$ command input -o output
but with the order reversed as:
$ command -o output input
Duncan
-- Ozgur Akgun

Ozgur Akgun
Just to check, anyone running Snow Leopard and *CAN* install "zlib-0.5.2.0" using "cabal install zlib"?
I'm trying to make sure whether I am the only one having this problem or I have some companion.
$ cabal install --reinstall zlib
Resolving dependencies...
Configuring zlib-0.5.2.0...
Preprocessing library zlib-0.5.2.0...
Building zlib-0.5.2.0...
[1 of 5] Compiling Codec.Compression.Zlib.Stream ( dist/build/Codec/Compression/Zlib/Stream.hs, dist/build/Codec/Compression/Zlib/Stream.o )
[2 of 5] Compiling Codec.Compression.Zlib.Internal ( Codec/Compression/Zlib/Internal.hs, dist/build/Codec/Compression/Zlib/Internal.o )
[3 of 5] Compiling Codec.Compression.Zlib.Raw ( Codec/Compression/Zlib/Raw.hs, dist/build/Codec/Compression/Zlib/Raw.o )
[4 of 5] Compiling Codec.Compression.Zlib ( Codec/Compression/Zlib.hs, dist/build/Codec/Compression/Zlib.o )
[5 of 5] Compiling Codec.Compression.GZip ( Codec/Compression/GZip.hs, dist/build/Codec/Compression/GZip.o )
ar: creating archive dist/build/libHSzlib-0.5.2.0.a
Installing library in /Users/greg/.cabal/lib/zlib-0.5.2.0/ghc-6.10.4
Registering zlib-0.5.2.0...
Reading package info from "dist/installed-pkg-config" ... done.
Writing new package config file... done.
No problem here. Please ensure you've patched /usr/bin/ghc,
/usr/bin/ghci, /usr/bin/runhaskell, /usr/bin/runghc, and /usr/bin/hsc2hs
according to the instructions on http://haskell.org/haskellwiki/OSX .
The next release of the Haskell Platform installer should fix this
issue.
G
--
Gregory Collins

Oh!
I was pretty sure that I made these patches correctly. But guess what, the
added flags to hsc2hs are different from the others. And I did a bling
copy/paste.
Thanks for reminding it Gregory.
Best,
2010/1/6 Gregory Collins
Ozgur Akgun
writes: Just to check, anyone running Snow Leopard and *CAN* install "zlib-0.5.2.0" using "cabal install zlib"?
I'm trying to make sure whether I am the only one having this problem or I have some companion.
$ cabal install --reinstall zlib Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Building zlib-0.5.2.0... [1 of 5] Compiling Codec.Compression.Zlib.Stream ( dist/build/Codec/Compression/Zlib/Stream.hs, dist/build/Codec/Compression/Zlib/Stream.o ) [2 of 5] Compiling Codec.Compression.Zlib.Internal ( Codec/Compression/Zlib/Internal.hs, dist/build/Codec/Compression/Zlib/Internal.o ) [3 of 5] Compiling Codec.Compression.Zlib.Raw ( Codec/Compression/Zlib/Raw.hs, dist/build/Codec/Compression/Zlib/Raw.o ) [4 of 5] Compiling Codec.Compression.Zlib ( Codec/Compression/Zlib.hs, dist/build/Codec/Compression/Zlib.o ) [5 of 5] Compiling Codec.Compression.GZip ( Codec/Compression/GZip.hs, dist/build/Codec/Compression/GZip.o ) ar: creating archive dist/build/libHSzlib-0.5.2.0.a Installing library in /Users/greg/.cabal/lib/zlib-0.5.2.0/ghc-6.10.4 Registering zlib-0.5.2.0... Reading package info from "dist/installed-pkg-config" ... done. Writing new package config file... done.
No problem here. Please ensure you've patched /usr/bin/ghc, /usr/bin/ghci, /usr/bin/runhaskell, /usr/bin/runghc, and /usr/bin/hsc2hs according to the instructions on http://haskell.org/haskellwiki/OSX .
The next release of the Haskell Platform installer should fix this issue.
G -- Gregory Collins
-- Ozgur Akgun
participants (6)
-
Duncan Coutts
-
Gregory Collins
-
Max Cantor
-
Ozgur Akgun
-
Sjoerd Visscher
-
Tom Tobin