buffer8848 / gperftools

Automatically exported from code.google.com/p/gperftools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build in RedHat 4 EL ia64

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?

Trying to build google-perftools on a redhat 4 ia-64 system with gcc
versión 3.4.6 20060404 (Red Hat 3.4.6-3), latest from home (1.0). The build
fails with the following error:

1. ./configure --prefix=/usr/local/tcmalloc-1.0 --host=ia64-redhat-linux

2. make tcmalloc_minimal_unittest tcmalloc_minimal_large_unittest \
     addressmap_unittest atomicops_unittest frag_unittest \
     low_level_alloc_unittest markidle_unittest memalign_unittest \
     packed_cache_test stacktrace_unittest system_alloc_unittest \
     thread_dealloc_unittest;

3.

What is the expected output? What do you see instead?
g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread
-DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -g
-O2 -MT libtcmalloc_minimal_la-tcmalloc.lo -MD -MP -MF
.deps/libtcmalloc_minimal_la-tcmalloc.Tpo -c src/tcmalloc.cc  -fPIC -DPIC
-o .libs/libtcmalloc_minimal_la-tcmalloc.o
In file included from src/tcmalloc.cc:132:
src/thread_cache.h:209: warning: `tls_model' attribute ignored
./src/base/atomicops-internals-x86.h: In function `void
ExtractStats(TCMallocStats*, uint64_t*)':
./src/base/atomicops-internals-x86.h:315: error: unknown register name
`%ecx' in `asm'
./src/base/atomicops-internals-x86.h:364: error: unknown register name
`%mm0' in `asm'
./src/base/atomicops-internals-x86.h:315: error: unknown register name
`%ecx' in `asm'
./src/base/atomicops-internals-x86.h:364: error: unknown register name
`%mm0' in `asm'
./src/base/atomicops-internals-x86.h:364: error: unknown register name
`%mm0' in `asm'
./src/base/atomicops-internals-x86.h:315: error: unknown register name
`%ecx' in `asm'
./src/base/atomicops-internals-x86.h:364: error: unknown register name
`%mm0' in `asm'
./src/base/atomicops-internals-x86.h:364: error: unknown register name
`%mm0' in `asm'
make[1]: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1

What version of the product are you using? On what operating system?

google-perftools 1.0 on Linux RedHat 4 EL ia64


Original issue reported on code.google.com by efigueroah@gmail.com on 9 Jan 2009 at 12:20

Yes, unfortunately we do not support ia64 at this time.  Ideally, it would not 
be
difficult to add support -- we'd need to get atomicops working, as you noticed, 
as
well as a few other places we use asm -- but we haven't tried it.  If you'd 
like to
give it a shot, feel free to commit a patch here!  We'd love to add support for 
more
processors and OSes over time, but unfortunately can't promise a timeframe.  I'm
changing this bug to WontFix, but really it's WontFixRightAway...

Original comment by csilv...@gmail.com on 9 Jan 2009 at 10:05

  • Changed state: WontFix
Thanks csilvers,

Sorry my english

You review the work of debian guys?, they have a google-perftools for a ia64,
aparently work.

Maybe that source code, can help in this issue, what do you think??

while I'll be try port this to redhat (I need this for Zimbra build in ia64
plataform)....



Original comment by efigueroah@gmail.com on 10 Jan 2009 at 2:08

I'm not familiar with their work to get perftools to run on ia64.  I'm afraid I 
dont'
know very much about the asm code in perftools in any case, so I can't judge how
close things should be to working now, or how much work it would be to get it 
to work
with ia64.  But I'm happy to take any patches folks want to post here, and pass 
them
to the relevant experts here at google to take a look at!

Original comment by csilv...@gmail.com on 10 Jan 2009 at 2:27