Re: [protobuf] AIX builds fail using g++

2016-11-15 Thread 'Adam Cozzette' via Protocol Buffers
Ok, one other thing that might be worth trying is just to see if the generic GCC implementation works for you--it seems as if that should work as long as you're using version 4.7 or higher. To do this you just have to tweak atomicops.h so that it includes atomicops_internals_generic_gcc.h. On

Re: [protobuf] AIX builds fail using g++

2016-11-15 Thread Bob Wilkinson
I see in platform_macros.h #elif defined(_POWER) || defined(__powerpc64__) || defined(__PPC64__) #define GOOGLE_PROTOBUF_ARCH_POWER 1 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1 #elif defined(__PPC__) #define GOOGLE_PROTOBUF_ARCH_PPC 1 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1 #elif defined(__GNUC__) I

Re: [protobuf] AIX builds fail using g++

2016-11-14 Thread 'Adam Cozzette' via Protocol Buffers
Thanks, Bob. I tried to reach out to one of the authors of that code but I have not heard back yet. I wonder if the problem may actually be that the assembly code is correct but that we're choosing the wrong architecture. I'm not at all familiar with AIX, but just from reading about it on its

Re: [protobuf] AIX builds fail using g++

2016-11-09 Thread 'Adam Cozzette' via Protocol Buffers
Could you try to narrow it down to one file or the other? The atomicops.h header pulls in the right atomic operations implementation based on the platform, so with a little