|
From: <fr...@be...> - 2005-10-07 13:17:57
|
Hi, i've a problem compiling valgrind-3.0.1: make distclean && ./configure --host=i386-linux --enable-tls && make [...] ar cru libdemangle.a cp-demangle.o cplus-dem.o demangle.o dyn-string.o safe-ctype.o i386-linux-ranlib libdemangle.a make[4]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind/m_demangle' Making all in m_dispatch make[4]: Entering directory `/home/frank/valgrind-3.0.1/coregrind/m_dispatch' make -C /home/frank/valgrind-3.0.1/VEX CC=i386-linux-gcc pub/libvex_guest_offsets.h make[5]: Entering directory `/home/frank/valgrind-3.0.1/VEX' i386-linux-gcc -Wall -g -o auxprogs/genoffsets auxprogs/genoffsets.c ./auxprogs/genoffsets > pub/libvex_guest_offsets.h /bin/sh: ./auxprogs/genoffsets: No such file or directory make[5]: *** [pub/libvex_guest_offsets.h] Error 127 make[5]: Leaving directory `/home/frank/valgrind-3.0.1/VEX' make[4]: *** [libvex_guest_offsets.h] Error 2 make[4]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind/m_dispatch' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/frank/valgrind-3.0.1/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/frank/valgrind-3.0.1' make: *** [all] Error 2 I also tried the recent svn but no luck either. make distclean && ./configure --host=i386-linux --enable-tls && make [...] make[4]: Leaving directory `/home/frank/valgrind/VEX' i386-linux-gcc -Wmissing-prototypes -Winline -Wall -Wshadow -O -g -m32 -mpreferred-stack-boundary=2 -O2 -Wno-long-long -o memcheck -static -Wl,-defsym,valt_load_address=0xb0000000 -Wl,-T,../valt_load_address.lds -nodefaultlibs -nostartfiles -u _start mac_leakcheck.o mac_malloc_wrappers.o mc_main.o mac_shared.o mc_translate.o../coregrind/libcoregrind.a ../VEX/libvex.a -lgcc ../coregrind/libcoregrind.a(syswrap-x86-linux.o): In function `vgSysWrap_x86_linux_sys_syscall223_before': m_syswrap/syswrap-x86-linux.c:1900: undefined reference to `vgModuleLocal_linux_variant_PRE_sys_bproc' ../coregrind/libcoregrind.a(syswrap-x86-linux.o): In function `vgSysWrap_x86_linux_sys_syscall223_after': m_syswrap/syswrap-x86-linux.c:1912: undefined reference to `vgModuleLocal_linux_variant_POST_sys_bproc' collect2: ld returned 1 exit status make[3]: *** [memcheck] Error 1 make[3]: Leaving directory `/home/frank/valgrind/memcheck' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/frank/valgrind/memcheck' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/frank/valgrind' Older svn version could be compiled but i ran into all kinds of problem when using them. With cachegrind i had a failed assertion every time i ran it. valgrind --tool=cachegrind ls ==6781== Cachegrind, an I1/D1/L2 cache profiler. ==6781== Copyright (C) 2002-2005, and GNU GPL'd, by Nicholas Nethercote et al. ==6781== Using LibVEX rev 1410, a library for dynamic binary translation. ==6781== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==6781== Using valgrind-3.1.SVN, a dynamic binary instrumentation framework. ==6781== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==6781== For more details, rerun with: -v ==6781== --6781-- warning: Pentium with 12 K micro-op instruction trace cache --6781-- Simulating a 16 KB cache with 32 B lines Cachegrind: cg_main.c:486 (handleOneStatement): Assertion 'NULL == *storeAddrExpr' failed. ==6781== at 0xB0004134: panic (m_libcassert.c:175) ==6781== by 0xB0004133: vgPlain_assert_fail (m_libcassert.c:169) ==6781== by 0xB0000D18: handleOneStatement (cg_main.c:486) ==6781== by 0xB00013CE: cg_instrument (cg_main.c:694) ==6781== by 0xB004DB95: LibVEX_Translate (vex_main.c:465) ==6781== by 0xB0013181: vgPlain_translate (libvex_basictypes.h:162) ==6781== by 0xB001FFF2: handle_tt_miss (scheduler.c:591) ==6781== by 0xB0020383: vgPlain_scheduler (scheduler.c:712) ==6781== by 0xB003E9B3: vgModuleLocal_thread_wrapper (syswrap-linux.c:82) ==6781== by 0xB002E736: run_a_thread_NORETURN (syswrap-x86-linux.c:124) sched status: running_tid=1 Thread 1: status = VgTs_Runnable ==6781== at 0x40008A0: _dl_linux_resolve (in /lib/ld-uClibc-0.9.28.so) ==6781== by 0x4003388: _dl_get_ready_to_run (in /lib/ld-uClibc-0.9.28.so) ==6781== by 0x40036BE: (within /lib/ld-uClibc-0.9.28.so) ==6781== by 0x40008D4: _start (in /lib/ld-uClibc-0.9.28.so) Which version should i try? I would like to use memcheck/cachegrind and callgrind in a uclibc environment. TIA Frank |