lexliy / gperftools

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

build on linux fails #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.configure 
2.make install
3.

What is the expected output? What do you see instead?
libtool: link: ranlib .libs/libtcmalloc_debug.a
libtool: link: rm -fr .libs/libtcmalloc_debug.lax
libtool: link: ( cd ".libs" && rm -f "libtcmalloc_debug.la" && ln -s 
"../libtcmalloc_debug.la" "libtcmalloc_debug.la" )
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. 
-I./src  -I./src   -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   -g -O2 -MT profiler.lo -MD -MP -MF 
".deps/profiler.Tpo" -c -o profiler.lo `test -f 'src/profiler.cc' || echo 
'./'`src/profiler.cc; \
        then mv -f ".deps/profiler.Tpo" ".deps/profiler.Plo"; else rm -f ".deps/profiler.Tpo"; exit 1; fi
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -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 -g -O2 -MT profiler.lo -MD -MP -MF .deps/profiler.Tpo -c 
src/profiler.cc  -fPIC -DPIC -o .libs/profiler.o
src/getpc.h: In function âvoid* GetPC(const ucontext_t&)â:
src/getpc.h:181: error: âREG_EIPâ was not declared in this scope
make: *** [profiler.lo] Error 1
Exit 2

What version of the product are you using? On what operating system?
google-perftools-1.7 and google-perftools-1.8.3

Please provide any additional information below.

 uname -a
Linux nsplda008.int.msci.com 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 
2008 x86_64 x86_64 x86_64 GNU/Linux

 g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-libgcj-multifile 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic 
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)

Original issue reported on code.google.com by adamques...@gmail.com on 7 Sep 2011 at 4:35

GoogleCodeExporter commented 9 years ago
Can you attach /usr/include/sys/ucontext.h on your machine?

You can also try to run

g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -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 -g -E -dD -MT profiler.lo -MD -MP -MF .deps/profiler.Tpo 
src/profiler.cc  -fPIC -DPIC

Does this mention REG_EIP at all?  Feel free to attach that output, as well.

Original comment by csilv...@gmail.com on 7 Sep 2011 at 10:05

GoogleCodeExporter commented 9 years ago
Ping.  This shouldn't be that hard to figure out, but will need more info.  The 
output of your configure run, and the contents of config.log, would also be 
helpful.

Original comment by csilv...@gmail.com on 18 Oct 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Haven't heard anything on this in three months; closing.

Original comment by csilv...@gmail.com on 21 Dec 2011 at 7:10