Note that there are some explanatory texts on larger screens.

plurals
  1. POzlib build error with GHC
    primarykey
    data
    text
    <p>I'm using a VM with the following configuration:</p> <ul> <li>Arch Linux (3.0-ARCH kernel)</li> <li>GHC 7.0.3</li> <li>cabal-install 0.10.2</li> <li>Cabal library 1.10.1.0</li> </ul> <p>When I try to build zlib using cabal...</p> <pre><code>$ cabal install zlib </code></pre> <p>I get the following output:</p> <pre><code>Resolving dependencies... Downloading zlib-0.5.3.2... Configuring zlib-0.5.3.2... Preprocessing library zlib-0.5.3.2... Stream.hsc:86:21: error: missing binary operator before token "(" Stream.hsc: In function ‘main’: Stream.hsc:86:21: error: missing binary operator before token "(" Stream.hsc:86:21: error: missing binary operator before token "(" compiling dist/build/Codec/Compression/Zlib/Stream_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Codec/Compression/Zlib/Stream_hsc_make.c -o dist/build/Codec/Compression/Zlib/Stream_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=700 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/lib/ghc-7.0.3/bytestring-0.9.1.10/include -I/usr/lib/ghc-7.0.3/base-4.3.1.0/include -I/usr/lib/ghc-7.0.3/include -I/usr/lib/ghc-7.0.3/include -I/usr/lib/ghc-7.0.3/include/ cabal: Error: some packages failed to install: zlib-0.5.3.2 failed during the building phase. The exception was: ExitFailure 1 </code></pre> <p>Can anyone shed some light on this build error?</p> <hr> <p><strong>Edit:</strong> Here's a snippet from Stream.hsc with line numbers:</p> <pre><code> 82 import Foreign 83 ( Word8, Ptr, nullPtr, plusPtr, peekByteOff, pokeByteOff, mallocBy tes 84 , ForeignPtr, FinalizerPtr, newForeignPtr_, addForeignPtrFinalizer 85 , withForeignPtr, touchForeignPtr ) 86 #if MIN_VERSION_base(4,4,0) 87 import Foreign.ForeignPtr.Unsafe ( unsafeForeignPtrToPtr ) 88 import System.IO.Unsafe ( unsafePerformIO ) 89 #else 90 import Foreign ( unsafeForeignPtrToPtr, unsafePerformIO ) 91 #endif </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload