Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work on s390x architecture #696

Open
GoogleCodeExporter opened this issue Jul 23, 2015 · 0 comments
Open

It doesn't work on s390x architecture #696

GoogleCodeExporter opened this issue Jul 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant