|
From: Howard Lu <ha...@gm...> - 2010-07-30 01:56:49
|
Hi, All: I got valgrind source from svn://svn.valgrind.org/valgrind/branches/ARM and gcc version I using is gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) after execute autogen.sh and ./configure --build=arm-none-linux-gnueabi --host=arm --prefix=<path to install>. I tried to build source and cause following errors. ============================= make[3]: Entering directory `/home/ophone/src/valgrind/none' Making all in . make[4]: Entering directory `/home/ophone/src/valgrind/none' arm-none-linux-gnueabi-gcc -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -static -Wl,-defsym,valt_load_address=0x38000000 -nodefaultlibs -nostartfiles -u _start -Wl,-T,../valt_load_address_arm_linux.lds -o none-arm-linux none_arm_linux-nl_main.o ../coregrind/libcoregrind-arm-linux.a ../VEX/libvex-arm-linux.a -lgcc ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-m_main.o):(.ARM.exidx+0x28): undefined reference to `__aeabi_unwind_cpp_pr1' ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-m_signals.o):(.ARM.exidx+0x28): undefined reference to `__aeabi_unwind_cpp_pr1' ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-m_stacktrace.o):(.ARM.exidx+0x28): undefined reference to `__aeabi_unwind_cpp_pr1' ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-m_xarray.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr1' ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-aspacemgr-linux.o):(.ARM.exidx+0xf8): undefined reference to `__aeabi_unwind_cpp_pr1' ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-debuginfo.o):(.ARM.exidx+0x1b8): more undefined references to `__aeabi_unwind_cpp_pr1' follow collect2: ld returned 1 exit status ============================= that seems aeabi_unwind_cpp_pr1 cannot find in gcc LIB. Could everybody know how to resolve it? BR, Howard. |
|
From: Julian S. <js...@ac...> - 2010-07-30 07:17:49
|
> I got valgrind source from svn://svn.valgrind.org/valgrind/branches/ARM That branch is old (closed). It has been merged into the trunk, so you should use svn://svn.valgrind.org/valgrind/trunk. Alternatively if you want to try experimental Thumb/Thumb2 support then try svn://svn.valgrind.org/valgrind/branches/THUMB. This branch is not suitable for real use yet, though. > ../coregrind/libcoregrind-arm-linux.a(libcoregrind_arm_linux_a-debuginfo.o) > :(.ARM.exidx+0x1b8): more undefined references to `__aeabi_unwind_cpp_pr1' > follow > collect2: ld returned 1 exit status > ============================= > > that seems aeabi_unwind_cpp_pr1 cannot find in gcc LIB. > > Could everybody know how to resolve it? Yes. In coregrind/m_main.c, find the function __aeabi_unwind_cpp_pr0 and make a copy of it, called __aeabi_unwind_cpp_pr1. J |