ChicagoBoss make error

195 views
Skip to first unread message

Mert Öztürk

unread,
Aug 5, 2015, 10:51:44 AM8/5/15
to ChicagoBoss
Hello,

I upgraded erlang to OTP 18.0 and riak.pb couldnt be compiled so couldnt complete make.
Then i downgraded and tried with 17.0,17.4, 17.5 and 17.5.3 and now i am having the error;

==> bson (compile)
Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed:
/root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of variable 'Name' in map
ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort
make: *** [all] Error 1

I am having an urgent trouble with my application and your help will be appreciated.

Thanks
Mert

Mert Öztürk

unread,
Aug 5, 2015, 11:03:05 AM8/5/15
to ChicagoBoss
With OTP 18.0 the following make error is below;

Writing beam file to "riak_kv_pb.beam"
Compiled src/riak_pb_codec.erl
Compiled src/riak_pb_search_codec.erl
Compiling /root/ask_prod2/ChicagoBoss/deps/riak_pb/src/riak_pb_kv_codec.erl failed:
/root/ask_prod2/ChicagoBoss/deps/riak_pb/src/riak_pb_kv_codec.erl:52: type dict() undefined
ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/riak_pb: rebar_abort
make: *** [all] Error 1

So i couldnt get it working in both ways and now i dont know how to solve this issue.

Thanks
Mert

5 Ağustos 2015 Çarşamba 17:51:44 UTC+3 tarihinde Mert Öztürk yazdı:

Mert Öztürk

unread,
Aug 5, 2015, 11:24:19 AM8/5/15
to ChicagoBoss
Important to mention, i dont get the following error with OTP 18.0;

==> bson (compile)
Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed:
/root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of variable 'Name' in map
ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort
make: *** [all] Error 1



5 Ağustos 2015 Çarşamba 17:51:44 UTC+3 tarihinde Mert Öztürk yazdı:
Hello,

Kai Janson

unread,
Aug 5, 2015, 11:57:04 AM8/5/15
to chica...@googlegroups.com
Looks like you have partially compiled project code. Try a "make clean"

If that fails, remove the beam files from the ebin directories.

--Kai

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/c0447639-55ad-4c69-baf1-1c9ac16f8a21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mert Öztürk

unread,
Aug 5, 2015, 1:09:59 PM8/5/15
to ChicagoBoss
Dear Kai,

I used wget to download it and sudo dpkg -i  to install it.
Then i made the thing you said (make clean) and tried and i have the same error again;

Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed:
/root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of variable 'Name' in map
ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort
make: *** [all] Error 1

Then i cleaned all ebin directories and got the same error again.

Thanks
Mert




5 Ağustos 2015 Çarşamba 18:57:04 UTC+3 tarihinde Kai Janson yazdı:

Kai Janson

unread,
Aug 5, 2015, 1:22:35 PM8/5/15
to chica...@googlegroups.com
You might want to downgrade the  bson package to a previous version ; if it is taking it from HEAD you might have caught an unstable version.

Sent from my iPhone

Mert Öztürk

unread,
Aug 5, 2015, 1:29:41 PM8/5/15
to ChicagoBoss
I am using ChicagoBoss 0.8.15. Do i have to use 0.8.14?

Thanks
mert

5 Ağustos 2015 Çarşamba 20:22:35 UTC+3 tarihinde Kai Janson yazdı:

Mert Öztürk

unread,
Aug 5, 2015, 1:49:18 PM8/5/15
to ChicagoBoss
With OTP 18.0 bson compile without any error and when it comes to riak it gives error so i tried to compile everything till riak with OTP 18 and the rest with OTP 17.5 and finally everything is compiled but when i pull the data from mongodb data come as undefined and it does not work.

5 Ağustos 2015 Çarşamba 20:29:41 UTC+3 tarihinde Mert Öztürk yazdı:

Kai Janson

unread,
Aug 5, 2015, 2:02:35 PM8/5/15
to chica...@googlegroups.com
There are possibly several ways to resolve this:

One option would be to put a compiled and working version of bson into the Erlang/lib/ directory.

Another one would be creating one server with risk and another one with ChicagoBoss.

--Kai

Sent from my iPhone

Mert Öztürk

unread,
Aug 5, 2015, 2:33:19 PM8/5/15
to ChicagoBoss
Hello Kai,

I solved it buy merging the old bson from https://github.com/comtihon/bson-erlang/releases and the one on 23th May.
Now it is working fine but But i think this is an urgent issue about the bson latest release. If i am not wrong, there is a bug which gives the following error and needs to be fixed;

==> bson (compile)
Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed:
/root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of variable 'Name' in map
ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort
make: *** [all] Error 1

If i am not doing something wrong, maybe this can help anybody faces the same bson compile error with Erlang OTP 17 making ChicagoBoss files.

Thanks for your help
Mert



5 Ağustos 2015 Çarşamba 21:02:35 UTC+3 tarihinde Kai Janson yazdı:

kotedo

unread,
Aug 5, 2015, 3:50:21 PM8/5/15
to chica...@googlegroups.com
You might want to create a fix for it and turn it into a pull request?
That way it will be fixed.

Best
—Kai

Mert Öztürk

unread,
Aug 6, 2015, 1:20:56 PM8/6/15
to ChicagoBoss
Not sure if i can succeed but i will give it a try 

5 Ağustos 2015 Çarşamba 22:50:21 UTC+3 tarihinde Kai Janson yazdı:
Reply all
Reply to author
Forward
0 new messages