cuitao2046 / gperftools

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

Compilation error for mipsel-32 #523

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1../configure --host=mipsel-unknown-linux --prefix=/home/praneet/buildval 
CC=mipsel-unknown-linux-gnu-gcc CXX=mipsel-unknown-linux-gnu-g++
2.make
3.

What is the expected output? What do you see instead?

I am trying to compile google-perftools for a mips-32 platform and I see the 
following error. Attached are the complete logs for the configuration command 
used. It seems that some how it is considering the platform for compilation as 
x86_64 and the instrucstion set “lfence” is invalid for MIPS proecessor and 
hence this warning. Please let me know if there is a work around for this issue

What version of the product are you using? On what operating system?
gperftools-2.0 version for google-perf tools

I am trying to build on system linux 2.6.32-33-generic #70-Ubuntu-SMP processor 
type = x86_64

for target type mipsel-unknown-linux for MIPSR3000 32bit processor

Please provide any additional information below.

attached are complete console logs

Original issue reported on code.google.com by praneetc...@gmail.com on 23 Apr 2013 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
Currently gperftools does not provide atomic operation for mips+linux and then 
src/base/atomicops.h tries to default include the x86 file. To fix it you'll 
need to implement the mi[s+linux atomics as the implementation at 
src/base/atomicops-internals-xxx.

Fell free to provide any patch.

Original comment by zatr...@gmail.com on 23 Apr 2013 at 12:46

GoogleCodeExporter commented 9 years ago
We've recently merged contributed mips support. Consider testing latest master 
branch.

Original comment by alkondratenko on 13 Sep 2013 at 7:46