[LLVMbugs] [Bug 3704] New: llvm-ld release built can' t correctly link bc which contains debug information

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 2 20:16:54 PST 2009


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

           Summary: llvm-ld release built can't correctly link bc which
                    contains debug information
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dodohack at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2644)
 --> (http://llvm.org/bugs/attachment.cgi?id=2644)
2 llvm IR

the debug built of llvm can link 2 bc with debug information correctly.
but the release built of llvm can't do it correctly.

llvm is built with gcc 4.2 
and llvm is  2.5 prerelease version.

the attached file is 2 llvm IR which will cause these error message:

[hwalin at earth temp]$ /temp/llvm-2.5-obj/Release/bin/llvm-ld  environ.bc util.bc 
Value still in symbol table! Type = '{  } *' Name = 'c3'
Value still in symbol table! Type = 'i32 *' Name = 'a'
Value still in symbol table! Type = 'i32 *' Name = 'b'
Value still in symbol table! Type = 'i32 *' Name = 'c'
Value still in symbol table! Type = 'i32' Name = 'alloca point'
Value still in symbol table! Type = '{  } *' Name = 'argv'
Value still in symbol table! Type = 'i8 * * *' Name = 'argv_addr'
Value still in symbol table! Type = 'i32' Name = 'retval10'
Value still in symbol table! Type = '{  } *' Name = 'argc'
Value still in symbol table! Type = 'i32 *' Name = 'retval'
Value still in symbol table! Type = '{  } *' Name = 'a5'
Value still in symbol table! Type = '{  } *' Name = 'b4'
Value still in symbol table! Type = 'i32 *' Name = 'argc_addr'
llvm-ld: /temp/llvm-2.5/lib/VMCore/ValueSymbolTable.cpp:29:
llvm::ValueSymbolTable::~ValueSymbolTable(): Assertion `vmap.empty() && "Values
remain in symbol table!"' failed.
0   llvm-ld   0x0834c8a7
1   libc.so.6 0x00baff91 abort + 257
2   libc.so.6 0x00ba793e __assert_fail + 238
3   llvm-ld   0x082eeb6a
已放弃
[hwalin at earth temp]$


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