elehcim / gperftools

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

It doesn't work on s390x architecture #696

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. execute make on a s390x linux server
2. receive an error

What is the expected output? What do you see instead?
:/tmp/gperftools-2.4# make
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src 
 -I./src   -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -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   -g -O2 -MT 
src/libtcmalloc_minimal_la-tcmalloc.lo -MD -MP -MF 
src/.deps/libtcmalloc_minimal_la-tcmalloc.Tpo -c -o 
src/libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo 
'./'`src/tcmalloc.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src 
-DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -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 -g -O2 -MT 
src/libtcmalloc_minimal_la-tcmalloc.lo -MD -MP -MF 
src/.deps/libtcmalloc_minimal_la-tcmalloc.Tpo -c src/tcmalloc.cc  -fPIC -DPIC 
-o src/.libs/libtcmalloc_minimal_la-tcmalloc.o
In file included from src/tcmalloc.cc:117:0:
src/base/basictypes.h:361:5: error: #error Could not determine cache line 
length - unknown architecture
 #   error Could not determine cache line length - unknown architecture
     ^
Makefile:4417: recipe for target 'src/libtcmalloc_minimal_la-tcmalloc.lo' failed
make: *** [src/libtcmalloc_minimal_la-tcmalloc.lo] Error 1

What version of the product are you using? On what operating system?
2.4. Debian 8 s390x (z/VM Mainframe)

Please provide any additional information below.

I have tried to put the x86 definition and then I got:

In file included from src/base/spinlock.cc:39:0:
./src/base/cycleclock.h:167:2: error: #error You need to define CycleTimer for 
your O/S and CPU
 #error You need to define CycleTimer for your O/S and CPU
  ^
./src/base/cycleclock.h: In static member function 'static int64 
CycleClock::Now()':
./src/base/cycleclock.h:169:3: warning: no return statement in function 
returning non-void [-Wreturn-type]
   }
   ^
Makefile:4171: recipe for target 'src/base/spinlock.lo' failed
make: *** [src/base/spinlock.lo] Error 1

Original issue reported on code.google.com by titogarr...@gmail.com on 30 Jun 2015 at 11:56