estoy usando una máquina virtual con la siguiente configuración:zlib con GHC
- Arch Linux (kernel 3.0-ARCH)
- GHC 7.0.3
- Cabal-instalar 0.10.2
- biblioteca Cabal 1.10.1.0
Cuando trato de instalar zlib usando Cabal ...
$ cabal install zlib
me sale el siguiente resultado:
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
¿Alguien puede arrojar algo de luz sobre este error de generación?
Editar: He aquí un fragmento de Stream.hsc con números de línea:
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
¡Gracias! La actualización de Stream.hsc como se sugirió resolvió el error. –
Hah, es gracioso, me encontré con el mismo problema hoy en día :) – Phyx
@Phyx solución adecuada, no debería tardar mucho en llegar a hackage. –