[LLVMbugs] [Bug 6735] New: Cannot split an edge from an IndirectBrInst failed (llvm with clang compiling gambit-c)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 29 00:54:58 PDT 2010


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

           Summary: Cannot split an edge from an IndirectBrInst failed
                    (llvm with clang compiling gambit-c)
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: prhlava at gmail.com
                CC: llvmbugs at cs.uiuc.edu


When compiling gambit-c version 4.6.0 (scheme to C compiler),

http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_0-devel.tgz

(the "devel" above means - it is sources, not a development version)

with llvm and clang, it fails with the following:

making all in gsc
make[1]: Entering directory `/data/vladimir/tmp/gambc-v4_6_0-devel/gsc'
/home/vladimir/opt/llvm/svn/bin/clang -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv
-fomit-frame-pointer -fPIC -fno-common -mieee -mieee-with-inexact -mieee-fp  
-I"../include" -c -o "_t-c-2.o" -I. -DHAVE_CONFIG_H _t-c-2.c -D___LIBRARY
clang:
/data/vladimir/tmp/llvm.svn/lib/Transforms/Utils/BasicBlockUtils.cpp:400:
llvm::BasicBlock* llvm::SplitBlockPredecessors(llvm::BasicBlock*,
llvm::BasicBlock* const*, unsigned int, const char*, llvm::Pass*): Assertion
`!isa<IndirectBrInst>(Preds[i]->getTerminator()) && "Cannot split an edge from
an IndirectBrInst"' failed.
0  clang           0x00000000014518da
1  clang           0x00000000014517c1
2  libpthread.so.0 0x00002b41b147def0
3  libc.so.6       0x00002b41b206efd5 gsignal + 53
4  libc.so.6       0x00002b41b20703f0 abort + 384
5  libc.so.6       0x00002b41b2068081 __assert_fail + 241
6  clang           0x000000000120425d
7  clang           0x0000000001137dd6
8  clang           0x0000000001137074
9  clang           0x0000000001134eed
10 clang           0x00000000013b8f95
11 clang           0x000000000124d7c1
12 clang           0x000000000124e4f3
13 clang           0x00000000013b94e1
14 clang           0x00000000013b9a33
15 clang           0x00000000013b9d3b
16 clang           0x000000000041b1d1
17 clang           0x000000000041a0ab
18 clang           0x0000000000692a4b
19 clang           0x0000000000435cd6
20 clang           0x0000000000435940
21 clang           0x000000000041fb0d
22 clang           0x0000000000408d23
23 clang           0x000000000040d9b6 main + 244
24 libc.so.6       0x00002b41b205bb6d __libc_start_main + 253
25 clang           0x0000000000407849
Stack dump:
0.      Program arguments: /home/vladimir/opt/llvm/svn/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name _t-c-2.c -pic-level 2
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir
/home/vladimir/opt/llvm/svn/lib/clang/1.5 -DHAVE_CONFIG_H -D___LIBRARY
-I../include -I. -O1 -Wno-unused -fmessage-length 80 -fgnu-runtime -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-g6p8M6.s -x c _t-c-2.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module '_t-c-2.c'.
4.      Running pass 'Jump Threading' on function
'@___H_c_23_targ_2d_setup_2d_simplifiers'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
make[1]: *** [_t-c-2.o] Error 250
make[1]: Leaving directory `/data/vladimir/tmp/gambc-v4_6_0-devel/gsc'
make: *** [all-recursive] Error 1

The gambit-c was configured with: CC=/path/to/llvm ./configure
--prefix=/path/to/result

(no other options were set)

The platform is 64 bit ArchLinux: 

Linux tron 2.6.32-1kHz #1 SMP PREEMPT Thu Mar 18 19:52:28 GMT 2010 x86_64 AMD
Phenom(tm) II X4 810 Processor AuthenticAMD GNU/Linux

The gcc used to compile llvm (and clang):

gcc (GCC) 4.4.3 20100316 (prerelease)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
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