Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 955577

Summary: protobuf-2.5.0 doesn't build: #error Host architecture was not detected as supported by protobuf
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: protobufAssignee: Lev Shamardin <shamardin>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 19CC: cse.cem+redhatbugz, mizdebsk, shamardin
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-22 15:55:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 927819    

Description Karsten Hopp 2013-04-23 10:26:53 UTC
Description of problem:
The update to protobuf-2.5.0 broke building on ppc and ppc64:
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -c google/protobuf/io/zero_copy_stream_impl_lite.cc  -fPIC -DPIC -o .libs/zero_copy_stream_impl_lite.o
In file included from ./google/protobuf/stubs/atomicops.h:59:0,
                 from ./google/protobuf/stubs/once.h:81,
                 from google/protobuf/stubs/once.cc:38:
./google/protobuf/stubs/platform_macros.h:61:2: error: #error Host architecture was not detected as supported by protobuf
 #error Host architecture was not detected as supported by protobuf
  ^

protobuf-2.4.1 built and worked just fine on PowerPC, so please add the missing definition back into protobuf.


Version-Release number of selected component (if applicable):
protobuf-2.5.0-1.fc19

How reproducible:


Steps to Reproduce:
1. ppc-koji build --scratch f19 protobuf-2.5.0-1.fc19.src.rpm
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Conrad Meyer 2013-04-25 18:37:51 UTC
I have no idea how much work fixing protobuf to work on PPC (or other BE archs, presumably) will be. If you want to investigate this and either file an enhancement / patch upstream, or just patch it in Fedora, that's fine, but it's likely I won't have time to do it (and I have no interest non-x86 at the moment).

Comment 2 Conrad Meyer 2013-04-25 18:40:39 UTC
Upstream code.google.com issue: https://code.google.com/p/protobuf/issues/detail?id=488

Comment 3 Conrad Meyer 2013-10-22 15:55:56 UTC
Feel free to reopen if you can get it upstream to take it.