|
From: Bikash K A. <bi...@cc...> - 2007-07-12 21:44:41
|
I want valgrind on 64 bit machine - but I get the following message when compiling: ... gcc -Wno-long-long -o memcheck-x86-linux -static -Wl,-defsym,valt_load_address=0x38000000 -nodefaultlibs -nostartfiles -u _start -m32 -Wl,-T,../valt_load_address_x86_linux.lds memcheck_x86_linux-mc_leakcheck.o memcheck_x86_linux-mc_malloc_wrappers.o memcheck_x86_linux-mc_main.o memcheck_x86_linux-mc_translate.o ../coregrind/libcoregrind_x86_linux.a ../VEX/libvex_x86_linux.a -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux/3.3.5/./libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux/3.3.5/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status make[3]: *** [memcheck-x86-linux] Error 1 make[3]: Leaving directory `/tmp/valgrind-3.2.3/memcheck' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/valgrind-3.2.3/memcheck' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/valgrind-3.2.3' make: *** [all] Error 2 Can anyone please suggest what may be wrong? Thanks, Bikash |
|
From: Ashley P. <api...@co...> - 2007-07-12 22:08:43
|
On Thu, 2007-07-12 at 17:44 -0400, Bikash K Agarwalla wrote: > Can anyone please suggest what may be wrong? This looks to me like a gcc installation error, /usr/lib/gcc-lib/x86_64-linux/3.3.5/libgcc.a should be being linked into the memcheck-x86-linux binary but for some reason is being rejected by the linker. Ashley, |