Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling riak erlang client #1115

Closed
sqoring opened this issue Mar 11, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@sqoring
Copy link

commented Mar 11, 2016

System specs:

MacBook-Pro-2:riak-erlang-client markus$ rebar3 report
Rebar3 report
 version 3.0.0-beta.4+build.3202.refd7def6e
 generated at 2016-03-11T20:46:27+00:00
=================
Please submit this along with your issue at https://github.com/rebar/rebar3/issues (and feel free to edit out private information, if any)
-----------------
Task: 
Entered as:

-----------------
Operating System: x86_64-apple-darwin15.3.0
ERTS: Erlang/OTP 18 [erts-7.2] [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false]
Root Directory: /usr/local/lib/erlang
Library directory: /usr/local/lib/erlang/lib
-----------------
Loaded Applications:
bbmustache: 1.0.4
certifi: 0.3.0
cf: 0.2.1
common_test: 1.11.1
compiler: 6.0.2
crypto: 3.6.2
cth_readable: 1.1.0
dialyzer: 2.8.2
edoc: 0.7.17
erlware_commons: 0.18.0
eunit: 2.2.12
eunit_formatters: 0.3.1
getopt: 0.8.2
inets: 6.1
kernel: 4.1.1
providers: 1.6.0
public_key: 1.1
relx: 3.9.0
sasl: 2.6.1
snmp: 5.2.1
ssl_verify_hostname: 1.0.5
stdlib: 2.7
syntax_tools: 1.7
tools: 2.8.2

-----------------
Escript path: /usr/local/bin/rebar3
Providers:
  app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit help install install_deps list lock new path pkgs release relup report shell tar tree unlock update upgrade upgrade upgrade version xref 

Ouput:

MacBook-Pro-2:riak-erlang-client markus$ rebar3 compile
===> Verifying dependencies...
===> Plugin riak_pb_msgcodegen not available. It will not be used.
===> Plugin header_generator not available. It will not be used.
===> Plugin eqc_resolver not available. It will not be used.
===> Compiling riak_pb
===> Compiling /Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl failed
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:30: can't find include file "riak_kv_pb.hrl"

/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:72: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:77: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:93: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:98: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:100: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:102: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:104: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:106: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:108: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:110: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:112: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:114: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:138: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:157: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:182: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:183: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:184: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:185: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:186: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:187: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:188: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:189: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:190: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:192: record rpbcontent undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:195: record rpbpair undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:203: record rpbpair undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:209: record rpbpair undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:214: record rpblink undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:216: record rpblink undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:219: record rpblink undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:220: record rpblink undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:221: variable 'B' is unbound
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:221: variable 'K' is unbound
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:221: variable 'T' is unbound
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:246: record rpbbucketkeypreflistitem undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:252: record rpbbucketkeypreflistitem undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:254: record rpbbucketkeypreflistitem undefined
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:258: record rpbbucketkeypreflistitem undefined

/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:79: variable 'Value' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:107: variable 'MS' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:107: variable 'S' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:107: variable 'US' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:113: variable 'DeletedVal' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:124: function header_val_to_bool/1 is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:215: variable 'B' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:215: variable 'K' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:215: variable 'T' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:253: variable 'Node' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:253: variable 'PartitionNumber' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:257: variable 'Node' is unused
/Users/markus/Programming/riak-erlang-client/_build/default/lib/riak_pb/src/riak_pb_kv_codec.erl:257: variable 'PartitionNumber' is unused
@tsloughter

This comment has been minimized.

Copy link
Contributor

commented Mar 11, 2016

Basho's riakc repo is not compatible with rebar3. You should be able to get it working in your project using overrides like:

{overrides,
 [
  {override, rebar3_protobuffs_plugin, [{deps, [ {protobuffs, {git, "git://github.com/basho/erlang_protobuffs.git", {tag, "0.8.2"}}}]}]},

  {override, protobuffs, [{deps, []}]},

  {override, riak_pb, [{plugins, [{riak_pb_msgcodegen,
                                   {git, "git://github.com/tsloughter/riak_pb_msgcodegen",
                                    {branch, "master"}}},
                                  {rebar3_protobuffs_plugin,
                                   {git, "git://github.com/cmkarlsson/rebar3_protobuffs_plugin",
                                    {tag, "0.1.1"}}}]},
                       {provider_hooks, [{pre, [{compile, {protobuffs, compile}},
                                                {compile, riak_pb_msgcodegen}]}]}]}]
}.
@ferd

This comment has been minimized.

Copy link
Contributor

commented Jun 7, 2016

Closing as responded with a workable fix.

@ferd ferd closed this Jun 7, 2016

martinsumner added a commit to martinsumner/riak_tests that referenced this issue Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.