[LLVMbugs] [Bug 4675] New: lli: symbol lookup error: /usr/lib/oprofile/libopagent.so.1 : undefined symbol: bfd_init
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Aug 2 14:38:13 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4675
Summary: lli: symbol lookup error:
/usr/lib/oprofile/libopagent.so.1: undefined symbol:
bfd_init
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu, jyasskin at google.com
The JIT's not working. Here's a sample of trying to run it on the 'hello world'
program:
$ llvm-commit/Debug/bin/lli hello.bc
llvm-commit/Debug/bin/lli: symbol lookup error:
/usr/lib/oprofile/libopagent.so.1: undefined symbol: bfd_init
I don't see how libopagent.so.1 requires "bfd_init".
$ ldd /usr/lib/oprofile/libopagent.so.1
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xf7f44000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xf7de6000)
/lib/ld-linux.so.2 (0xf7f86000)
$ nm /usr/lib/oprofile/libopagent.so.1 | grep bfd
nm: /usr/lib/oprofile/libopagent.so.1: no symbols
Here's how lli was built:
make[2]: Entering directory `/home/nicholas/llvm-commit/tools/lli'
llvm[2]: Linking Debug executable lli
g++-4.4 -I/home/nicholas/llvm-commit/include
-I/home/nicholas/llvm-commit/tools/lli -D_DEBUG -D_GNU_SOURCE
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fPIC
-Woverloaded-virtual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -g -Wl,-R -Wl,/home/nicholas/llvm-commit/Debug/bin
-Wl,-export-dynamic -L/home/nicholas/llvm-commit/Debug/lib
-L/home/nicholas/llvm-commit/Debug/lib -o
/home/nicholas/llvm-commit/Debug/bin/lli
/home/nicholas/llvm-commit/tools/lli/Debug/lli.o \
-lLLVMBitReader -lLLVMX86CodeGen -lLLVMX86Info -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMInterpreter -lLLVMJIT -lLLVMExecutionEngine
-lLLVMCodeGen -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis
-lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem -lopagent
-lpthread -lffi -ldl -lm -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile
llvm[2]: ======= Finished Linking Debug Executable lli
make[2]: Leaving directory `/home/nicholas/llvm-commit/tools/lli'
Here's what the loader thinks about how lli was linked:
$ ldd Debug/bin/lli
linux-gate.so.1 => (0xffffe000)
libopagent.so.1 => /usr/lib/oprofile/libopagent.so.1 (0xf7f37000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xf7ee5000)
libffi.so.5 => /usr/lib/libffi.so.5 (0xf7ede000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xf7eda000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf7dea000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xf7dc4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7d99000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xf7c3b000)
/lib/ld-linux.so.2 (0xf7f3c000)
--
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