Hi,

I am unable to build protobuf 2.6.1 on Power64 architecture running RHEL 
6.7 with GCC 4.4.7.

I have opened an issue on github as well: 
https://github.com/google/protobuf/issues/886

I'm wondering if this is a bug in protobuf specific to Power64. Any 
pointers? I have built 2.6.1 successfully on x86_64 (RHEL 6.7, GCC 4.4.7) 
without any issues.


19:13:25 necvm06 ~/setup/protobuf-2.6.1
$ ./configure
...
19:13:25 necvm06 ~/setup/protobuf-2.6.1
$ make
make  all-recursive
make[1]: Entering directory `/home/arun/setup/protobuf-2.6.1'
Making all in .
make[2]: Entering directory `/home/arun/setup/protobuf-2.6.1'
make[2]: Leaving directory `/home/arun/setup/protobuf-2.6.1'
Making all in src
make[2]: Entering directory `/home/arun/setup/protobuf-2.6.1/src'
depbase=`echo google/protobuf/compiler/main.o | sed 
's|[^/]*$|.deps/&|;s|\.o$||'`;\
        g++ -DHAVE_CONFIG_H -I. -I..    -pthread -Wall -Wwrite-strings 
-Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT 
google/protobuf/compiler/main.o -MD -MP -MF $depbase.Tpo -c -o 
google/protobuf/compiler/main.o google/protobuf/compiler/main.cc &&\
        mv -f $depbase.Tpo $depbase.Po
depbase=`echo google/protobuf/stubs/atomicops_internals_x86_gcc.lo | sed 
's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I..    -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare 
-O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD 
-MP -MF $depbase.Tpo -c -o google/protobuf/stubs/atomicops_internals_x86_gcc.lo 
google/protobuf/stubs/atomicops_internals_x86_gcc.cc &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -pthread -Wall -Wwrite-strings 
-Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT 
google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD -MP -MF 
google/protobuf/stubs/.deps/atomicops_internals_x86_gcc.Tpo -c 
google/protobuf/stubs/atomicops_internals_x86_gcc.cc -o 
google/protobuf/stubs/atomicops_internals_x86_gcc.o
In file included from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
./google/protobuf/stubs/atomicops.h:209: error: stray '#' in program
./google/protobuf/stubs/atomicops.h:209: error: expected constructor, 
destructor, or type conversion before string constant
make[2]: *** [google/protobuf/stubs/atomicops_internals_x86_gcc.lo] Error 1
make[2]: Leaving directory `/home/arun/setup/protobuf-2.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arun/setup/protobuf-2.6.1'
make: *** [all] Error 2
19:13:38 necvm06 ~/setup/protobuf-2.6.1

Cheers,
Arun

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to