Labels: Type-Defect Priority-Medium
New issue 617 by ivan.the...@gmail.com: Protobuf fails to build on
What steps will reproduce the problem?
1. Fetch protobuf 2.5.0 or svn r518.
What is the expected output? What do you see instead?
I expect it to compile. Versions up to 2.4.1 seem to have worked, at least
for Debian, as there are native packages for Debian/sparc. (I haven't
looked into whether they had to patch anything though.)
Instead, I see:
In file included from ./google/protobuf/stubs/atomicops.h:59:0,
./google/protobuf/stubs/platform_macros.h:61:2: error: #error Host
architecture was not detected as supported by protobuf
In file included from
./google/protobuf/stubs/atomicops.h:188:1: error: stray '#' in program
./google/protobuf/stubs/atomicops.h:188:1: error: 'error' does not name a
What version of the product are you using? On what operating system?
Tried 2.5.0 as well as SVN revision 518 (the latest). I am building on
Debian jessie (7.4). gcc (Debian 4.6.3-14) 4.6.3
Please provide any additional information below.
I'm attaching a patch against SVN r518. It uses GCC's builtin atomic ops,
so it should be more portable than the other architecture-specific stubs. I
used the ARM stub as a template to see what functions needed to be defined.
protobuf-r518-patch-linux-sparc.diff 5.8 KB
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups "Protocol
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.