Assertion when loading bitcode

I am using GCC 4.3.2 ( Debian 4.3.2-1.1) on x86. I will try out a different compiler.

I tried out Sourcery G++ Lite 2009q1-203 (GCC 4.3.3). I still can’t get lli to run. This time the error is like this:

0 lli 0x00651128
1 lli 0x00651960
2 libc.so.6 0x40212600 __default_sa_restorer_v1 + 0
3 lli 0x00282ef0
4 lli 0x00283cec llvm::SelectionDAG::LegalizeTypes() + 608
5 lli 0x00233a10 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2944
6 lli 0x0023459c llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*, llvm::ilist_iteratorllvm::Instruction, llvm::ilist_iteratorllvm::Instruction, bool&) + 352
7 lli 0x00236960 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&, llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*, llvm::TargetInstrInfo const&) + 780
8 lli 0x00237c4c llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 416
9 lli 0x0035ce3c llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 52
10 lli 0x005d979c llvm::FPPassManager::runOnFunction(llvm::Function&) + 512
11 lli 0x005d9934 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 100
12 lli 0x005d9b9c llvm::FunctionPassManager::run(llvm::Function&) + 108
13 lli 0x00306e7c llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) + 44
14 lli 0x00307a40 llvm::JIT::getPointerToFunction(llvm::Function*) + 452
15 lli 0x00308d34 llvm::JIT::runFunction(llvm::Function*, std::vector<llvm::GenericValue, std::allocatorllvm::GenericValue > const&) + 68
16 lli 0x00322330 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::vector<std::string, std::allocatorstd::string > const&, char const* const*) + 364
17 lli 0x000ebaf8 main + 1488
18 libc.so.6 0x401fbfd4 __libc_start_main + 288
Stack dump:
0. Program arguments: /arm-linux-2.7/bin/lli -march=arm /twofunctions.bc

  1. Running pass ‘ARM Instruction Selection’ on function ‘@main
    Segmentation fault

How do I make this go away? Please could someone point in the right direction.

Thanks

Hi,

>>>>> I am using GCC 4.3.2 ( Debian 4.3.2-1.1) on x86. I will try out a
different compiler.

I tried out Sourcery G++ Lite 2009q1-203 (GCC 4.3.3). I still can't get
lli to run. This time the error is like this:

if the problem is due to a compiler bug, then you should try a very
different compiler version, for example gcc 4.2 or 4.4.

Ciao,

Duncan.

If it's _not_ a gcc miscompilation, you'll need to attach the .bc file
that's crashing lli so someone with an ARM llvm build can try to
reproduce your problem. You'd also need the exact lli command line
you're using, but I see that at the bottom of your crash dump.