Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 617 by [email protected]: Protobuf fails to build on
Linux/SPARC
http://code.google.com/p/protobuf/issues/detail?id=617
What steps will reproduce the problem?
1. Fetch protobuf 2.5.0 or svn r518.
2. ./configure
3. make
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,
from
google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
./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_internals_x86_gcc.cc:36:0:
./google/protobuf/stubs/atomicops.h:188:1: error: stray '#' in program
./google/protobuf/stubs/atomicops.h:188:1: error: 'error' does not name a
type
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.
Attachments:
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:
https://code.google.com/hosting/settings
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.