gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/local/systemtap/share/locale"' -DIS_LIBDW -I. -I../../../../elfutils-0.157/libdw -I.. -I. -I../../../../elfutils-0.157/libdw -I../../../../elfutils-0.157/lib -I.. -I../../../../elfutils-0.157/libdw/../libelf -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -g -O2 -D_BSD_SOURCE -fstack-protector-all -D_FORTIFY_SOURCE=2 -fgnu89-inline -fexceptions -MT dwarf_begin_elf.o -MD -MP -MF .deps/dwarf_begin_elf.Tpo -c -o dwarf_begin_elf.o ../../../../elfutils-0.157/libdw/dwarf_begin_elf.c
cc1: warnings being treated as errors
../../../../elfutils-0.157/libdw/dwarf_begin_elf.c: In function ‘check_section’:
../../../../elfutils-0.157/libdw/dwarf_begin_elf.c:282: warning: implicit declaration of function ‘be64toh’
make[4]: *** [dwarf_begin_elf.o] Error 1
make[4]: Leaving directory `/data/2/systemtap/build-elfutils/libdw'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/data/2/systemtap/build-elfutils/libdw'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/2/systemtap/build-elfutils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/2/systemtap/build-elfutils'
make: *** [stamp-elfutils] Error 2
而systemtap2.5+elfutils1.50不会出现这个问题,
但是1.50安装好后使用的时候会出现
./sample-bt-off-cpu -p 8467 -t 5 >
11.btstap: /data/elfutils-0.150/libdwfl/derelocate.c:243: dwfl_module_relocations: Assertion `mod->debug.address_sync == mod->main.address_sync' failed.
在 2014年5月13日星期二UTC+8下午12时16分55秒,周李洋写道:
HI 章老师,
我在使用sample-bt-off-cpu过程中遇到了这样的一个问题
./sample-bt-off-cpu -p 8467 -t 5 >
11.btstap: /data/elfutils-0.150/libdwfl/derelocate.c:243: dwfl_module_relocations: Assertion `mod->debug.address_sync == mod->main.address_sync' failed.
./sample-bt-off-cpu -p 8467 -t 5 -a '-vw'>
11.bt的结果为
Pass 1: parsed user script and 102 library script(s) using 106704virt/26152res/2116shr/24820data kb, in 370usr/10sys/383real ms.
Pass 2: analyzed script: 5 probe(s), 13 function(s), 5 embed(s), 4 global(s) using 128912virt/49488res/3156shr/47028data kb, in 530usr/340sys/870real ms.
stap: /data/elfutils-0.150/libdwfl/derelocate.c:243: dwfl_module_relocations: Assertion `mod->debug.address_sync == mod->main.address_sync' failed.
不知应该如何解决呢?
谢谢~