Source: protobuf
Version: 2.6.1-1.3
Severity: normal

Hello!

We are currently working on bringing Debian's sparc64 port back in shape
and hence are filing bugs against and possibly providing patches which
need additional work.

Unfortunately protobuf is one of them, it fails to build from source:

make[4]: Entering directory '/«PKGBUILDDIR»/src'
g++ -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -pthread -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -g -O2 
-fstack-protector-strong -Wformat -Werror=format-security -c -o 
google/protobuf/compiler/main.o google/protobuf/compiler/main.cc
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   
-D_FORTIFY_SOURCE=2 -pthread -Wall -Wwrite-strings -Woverloaded-virtual 
-Wno-sign-compare  -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -c -o 
google/protobuf/stubs/atomicops_internals_x86_gcc.lo 
google/protobuf/stubs/atomicops_internals_x86_gcc.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -pthread 
-Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -g -O2 
-fstack-protector-strong -Wformat -Werror=format-security -c 
google/protobuf/stubs/atomicops_internals_x86_gcc.cc  -fPIC -DPIC -o 
google/protobuf/stubs/.libs/atomicops_internals_x86_gcc.o
In file included from ./google/protobuf/stubs/atomicops.h:201:0,
                 from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:107:36: error: 
'Atomic64' does not name a type
 inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) {
                                    ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:107:51: error: 
'Atomic64' has not been declared
 inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) {
                                                   ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h: In function 'void 
google::protobuf::internal::Release_Store(volatile int*, int)':
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:107:13: error: 
redefinition of 'void google::protobuf::internal::Release_Store(volatile int*, 
int)'
 inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) {
             ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:89:13: note: 'void 
google::protobuf::internal::Release_Store(volatile Atomic32*, 
google::protobuf::internal::Atomic32)' previously defined here
 inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
             ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h: At global scope:
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:111:8: error: 
'Atomic64' does not name a type
 inline Atomic64 Acquire_Load(volatile const Atomic64* ptr) {
        ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:115:8: error: 
'Atomic64' does not name a type
 inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr,
        ^
./google/protobuf/stubs/atomicops_internals_generic_gcc.h:123:8: error: 
'Atomic64' does not name a type
 inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr,
        ^
make[4]: *** [google/protobuf/stubs/atomicops_internals_x86_gcc.lo] Error 1
Makefile:2071: recipe for target 
'google/protobuf/stubs/atomicops_internals_x86_gcc.lo' failed

It appears that protobuf does not detect the host architecture properly and
seems to try compile code which is supposed to be used on x86 only, but I am
not sure.

Full build log in [1].

Adrian

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=protobuf&arch=sparc64&ver=2.6.1-1.3&stamp=1447501050

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to