Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7707831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:27:35+00:00 2026-06-01T00:27:35+00:00

While trying to compile an LLVM IR, like this llc main.ll -o main.s &&

  • 0

While trying to compile an LLVM IR, like this

 llc main.ll -o main.s && g++ main.s -O3 -o main -pthread

I get the following error. The same thing compiles on my Ubuntu 10 system, but in the CentOS I get the following error. Any idea what is going on here and why LLVM is going mad? And lastly, how to solve this?

llc: /home/schism/llvm/include/llvm/ADT/IntervalMap.h:606: unsigned int llvm::IntervalMapImpl::LeafNode< <template-parameter-1-1>, <template-parameter-1-2>, <anonymous>, <template-parameter-1-4> >::insertFrom(unsigned int&, unsigned int, KeyT, KeyT, ValT) [with KeyT = llvm::SlotIndex, ValT = unsigned int, unsigned int N = 9u, Traits = llvm::IntervalMapInfo<llvm::SlotIndex>]: Assertion `!Traits::stopLess(b, a) && "Invalid interval"' failed.
0  llc             0x0000000000d5009f
1  llc             0x0000000000d50db7
2  libpthread.so.0 0x0000003cfde0ebe0
3  libc.so.6       0x0000003cfce30285 gsignal + 53
4  libc.so.6       0x0000003cfce31d30 abort + 272
5  libc.so.6       0x0000003cfce29706 __assert_fail + 246
6  llc             0x000000000093624c llvm::IntervalMapImpl::LeafNode<llvm::SlotIndex, unsigned int, 9u, llvm::IntervalMapInfo<llvm::SlotIndex> >::insertFrom(unsigned int&, unsigned int, llvm::SlotIndex, llvm::SlotIndex, unsigned int) + 716
7  llc             0x0000000000936a00
8  llc             0x0000000000929898 llvm::SplitEditor::useIntv(llvm::SlotIndex, llvm::SlotIndex) + 88
9  llc             0x000000000092f369 llvm::SplitEditor::splitRegInBlock(llvm::SplitAnalysis::BlockInfo const&, unsigned int, llvm::SlotIndex) + 1513
10 llc             0x00000000008c20ea
11 llc             0x00000000008c3c78
12 llc             0x00000000008c90d1
13 llc             0x00000000008c95ab
14 llc             0x0000000000a06c84 llvm::RegAllocBase::allocatePhysRegs() + 324
15 llc             0x00000000008c4edc
16 llc             0x0000000000880005 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53
17 llc             0x0000000000ce4c66 llvm::FPPassManager::runOnFunction(llvm::Function&) + 646
18 llc             0x0000000000ce4cfd llvm::FPPassManager::runOnModule(llvm::Module&) + 45
19 llc             0x0000000000ce641c llvm::MPPassManager::runOnModule(llvm::Module&) + 556
20 llc             0x0000000000ce657e llvm::PassManagerImpl::run(llvm::Module&) + 174
21 llc             0x0000000000ce66dd llvm::PassManager::run(llvm::Module&) + 13
22 llc             0x00000000004d0f1b main + 5451
23 libc.so.6       0x0000003cfce1d994 __libc_start_main + 244
24 llc             0x00000000004ce8e9
Stack dump:
0.      Program arguments: llc main.ll -o main.s
1.      Running pass 'Function Pass Manager' on module 'main.ll'.
2.      Running pass 'Greedy Register Allocator' on function '@_Z7InitSimPKcj'
Aborted
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:27:36+00:00Added an answer on June 1, 2026 at 12:27 am

    Looks like LLVM is miscompiled by your system compiler. See http://llvm.org/docs/GettingStarted.html#brokengcc for a list of known broken compilers.

    The solution is simple – use other version of the compiler (gcc in your case) to compile LLVM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this solitary error while trying to compile the following code in code::blocks.
I get following error with following Objective-C code, while trying to compile it with
I got this error while trying to compile the below code. I would like
I keep getting this writing to a closed file error while trying to compile
Am getting this compiler error while trying to compile an VS 6 VC++ code.
Getting this error while I am trying to run /compile/build a Proiject Incompatible Types
Getting this error while trying to compile a copied code from a Fortran 77
While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal
while trying to compile the following code in OpenCV2 in linux, cv::Mat image1, image2;
While trying to port some code to compile in linux I get peculiar compilation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.