Created
April 18, 2014 06:19
-
-
Save startling/11027371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2$ cabal install libssh2 | |
Resolving dependencies... | |
Notice: installing into a sandbox located at | |
/Users/tim/Code/beholder/.cabal-sandbox | |
Configuring libssh2-0.2.0.1... | |
Building libssh2-0.2.0.1... | |
Failed to install libssh2-0.2.0.1 | |
Last 10 lines of the build log ( /Users/tim/Code/beholder/.cabal-sandbox/logs/libssh2-0.2.0.1.log ): | |
Building libssh2-0.2.0.1... | |
Preprocessing library libssh2-0.2.0.1... | |
c2hs: C header contains errors: | |
/usr/include/string.h:131: (column 90) [ERROR] >>> Syntax error ! | |
The symbol `=' does not fit here. | |
cabal: Error: some packages failed to install: | |
libssh2-0.2.0.1 failed during the building phase. The exception was: | |
ExitFailure 1 | |
bash-3.2$ cabal --version | |
cabal-install version 1.18.0.3 | |
using version 1.18.1.3 of the Cabal library | |
bash-3.2$ cabal --info | |
cabal: unrecognised command: --info (try --help) | |
bash-3.2$ ghc --version | |
The Glorious Glasgow Haskell Compilation System, version 7.8.20140130 | |
bash-3.2$ ghc --info | |
[("Project name","The Glorious Glasgow Haskell Compilation System") | |
,("GCC extra via C opts"," -fwrapv") | |
,("C compiler command","clang") | |
,("C compiler flags"," -m64 -fno-stack-protector") | |
,("C compiler link flags"," -m64") | |
,("ld command","/usr/local/Library/ENV/4.3/ld") | |
,("ld flags"," -arch x86_64") | |
,("ld supports compact unwind","YES") | |
,("ld supports build-id","NO") | |
,("ld supports filelist","YES") | |
,("ld is GNU ld","NO") | |
,("ar command","/usr/bin/ar") | |
,("ar flags","clqs") | |
,("ar supports at file","NO") | |
,("touch command","touch") | |
,("dllwrap command","/bin/false") | |
,("windres command","/bin/false") | |
,("libtool command","libtool") | |
,("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") | |
,("Unregisterised","NO") | |
,("LLVM llc command","llc") | |
,("LLVM opt command","opt") | |
,("Project version","7.8.20140130") | |
,("Booter version","7.8.20140130") | |
,("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","NO") | |
,("Have native code generator","YES") | |
,("Support SMP","YES") | |
,("Tables next to code","YES") | |
,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn") | |
,("Support dynamic-too","YES") | |
,("Support parallel --make","YES") | |
,("Dynamic by default","NO") | |
,("GHC Dynamic","YES") | |
,("Leading underscore","YES") | |
,("Debug on","False") | |
,("LibDir","/usr/local/Cellar/ghc/7.8.20140130/lib/ghc-7.8.20140130") | |
,("Global Package DB","/usr/local/Cellar/ghc/7.8.20140130/lib/ghc-7.8.20140130/package.conf.d") | |
] | |
bash-3.2$ gcc --version | |
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) | |
Target: x86_64-apple-darwin13.1.0 | |
Thread model: posix | |
bash-3.2$ gcc --info | |
clang: error: unsupported option '--info' | |
clang: error: no input files | |
bash-3.2$ c2hs --version | |
C->Haskell Compiler, version 0.17.1 Crystal Seed, 24 Jan 2009 | |
build platform is "x86_64-darwin" <1, True, True, 1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment