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

Compile Error 17.09 #2032

Closed
RamzyVirani opened this issue Oct 4, 2017 · 24 comments
Closed

Compile Error 17.09 #2032

RamzyVirani opened this issue Oct 4, 2017 · 24 comments
Assignees

Comments

@RamzyVirani
Copy link

What version of ejabberd are you using?
17.09

What operating system (version) are you using?
CentOS 7

How did you install ejabberd (source, package, distribution)?
Source

What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?
I am getting below error when executing make

Compiled src/xep0280.erl
/opt/ejabberd/deps/xmpp/xmpp_codec: function get_mod/2+2689:
  Internal consistency check failed - please report this bug.
  Instruction: {test,bs_test_tail2,{f,862},[{x,5},0]}
  Error:       {no_bsm_context,{x,5}}:

Compiling /opt/ejabberd/deps/xmpp/src/xmpp_codec.erl failed:
ERROR: compile failed while processing /opt/ejabberd/deps/xmpp: rebar_abort
make: *** [deps/.built] Error 1
@DnaMes
Copy link

DnaMes commented Oct 4, 2017

same on Debian:Jessie! But I also have this problem on Version 17.08 since 28.09.

I spend two days on this issue but didn't find any solution. Please help!

It happens from one moment to another on the last thursday (28-09). Can't build the docker image anymore...

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

This is related to OTP20.1 I guess.

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

Downgrade to OTP20.0

@DnaMes
Copy link

DnaMes commented Oct 4, 2017

Maybe can you please tell me how? I always receive the latest version from the repository.

cheers

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

There is OTP20.0 in Debian SID, you can get it from that repo.

@RamzyVirani
Copy link
Author

Thank you very much. Fixed by downgrading. yum downgrade erlang erlang-* did the trick.
But now, I am getting another error. Apparently, downgrading erlang uninstalled gd, I installed gd by executing yum install gd gd-devel then got an error about libwebp. So, I installed libwebp via yum install libwebp libwebp-devel. Now, I am getting below error

checking for library containing gdImageCreateFromWebpPtr, gdImageWebpPtr... no
configure: error: libgd library is not compiled with WebP support
ERROR: Command [compile] failed!
make: *** [deps/.built] Error 1

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

Seems like your gd is built without WebP support. If you don't need mod_avatar you can build ejabberd without graphics (./configure --disable-graphics ...).

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

For tracking, the bug is reported here: https://bugs.erlang.org/browse/ERL-493

@RamzyVirani
Copy link
Author

Got New Error

==> rel (pre_compile)
ERROR: No Elixir compiler found
==> rel (compile)
==> ejabberd (compile)
ERROR: compile failed while processing /opt/ejabberd: {'EXIT',{undef,[{asn1ct,compile,
                        ["asn1/XmppAddr.asn1",[{outdir,"src"},noobj]],
                        []},
                {rebar_asn1_compiler,compile_asn1,3,
                                     [{file,"src/rebar_asn1_compiler.erl"},
                                      {line,77}]},
                {rebar_base_compiler,compile_each,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,135}]},
                {rebar_base_compiler,run,4,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,44}]},
                {rebar_core,run_modules,4,
                            [{file,"src/rebar_core.erl"},{line,493}]},
                {rebar_core,execute,6,
                            [{file,"src/rebar_core.erl"},{line,418}]},
                {rebar_core,maybe_execute,8,
                            [{file,"src/rebar_core.erl"},{line,302}]},
                {rebar_core,process_dir1,7,
                            [{file,"src/rebar_core.erl"},{line,261}]}]}}
make: *** [deps/.built] Error 1

and various warnings like
warning: Dict.put/3 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
src/elixir_errors.erl:303: Warning: erlang:get_stacktrace/0 used following a 'try' expression may stop working in a future release. (Use it inside 'try'.)
and
warning: behaviour String.Chars is undefined

@zinid
Copy link
Contributor

zinid commented Oct 4, 2017

This is unrelated, nobody will be concerned if you post different issues in a single issue.

@DnaMes
Copy link

DnaMes commented Oct 5, 2017

the debian sid installs the 20.1 and i can't figure out how can i install a espacially OTP release like OTP20.

if i want build the docker container the following packages have unmet dependencies:

erlang-percept : Depends: erlang-base (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed or
erlang-base-hipe (= 1:17.3-dfsg-4+deb8u1) but it is not going to be installed
Depends: erlang-inets (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed
Depends: erlang-runtime-tools (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed
erlang-typer : Depends: erlang-base (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed or
erlang-base-hipe (= 1:17.3-dfsg-4+deb8u1) but it is not going to be installed
Depends: erlang-dialyzer (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed
erlang-webtool : Depends: erlang-base (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed or
erlang-base-hipe (= 1:17.3-dfsg-4+deb8u1) but it is not going to be installed
Depends: erlang-inets (= 1:17.3-dfsg-4+deb8u1) but 1:20.1.1+dfsg-1 is to be installed
E: Unable to correct problems, you have held broken packages.

@zinid
Copy link
Contributor

zinid commented Oct 5, 2017

Why don't you ask on Debian forums/trackers about how to manage packages in Debian?
This is ejabberd issue tracker after all.

@DnaMes
Copy link

DnaMes commented Oct 5, 2017

This problem occurs if the DOCKERFILE will be build. I thought that will be relevant for here!?

@jacksgt
Copy link

jacksgt commented Nov 10, 2017

Hi, I am also encountering the same issue on armhf:

WARN:  Missing plugins: [rebar_elixir_compiler,rebar_exunit]
==> xmpp (compile)
Compiled src/xmpp_codec_external.erl
...
Compiled src/xep0158.erl
/tmp/ejabberd/deps/xmpp/xmpp_codec: function get_mod/2+2689:
  Internal consistency check failed - please report this bug.
  Instruction: {test,bs_test_tail2,{f,862},[{x,5},0]}
  Error:       {no_bsm_context,{x,5}}:

Compiling /tmp/ejabberd/deps/xmpp/src/xmpp_codec.erl failed:
ERROR: compile failed while processing /tmp/ejabberd/deps/xmpp: rebar_abort
Makefile:90: recipe for target 'deps/.built' failed

@zinid
Copy link
Contributor

zinid commented Nov 10, 2017

@jacksgt just don't use OTP 20.1

@jacksgt
Copy link

jacksgt commented Nov 10, 2017

@zinid Sorry, forgot to mention that I'm using this Dockerfile from @rroemhild https://github.com/rroemhild/docker-ejabberd/blob/master/Dockerfile which uses the official repos at http://packages.erlang-solutions.com/debian

Is this repo broken then?

@zinid
Copy link
Contributor

zinid commented Nov 10, 2017

I have no idea

@cromain
Copy link
Contributor

cromain commented Nov 16, 2017

we have several issues with erlang version from erlang-solutions packages.
example: processone/xmpp#17
we can't reproduce issue just using standard erlang, or from your main distro manager.
example https://packages.debian.org/search?keywords=erlang&searchon=names&suite=stable&section=all

@cromain
Copy link
Contributor

cromain commented Dec 20, 2017

Fixed in next 17.12, by using OTP 20.2.

@cromain cromain closed this as completed Dec 20, 2017
@jacksgt
Copy link

jacksgt commented Dec 28, 2017

@prefiks
Copy link
Member

prefiks commented Dec 28, 2017

Probably today.

@zinid
Copy link
Contributor

zinid commented Dec 28, 2017

@jacksgt we're on it at the moment, have several minor problems to solve.

@jacksgt
Copy link

jacksgt commented Dec 29, 2017

Awesome, thank you!

@lock
Copy link

lock bot commented Jun 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants