casseopea2 / gperftools

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

Broken 1.1 Linux PPC Build: src/base/vdso_support.cc:50 error: 'MemoryBarrier' is already declared in this scope #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --prefix=/home/user/pkg/ppc/google-perftools/1.1
2. make
3.

What is the expected output? What do you see instead?
I expect all files to compile.  I see src/base/vdso_support.cc fail with
the error: 'MemoryBarrier' is already declared in this scope

What version of the product are you using? On what operating system?
Software version: Google PerfTools 1.1.
OS:  Yellow-Dog Linux 6.0

Please provide any additional information below.
32-bit target compile.

Original issue reported on code.google.com by pvnYmINb...@cynd.net on 31 Mar 2009 at 9:47

GoogleCodeExporter commented 9 years ago
Oops.  *blush*.  Can you remove the following lines from the bottom of
src/base/atomicops-internals-linuxppc.h and see if that fixes things?
---
// NOTE(vchen): The following is also deprecated.  New callers should use
// the base::subtle namespace.
inline void MemoryBarrier() {
  base::subtle::MemoryBarrier();
}
---

If it does, I'll put it in the next release.

Original comment by csilv...@gmail.com on 31 Mar 2009 at 11:01

GoogleCodeExporter commented 9 years ago
That fixed the problem.

Thanks for the prompt reply.  I look forward to the next release.

 -- Charles Wilcox

Original comment by pvnYmINb...@cynd.net on 1 Apr 2009 at 1:34

GoogleCodeExporter commented 9 years ago
This is fixed in perftools 1.2, just released.

Original comment by csilv...@gmail.com on 18 Apr 2009 at 12:13