This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
systemtap build errors on ppc64
- From: Hien Nguyen <hien at us dot ibm dot com>
- To: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Tue, 06 Sep 2005 14:38:12 -0700
- Subject: systemtap build errors on ppc64
I had problem building systemtap on ppc64 (RHEL4 update2 beta3).
After doing the 'yum update elfutils' have my elfutils up to date.
[root@elm3b90 ~]# rpm -qa | grep elfutils
elfutils-0.115-0.2
elfutils-devel-0.115-0.2
elfutils-libs-0.115-0.2
elfutils-libelf-devel-0.115-0.2
elfutils-libelf-0.115-0.2
elfutils-libelf-0.115-0.2
Here's the compiler's errors when building systemtap (./configure
finished without error)
if gcc -DHAVE_CONFIG_H -I. -I. -I.
-DPKGLIBDIR='"/usr/local/libexec/systemtap"'
-DPKGDATADIR='"/usr/local/share/systemtap"' -std=gnu99 -D_GNU_SOURCE
-Wall -Werror -Wshadow -Wunused -Wformat=2 -W -g -O2 -MT loc2c.o -MD -MP
-MF ".deps/loc2c.Tpo" -c -o loc2c.o loc2c.c; \
then mv -f ".deps/loc2c.Tpo" ".deps/loc2c.Po"; else rm -f
".deps/loc2c.Tpo"; exit 1; fi
g++ -Wall -g -O2 -o stap stap-main.o stap-parse.o stap-staptree.o
stap-elaborate.o stap-translate.o stap-tapsets.o stap-buildrun.o loc2c.o
-ldw
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_begin.o)(.text+0x1cc):
In function `dwfl_begin':
: undefined reference to `elf_version'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_error.o)(.text+0x3d8):
In function `dwfl_errmsg':
: undefined reference to `elf_errmsg'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_error.o)(.text+0x478):
In function `canonicalize':
: undefined reference to `elf_errno'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module.o)(.text+0x2cc):
In function `__libdwfl_module_free':
: undefined reference to `elf_end'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module.o)(.text+0x2d4):
In function `__libdwfl_module_free':
: undefined reference to `elf_end'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module.o)(.text+0x2e0):
In function `__libdwfl_module_free':
: undefined reference to `ebl_closebackend'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x2a4):
In function `find_debuginfo':
: undefined reference to `elf_getshstrndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x2bc):
In function `find_debuginfo':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x2dc):
In function `find_debuginfo':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x2f4):
In function `find_debuginfo':
: undefined reference to `elf_strptr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x318):
In function `find_debuginfo':
: undefined reference to `elf_nextscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x33c):
In function `find_debuginfo':
: undefined reference to `elf_rawdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x3e4):
In function `find_debuginfo':
: undefined reference to `gelf_getehdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x408):
In function `find_debuginfo':
: undefined reference to `gelf_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x4f0):
In function `load_symtab':
: undefined reference to `elf_nextscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x504):
In function `load_symtab':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x6e4):
In function `find_symtab':
: undefined reference to `elf_strptr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x6f0):
In function `find_symtab':
: undefined reference to `elf_errno'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x70c):
In function `find_symtab':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x714):
In function `find_symtab':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x73c):
In function `find_symtab':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x754):
In function `find_symtab':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x840):
In function `load_dw':
: undefined reference to `ebl_openbackend'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x890):
In function `load_dw':
: undefined reference to `elf_cntl'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0x8b0):
In function `load_dw':
: undefined reference to `elf_cntl'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xb54):
In function `dwfl_module_addrname':
: undefined reference to `gelf_getsymshndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xc84):
In function `dwfl_module_addrname':
: undefined reference to `elf_getshstrndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xcf4):
In function `open_elf':
: undefined reference to `elf_begin'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xd00):
In function `open_elf':
: undefined reference to `gelf_getehdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xd4c):
In function `open_elf':
: undefined reference to `gelf_getphdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_module_getdwarf.o)(.text+0xde4):
In function `open_elf':
: undefined reference to `elf_errno'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0x35c):
In function `elf_from_remote_memory':
: undefined reference to `elf32_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0x47c):
In function `elf_from_remote_memory':
: undefined reference to `elf32_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0x5a0):
In function `elf_from_remote_memory':
: undefined reference to `elf32_xlatetof'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0x5bc):
In function `elf_from_remote_memory':
: undefined reference to `elf_memory'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0x9b0):
In function `elf_from_remote_memory':
: undefined reference to `elf32_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(elf-from-memory.o)(.text+0xb5c):
In function `elf_from_remote_memory':
: undefined reference to `elf32_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x38):
In function `check_section':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x74):
In function `check_section':
: undefined reference to `elf_strptr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0xfc):
In function `check_section':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x1a8):
In function `global_read':
: undefined reference to `elf_nextscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x22c):
In function `scngrp_read':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x260):
In function `scngrp_read':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x314):
In function `dwarf_begin_elf':
: undefined reference to `gelf_getehdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_begin_elf.o)(.text+0x420):
In function `dwarf_begin_elf':
: undefined reference to `elf_kind'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwarf_end.o)(.text+0xc0):
In function `dwarf_end':
: undefined reference to `elf_end'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x238):
In function `dwfl_report_elf':
: undefined reference to `elf_begin'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x244):
In function `dwfl_report_elf':
: undefined reference to `gelf_getehdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x2ac):
In function `dwfl_report_elf':
: undefined reference to `gelf_getphdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x300):
In function `dwfl_report_elf':
: undefined reference to `gelf_getphdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x378):
In function `dwfl_report_elf':
: undefined reference to `elf_end'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x41c):
In function `dwfl_report_elf':
: undefined reference to `elf_end'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x548):
In function `dwfl_report_elf':
: undefined reference to `elf_nextscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x55c):
In function `dwfl_report_elf':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(dwfl_report_elf.o)(.text+0x5f8):
In function `dwfl_report_elf':
: undefined reference to `gelf_update_shdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x1f0):
In function `__libdwfl_relocate_value':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x1fc):
In function `__libdwfl_relocate_value':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x298):
In function `__libdwfl_relocate_value':
: undefined reference to `elf_strptr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x33c):
In function `__libdwfl_relocate_value':
: undefined reference to `gelf_update_shdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x3b0):
In function `relocate.0':
: undefined reference to `ebl_reloc_simple_type'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x528):
In function `relocate.0':
: undefined reference to `gelf_xlatetof'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x5c0):
In function `relocate.0':
: undefined reference to `gelf_xlatetom'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x6a4):
In function `relocate.0':
: undefined reference to `gelf_getsymshndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x774):
In function `__libdwfl_relocate':
: undefined reference to `gelf_getehdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x7c4):
In function `__libdwfl_relocate':
: undefined reference to `elf_getshstrndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x7f0):
In function `__libdwfl_relocate':
: undefined reference to `elf_getshstrndx'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x810):
In function `__libdwfl_relocate':
: undefined reference to `elf_nextscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x824):
In function `__libdwfl_relocate':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x858):
In function `__libdwfl_relocate':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x86c):
In function `__libdwfl_relocate':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x87c):
In function `__libdwfl_relocate':
: undefined reference to `elf_strptr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x894):
In function `__libdwfl_relocate':
: undefined reference to `ebl_debugscn_p'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x8a8):
In function `__libdwfl_relocate':
: undefined reference to `elf_rawdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x8c0):
In function `__libdwfl_relocate':
: undefined reference to `elf_getdata'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x934):
In function `__libdwfl_relocate':
: undefined reference to `gelf_getrela'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(relocate.o)(.text+0x9c0):
In function `__libdwfl_relocate':
: undefined reference to `gelf_getrel'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(offline.o)(.text+0x1dc):
In function `dwfl_offline_section_address':
: undefined reference to `elf_getscn'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(offline.o)(.text+0x1e4):
In function `dwfl_offline_section_address':
: undefined reference to `gelf_getshdr'
/usr/lib/gcc/ppc64-redhat-linux/3.4.4/../../../../lib/libdw.a(offline.o)(.text+0x3a8):
In function `dwfl_report_offline':
: undefined reference to `elf_cntl'
collect2: ld returned 1 exit status
make[1]: *** [stap] Error 1
make[1]: Leaving directory `/root/systemtap/src'
make: *** [all] Error 2