Chris Heller created THRIFT-2596:
------------------------------------
Summary: Cannot compile haskell thrift 0.6.0
Key: THRIFT-2596
URL: https://issues.apache.org/jira/browse/THRIFT-2596
Project: Thrift
Issue Type: Bug
Components: Haskell - Library
Environment: $ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
$ ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv")
,("C compiler command","/usr/bin/ghc-clang-wrapper")
,("C compiler flags"," -m64 -fno-stack-protector -m64")
,("ar command","/usr/bin/ar")
,("ar flags","clqs")
,("ar supports at file","@ArSupportsAtFile@")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("perl command","/usr/bin/perl")
,("target os","OSDarwin")
,("target arch","ArchX86_64")
,("target word size","8")
,("target has GNU nonexec stack","False")
,("target has .ident directive","True")
,("target has subsections via symbols","True")
,("LLVM llc command","llc")
,("LLVM opt command","opt")
,("Project version","7.6.3")
,("Booter version","7.4.2")
,("Stage","2")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","x86_64-apple-darwin")
,("Have interpreter","YES")
,("Object splitting supported","YES")
,("Have native code generator","YES")
,("Support SMP","YES")
,("Unregisterised","NO")
,("Tables next to code","YES")
,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
thr_debug_dyn")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3")
,("Global Package
DB","/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/package.conf.d")
,("Gcc Linker flags","[\"-m64\"]")
,("Ld Linker flags","[\"-arch\",\"x86_64\"]")
]
$ cabal install thrift
Resolving dependencies...
Configuring thrift-0.6.0...
/var/folders/df/fyg_wlr14d904qx79q07fl_40012ss/T/71895.c:1:12:
warning: control reaches end of non-void function [-Wreturn-type]
int foo() {}
^
1 warning generated.
Building thrift-0.6.0...
Preprocessing library thrift-0.6.0...
[1 of 7] Compiling Thrift.Transport ( src/Thrift/Transport.hs,
dist/build/Thrift/Transport.o )
[2 of 7] Compiling Thrift.Protocol ( src/Thrift/Protocol.hs,
dist/build/Thrift/Protocol.o )
[3 of 7] Compiling Thrift.Protocol.Binary ( src/Thrift/Protocol/Binary.hs,
dist/build/Thrift/Protocol/Binary.o )
[4 of 7] Compiling Thrift.Transport.Handle ( src/Thrift/Transport/Handle.hs,
dist/build/Thrift/Transport/Handle.o )
src/Thrift/Transport/Handle.hs:46:32: Not in scope: `catch'
Failed to install thrift-0.6.0
cabal: Error: some packages failed to install:
thrift-0.6.0 failed during the building phase. The exception was:
ExitFailure 1
Reporter: Chris Heller
It seems that with GHC 7.6.1 {{catch}} has been removed from {{Prelude}} (see
http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/release-7-6-1.html), and
so now it must be imported from {{Control.Exception}} just like {{throw}} is
being imported.
--
This message was sent by Atlassian JIRA
(v6.2#6252)