[Haskell-cafe] llvm on macos
Ozgur Akgun
ozgurakgun at gmail.com
Thu Aug 15 22:35:45 CEST 2013
Hi.
On 15 August 2013 20:35, Carter Schonwald <carter.schonwald at gmail.com>wrote:
> Just brew install llvm should work fine.
>
I wonder what makes you think this is the case.
At this moment in time, `brew install llvm` will install llvm-3.3.
Using llvm-3.3, I get warnings and errors. Using llvm-3.2, I get warnings
but I never got any errors. This is not to say that they cannot happen on
other packages.
I've just uninstalled 3.2, installed 3.3, and tried to compile a project of
mine. One of its dependencies, data-default-class, failed to compile.
The following is what happened on my computer.
Hope this helps,
Ozgur.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
$ cabal install --force-reinstalls --disable-documentation
--disable-library-profiling --disable-executable-profiling
--ghc-options="-fllvm" data-default-class
Resolving dependencies...
Configuring data-default-class-0.0.1...
Building data-default-class-0.0.1...
Preprocessing library data-default-class-0.0.1...
[1 of 1] Compiling Data.Default.Class ( Data/Default/Class.hs,
dist/build/Data/Default/Class.o )
You are using a new version of LLVM that hasn't been tested yet!
We will try though...
wrong initalizer for intrinsic global variable
[0 x i8*] undef
Broken module found, compilation aborted!
0 libLLVM-3.3.dylib 0x000000010223faee
llvm::sys::PrintStackTrace(__sFILE*) + 40
1 libLLVM-3.3.dylib 0x000000010223fef5 SignalHandler(int) + 241
2 libsystem_c.dylib 0x00007fff8601f94a _sigtramp + 26
3 libsystem_c.dylib 0x0000000102a10a00 _sigtramp + 2090799312
4 libLLVM-3.3.dylib 0x000000010223fd6d abort + 22
5 libLLVM-3.3.dylib 0x0000000101f08466 (anonymous
namespace)::Verifier::abortIfBroken() + 236
6 libLLVM-3.3.dylib 0x0000000101f07b97 (anonymous
namespace)::Verifier::doFinalization(llvm::Module&) + 3477
7 libLLVM-3.3.dylib 0x0000000101ef63a4
llvm::FPPassManager::doFinalization(llvm::Module&) + 56
8 libLLVM-3.3.dylib 0x0000000101ef5e52
llvm::FunctionPassManagerImpl::doFinalization(llvm::Module&) + 62
9 libLLVM-3.3.dylib 0x0000000101ef5d43
llvm::FunctionPassManager::doFinalization() + 21
10 opt 0x0000000101be19aa
std::vector<std::pair<llvm::BasicBlock*,
llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >,
std::allocator<std::pair<llvm::BasicBlock*,
llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::BasicBlock*,
llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >*,
std::vector<std::pair<llvm::BasicBlock*,
llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >,
std::allocator<std::pair<llvm::BasicBlock*,
llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > > > >,
std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*,
llvm::BasicBlock> > const&) + 6988
11 libdyld.dylib 0x00007fff8959c7e1 start + 0
12 libdyld.dylib 0x0000000000000006 start + 1990604837
Stack dump:
0. Program arguments: opt
/var/folders/h5/3mmbxydn5qs3w9f3j6mgmhsc0000gn/T/ghc11789_0/ghc11789_0.ll
-o
/var/folders/h5/3mmbxydn5qs3w9f3j6mgmhsc0000gn/T/ghc11789_0/ghc11789_0.bc
-O1 --enable-tbaa=true
llc:
/var/folders/h5/3mmbxydn5qs3w9f3j6mgmhsc0000gn/T/ghc11789_0/ghc11789_0.bc:
error: Could not open input file: No such file or directory
Failed to install data-default-class-0.0.1
cabal: Error: some packages failed to install:
data-default-class-0.0.1 failed during the building phase. The exception
was:
ExitFailure 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130815/ac62c845/attachment.htm>
More information about the Haskell-Cafe
mailing list