[LLVMbugs] [Bug 4875] New: llmv-ld is not able to link libprofile in debug mode.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Sep 3 07:11:31 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4875
Summary: llmv-ld is not able to link libprofile in debug mode.
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: astifter-llvm at gmx.at
CC: llvmbugs at cs.uiuc.edu, astifter-llvm at gmx.at
When llvm is compiled with debugging enabled, then I get the following error
during linking the libprofile:
make[1]: Entering directory
`/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile'
llvm[1]: Building Debug Bytecode Archive libprofile_rt.bca (internalize)
0 llvm-ld 0x0000000000974854
1 llvm-ld 0x0000000000974db3
2 libpthread.so.0 0x00002aaaaacd6a80
3 llvm-ld 0x00000000006b68de llvm::Value::getValueID() const + 12
4 llvm-ld 0x00000000006b68fc bool llvm::isa_impl<llvm::Constant,
llvm::Value>(llvm::Value const&) + 21
5 llvm-ld 0x00000000006ba616 llvm::isa_impl_wrap<llvm::Constant,
llvm::Value const, llvm::Value const>::doit(llvm::Value const&) + 21
6 llvm-ld 0x00000000006ba62d bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::Constant>(llvm::Value const&) + 21
7 llvm-ld 0x00000000006ba644 bool llvm::isa_impl_cl<llvm::Value
const>::isa<llvm::Constant>(llvm::Value const&) + 21
8 llvm-ld 0x00000000006ba65b bool llvm::isa_impl_cl<llvm::Value
const*>::isa<llvm::Constant>(llvm::Value const*) + 21
9 llvm-ld 0x00000000006ba675 bool llvm::isa<llvm::Constant,
llvm::Value const*>(llvm::Value const* const&) + 24
10 llvm-ld 0x00000000006cb39f llvm::cast_retty<llvm::Constant,
llvm::Value const*>::ret_type llvm::dyn_cast<llvm::Constant, llvm::Value
const*>(llvm::Value const* const&) + 21
11 llvm-ld 0x00000000006d067a
12 llvm-ld 0x00000000006d0bd5
13 llvm-ld 0x00000000006d0bd5
14 llvm-ld 0x00000000006d1056
15 llvm-ld 0x00000000006d1210
16 llvm-ld 0x00000000006d4c51 llvm::Linker::LinkModules(llvm::Module*,
llvm::Module*, std::string*) + 1897
17 llvm-ld 0x00000000006ceff5
llvm::Linker::LinkInModule(llvm::Module*, std::string*) + 41
18 llvm-ld 0x00000000006ce56b llvm::Linker::LinkInFile(llvm::sys::Path
const&, bool&) + 1431
19 llvm-ld 0x00000000006cebf6
llvm::Linker::LinkInItems(std::vector<std::pair<std::string, bool>,
std::allocator<std::pair<std::string, bool> > > const&,
std::vector<std::pair<std::string, bool>, std::allocator<std::pair<std::string,
bool> > >&) + 258
20 llvm-ld 0x00000000006a95c0 main + 1349
21 libc.so.6 0x00002aaaabaaf1a6 __libc_start_main + 230
22 llvm-ld 0x00000000006a05a9 __gxx_personality_v0 + 681
Stack dump:
0. Program arguments:
/localtmp/astifter/llvm/llvm-svn-debug-obj/Debug/bin/llvm-ld
-L/localtmp/astifter/llvm/llvm-van-install/bin/../lib
-internalize-public-api-file=/localtmp/astifter/llvm/llvm-svn/runtime/libprofile/exported_symbols.lst
-o
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/profile_rt.internalize
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/BasicBlockTracing.bc
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/BlockProfiling.bc
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/CommonProfiling.bc
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/EdgeProfiling.bc
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/FunctionProfiling.bc
/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile/Debug/OptimalEdgeProfiling.bc
make[1]: ***
[/localtmp/astifter/llvm/llvm-svn-debug-obj/Debug/lib/libprofile_rt.bca]
Segmentation fault
make[1]: Leaving directory
`/localtmp/astifter/llvm/llvm-svn-debug-obj/runtime/libprofile'
The system is "Linux 2.6.25-2-amd64 #1 SMP Mon Jul 14 11:05:23 UTC 2008 x86_64
GNU/Linux" with (almost) latest trunk llvm and llvm-gcc.
Andi
--
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