qchbai / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

building gperftools problem #421

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I try to build gperftools on a 64 bit system on linux
1. cd ~/tools/gperftools-2.0 && mkdir gcc-build
2. export CPPFLAGS=-I/home/niuq/tools/libunwind-0.99-beta/gcc-build/include
3. gperftools-2.0/gcc-build$ ../configure --prefix=$PWD CC=gcc CXX=g++ && make

What is the expected output? What do you see instead?
libtool: link: g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual 
-Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc 
-fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign 
-fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc 
-Wno-unused-result -DNO_FRAME_POINTER -g -O2 -pthread -o 
.libs/debugallocation_test debugallocation_test-debugallocation_test.o  
./.libs/libtcmalloc_debug.so -lpthread -pthread -Wl,-rpath 
-Wl,/home/niuq/tools/gperftools-2.0/gcc-build/lib
./.libs/libtcmalloc_debug.so: undefined reference to `_Ux86_64_getcontext'
./.libs/libtcmalloc_debug.so: undefined reference to `_ULx86_64_get_reg'
./.libs/libtcmalloc_debug.so: undefined reference to `_ULx86_64_step'
./.libs/libtcmalloc_debug.so: undefined reference to `_ULx86_64_init_local'
collect2: ld returned 1 exit status

This is actually I do not pass 
-L/home/niuq/tools/libunwind-0.99-beta/gcc-build/lib -lunwind problems. But how 
do I pass this information in autoconfig? If i give 
LDFLAGS=-L/home/niuq/tools/libunwind-0.99-beta/gcc-build/lib it can not config 
successfull. 

What version of the product are you using? On what operating system?
libunwind-0.99-beta and gperftools-2.0. On linux cluster. 
uname -a
Linux node020.cluster 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 
2011 x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by niuqingp...@gmail.com on 2 Apr 2012 at 4:18

GoogleCodeExporter commented 9 years ago
Have you been successful in getting this to work?

Original comment by chapp...@gmail.com on 3 May 2012 at 2:45

GoogleCodeExporter commented 9 years ago
Hi 
Yes, i got this fix and make it can profile MPI. Cool tool!

Original comment by niuqingp...@gmail.com on 3 May 2012 at 2:50

GoogleCodeExporter commented 9 years ago
Glad to here you got it working. Can you share how you got things working? Is 
this something that could be patched?

Original comment by chapp...@gmail.com on 3 May 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Closing off as this is not an issue with gperftools and the submitter has 
worked out a solution.

Original comment by chapp...@gmail.com on 15 May 2012 at 1:36