[LLVMbugs] [Bug 11639] Trunk clang on Redhat Linux configured with --enable-optimized --with-c-include-dirs=/usr/include:/usr/include/c++/4.1.1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 18 22:23:27 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=11639

Benjamin Dobell <benjamin.dobell+llvm at glassechidna.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |benjamin.dobell+llvm at glasse
                   |                            |chidna.com.au
         Resolution|INVALID                     |

--- Comment #6 from Benjamin Dobell <benjamin.dobell+llvm at glassechidna.com.au> 2012-03-19 00:23:27 CDT ---
This issue still seems to occur with GCC 4.4.4, output as follows:

make[4]: Entering directory
`/root/development/build/tools/clang/runtime/compiler-rt'
make[5]: Entering directory `/root/development/llvm/projects/compiler-rt'
  COMPILE:   clang_linux/full-i386/i386:
/root/development/llvm/projects/compiler-rt/lib/adddf3.c
clang: /root/development/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  clang           0x000000000236e60f
1  clang           0x000000000236f327
2  libpthread.so.0 0x00002ab265226b70
3  libc.so.6       0x00002ab265dfa265 gsignal + 53
4  libc.so.6       0x00002ab265dfbd10 abort + 272
5  libc.so.6       0x00002ab265df36e6 __assert_fail + 246
6  clang           0x0000000001df17ac
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  clang           0x0000000001df1f6e
8  clang           0x0000000001de2a3a
llvm::SplitEditor::useIntv(llvm::SlotIndex, llvm::SlotIndex) + 90
9  clang           0x0000000001deb12a
llvm::SplitEditor::splitRegInBlock(llvm::SplitAnalysis::BlockInfo const&,
unsigned int, llvm::SlotIndex) + 1546
10 clang           0x0000000001d9c27a
11 clang           0x0000000001d9ddfc
12 clang           0x0000000001da3271
13 clang           0x0000000001da374b
14 clang           0x0000000001ea5c14 llvm::RegAllocBase::allocatePhysRegs() +
324
15 clang           0x0000000001d9f06c
16 clang           0x0000000001d4f035
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53
17 clang           0x00000000022fc7b6
llvm::FPPassManager::runOnFunction(llvm::Function&) + 646
18 clang           0x00000000022fc84d
llvm::FPPassManager::runOnModule(llvm::Module&) + 45
19 clang           0x00000000022fdf6c
llvm::MPPassManager::runOnModule(llvm::Module&) + 556
20 clang           0x00000000022fe0ce llvm::PassManagerImpl::run(llvm::Module&)
+ 174
21 clang           0x00000000022fe22d llvm::PassManager::run(llvm::Module&) +
13
22 clang           0x0000000000817f7c
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1388
23 clang           0x0000000000815523
24 clang           0x00000000009cabe4 clang::ParseAST(clang::Sema&, bool) + 484
25 clang           0x00000000008136f2 clang::CodeGenAction::ExecuteAction() +
66
26 clang           0x0000000000668954
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 324
27 clang           0x000000000064858e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1166
28 clang           0x000000000063f2ef cc1_main(char const**, char const**, char
const*, void*) + 1535
29 clang           0x0000000000647406 main + 4054
30 libc.so.6       0x00002ab265de7994 __libc_start_main + 244
31 clang           0x000000000063cc39
Stack dump:
0.    Program arguments: /root/development/build/Release+Asserts/bin/clang -cc1
-triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name adddf3.c
-pic-level 2 -masm-verbose -mconstructor-aliases -target-cpu pentium4
-momit-leaf-frame-pointer -coverage-file
/root/development/build/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/adddf3.o
-resource-dir /root/development/build/Release+Asserts/bin/../lib/clang/3.1
-isysroot /root/development/llvm/projects/compiler-rt/SDKs/linux
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/root/development/llvm/projects/compiler-rt/SDKs/linux/usr/local/include
-internal-isystem
/root/development/build/Release+Asserts/bin/../lib/clang/3.1/include
-internal-externc-isystem
/root/development/llvm/projects/compiler-rt/SDKs/linux/include
-internal-externc-isystem
/root/development/llvm/projects/compiler-rt/SDKs/linux/usr/include -O3 -Wall
-Werror -fdebug-compilation-dir
/root/development/build/tools/clang/runtime/compiler-rt -ferror-limit 19
-fmessage-length 233 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o
/root/development/build/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/adddf3.o
-x c /root/development/llvm/projects/compiler-rt/lib/adddf3.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/root/development/llvm/projects/compiler-rt/lib/adddf3.c'.
4.    Running pass 'Greedy Register Allocator' on function '@__adddf3'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/adddf3-dEFzIj.i
clang: note: diagnostic msg: /tmp/adddf3-dEFzIj.sh
make[5]: ***
[/root/development/build/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/adddf3.o]
Error 254
make[5]: Leaving directory `/root/development/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/root/development/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory `/root/development/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/root/development/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/root/development/build/tools'
make: *** [all] Error 1
[root at somehost build]# gcc --version
gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) 


Will try non-optimized build and report back.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list