[Pkg-protobuf-devel] Bug#835302: protobuf: FTBFS on s390x (undefined reference to `google::protobuf::internal::NoBarrier_*')

Bas Couwenberg sebastic at xs4all.nl
Wed Aug 24 11:49:55 UTC 2016


Source: protobuf
Version: 3.0.0-3
Severity: serious
Tags: patch upstream
Justification: makes the package in question unusable or mostly so
Control: block 835170 by -1

Dear Maintainer,

protobuf 3.0.0 FTBFS on s390x because it lacks support for this
architecture:

 /bin/bash ../libtool  --tag=CXX   --mode=link g++ -pthread
-DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare  -g -O2
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security -pthread -Wl,-z,relro -o protoc
google/protobuf/compiler/main.o -lpthread libprotobuf.la libprotoc.la
-lz 
 libtool: link: g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall
-Wno-sign-compare -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=.
-fstack-protector-strong -Wformat -Werror=format-security -pthread
-Wl,-z -Wl,relro -o .libs/protoc google/protobuf/compiler/main.o
-lpthread ./.libs/libprotobuf.so ./.libs/libprotoc.so -lz -pthread
 ./.libs/libprotobuf.so: undefined reference to
`google::protobuf::internal::NoBarrier_AtomicIncrement(long volatile*,
long)'
 ./.libs/libprotobuf.so: undefined reference to
`google::protobuf::internal::NoBarrier_Store(long volatile*, long)'
 ./.libs/libprotobuf.so: undefined reference to
`google::protobuf::internal::NoBarrier_AtomicExchange(long volatile*,
long)'
 ./.libs/libprotobuf.so: undefined reference to
`google::protobuf::internal::NoBarrier_Load(long const volatile*)'

The attached patch fixes the build failure by adding support for the s390
& s390x architectures, based on the V8 port for zSystems:

 https://github.com/ibmruntimes/v8z

Kind Regards,

Bas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s390x.patch
Type: text/x-diff
Size: 6605 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-protobuf-devel/attachments/20160824/bb63bac1/attachment.patch>


More information about the Pkg-protobuf-devel mailing list