[ 
https://issues.apache.org/jira/browse/COUCHDB-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15248644#comment-15248644
 ] 

Noah Mehl commented on COUCHDB-2994:
------------------------------------

I get a different error with gcc49:

root@441920aa-c373-40a0-a990-a6b8ce0d8dd4 /opt/local/src/couchdb-snappy]# 
/opt/local/src/couchdb/bin/rebar clean
==> couchdb-snappy (clean)
[root@441920aa-c373-40a0-a990-a6b8ce0d8dd4 /opt/local/src/couchdb-snappy]# 
/opt/local/src/couchdb/bin/rebar co
==> couchdb-snappy (compile)
Compiled src/snappy.erl
Compiling c_src/snappy_nif.cc
Compiling c_src/snappy/snappy-sinksource.cc
Compiling c_src/snappy/snappy-stubs-internal.cc
Compiling c_src/snappy/snappy.cc
c_src/snappy/snappy.cc: In instantiation of 'bool 
snappy::SnappyScatteredWriter<Allocator>::AppendFromSelf(std::size_t, 
std::size_t) [with Allocator = snappy::SnappySinkAllocator; std::size_t = long 
unsigned int]':
c_src/snappy/snappy.cc:779:13:   required from 'void 
snappy::SnappyDecompressor::DecompressAllTags(Writer*) [with Writer = 
snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>]'
c_src/snappy/snappy.cc:865:3:   required from 'bool 
snappy::InternalUncompressAllTags(snappy::SnappyDecompressor*, Writer*, 
snappy::uint32) [with Writer = 
snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>; snappy::uint32 = 
unsigned int]'
c_src/snappy/snappy.cc:1549:78:   required from here
c_src/snappy/snappy.cc:1401:21: warning: comparison between signed and unsigned 
integer expressions [-Wsign-compare]
     if (offset - 1u < op_ptr_ - op_base_) {


> Trouble Compiling couchdb-snappy
> --------------------------------
>
>                 Key: COUCHDB-2994
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2994
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 2.0.0
>            Reporter: Noah Mehl
>
> I am trying to build CouchDB (master) on a smartos base64-lts zone.  I'm 
> getting the following output from couchdb-snappy:
> root@441920aa-c373-40a0-a990-a6b8ce0d8dd4 /opt/local/src/couchdb/src/snappy]# 
> /opt/local/src/couchdb/bin/rebar clean
> ==> snappy (clean)
> [root@441920aa-c373-40a0-a990-a6b8ce0d8dd4 
> /opt/local/src/couchdb/src/snappy]# /opt/local/src/couchdb/bin/rebar co
> ==> snappy (compile)
> Compiled src/snappy.erl
> Compiling c_src/snappy_nif.cc
> Compiling c_src/snappy/snappy-sinksource.cc
> Compiling c_src/snappy/snappy-stubs-internal.cc
> Compiling c_src/snappy/snappy.cc
> c_src/snappy/snappy.cc: In member function 'bool 
> snappy::SnappyDecompressor::RefillTag()':
> c_src/snappy/snappy.cc:834:21: warning: comparison between signed and 
> unsigned integer expressions [-Wsign-compare]
> c_src/snappy/snappy.cc: In instantiation of 'bool 
> snappy::SnappyScatteredWriter<Allocator>::AppendFromSelf(std::size_t, 
> std::size_t) [with Allocator = snappy::SnappySinkAllocator; std::size_t = 
> long unsigned int]':
> c_src/snappy/snappy.cc:779:9:   required from 'void 
> snappy::SnappyDecompressor::DecompressAllTags(Writer*) [with Writer = 
> snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>]'
> c_src/snappy/snappy.cc:865:3:   required from 'bool 
> snappy::InternalUncompressAllTags(snappy::SnappyDecompressor*, Writer*, 
> snappy::uint32) [with Writer = 
> snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>; snappy::uint32 = 
> unsigned int]'
> c_src/snappy/snappy.cc:1549:78:   required from here
> c_src/snappy/snappy.cc:1401:5: warning: comparison between signed and 
> unsigned integer expressions [-Wsign-compare]
> Any help would be appreciated.  Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to