-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error during compilation of 2.8.4 on Kubuntu 22.04 #273
Comments
Hi, I'm wondering whether this could be happening because this OS has a more recent version of Erlang than the version that we've tested the ControlHub against in the past. Can you check which version of Erlang is installed on that machine? BTW, if you don't need to use the ControlHub on this machine, you can also simply just compile uHAL by adding Cheers, |
Dear Tom, I just have tried to install all Erlang-... packages. and again failed...
Cheers, |
Hi Irakli, you could try to update the erlang-lager to a newer version in the rebar.config file.
And then recompile. Cheers, |
Using 3.9.2 from erlang-lager results in a different error: cd rel && escript /home/bon/ipbus-software/controlhub/rebar generate It seem that cd rel && escript /home/bon/ipbus-software/controlhub/rebar generate There is no 3.9.2 from basho. It seems that Erlang/OTP 24 causes the error. I can compile on OpenSuse where Erlang/OTP 22 is used. But the resulting file does not start: |
Hi, One of the OSs that the software is built and tested on in the CI is Fedora 33, which has Erlang 23, and so it should compile fine on Erlang 22 as well. If you are running the ControlHub from the source directories without installing it, you could try installing it using Otherwise, if that doesn't work, I'd suggest running the ControlHub on Fedora/RedHat/CentOS/Alma/Rocky, as the CI tests the software on a wide range of Fedora/RedHat/RedHat-derivative operating systems, and so we can most readily provide support for those operating systems. |
@UweBonnes |
Dear Maxim, This time I'm trying ipbus 2.8.5 , on kubuntu 22.04 LTS <<<<<< ERROR: 'get-deps' failed while processing /home/irakli/ipbus-software/controlhub: rebar_abort |
You look in basho but you should use erlang-lager/lager.git. B.t.w, in the meantime I got controlhub compiling and running on OpenSuse Leap 15.4. Install all needed packages and compile with the environment variable PYTHON set as python3. Install as root. |
Dear all, Best regards |
Dear All, and it still has a problem with erlang
How can I/we contribute to fixing this problem? I'm still using Kubuntu 20.04 LTE to have running ipbus software. Best regards, |
This change also worked for me on Linux Mint 21.3 (Ubuntu 22.04 base) |
@dhymers
%%%%%%%%%%%%%%%% {deps, [ exactly as you suggest. My lager is indeed 3.9.2 Compiled src/lager_syslog_backend.erl :(( unfortunately it didn't help. |
@ikeshel
|
Dear All,
I'm trying to compile ipbus-software from git 2.8.4 on Kubuntu 22.04. I have experience in compiling 2.8.1 on 20.04 which I'm currently using.
Here is the error:
Compiled src/lager_default_formatter.erl
Compiled src/lager_msg.erl
src/lager.erl:55:10: Warning: variable 'App' is bound multiple times in this pattern. If you mean to ignore this value, use '' or a different underscore-prefixed name
% 55| start_ok(_App, {error, {already_started, _App}}) -> ok;
% | ^
src/lager.erl:55:42: Warning: variable 'App' is bound multiple times in this pattern. If you mean to ignore this value, use '' or a different underscore-prefixed name
% 55| start_ok(_App, {error, {already_started, _App}}) -> ok;
% | ^
/home/irakli/ipbus-software/controlhub/deps/lager/src/lager.erl:55:10: Warning: variable 'App' is bound multiple times in this pattern. If you mean to ignore this value, use '' or a different underscore-prefixed name
/home/irakli/ipbus-software/controlhub/deps/lager/src/lager.erl:55:42: Warning: variable 'App' is bound multiple times in this pattern. If you mean to ignore this value, use '' or a different underscore-prefixed name
Compiled src/lager.erl
Compiled src/lager_trunc_io.erl
Compiled src/lager_handler_watcher.erl
Compiled src/error_logger_lager_h.erl
==> syslog (compile)
Compiled src/syslog_app.erl
Compiled src/syslog_sup.erl
Compiled src/syslog.erl
Compiling c_src/syslog_drv.c
==> lager_syslog (compile)
Compiled src/lager_syslog_backend.erl
==> rel (compile)
==> controlhub (compile)
Compiled src/ch_tcp_listener.erl
src/ch_utils.erl:none: error in parse transform 'lager_transform':
exception error: bad argument
in function integer_to_list/1
called as integer_to_list({65,14})
*** argument 1: not an integer
in call from lager_transform:make_varname/2 (src/lager_transform.erl, line 241)
in call from lager_transform:do_transform/5 (src/lager_transform.erl, line 180)
in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (src/lager_transform.erl, line 109)
in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (src/lager_transform.erl, line 109)
in call from lager_transform:transform_statement/2 (src/lager_transform.erl, line 107)
in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (src/lager_transform.erl, line 109)
in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (src/lager_transform.erl, line 109)
Compiling src/ch_utils.erl failed:
ERROR: compile failed while processing /home/irakli/ipbus-software/controlhub: rebar_abort
make[1]: *** [Makefile:65: _all] Error 1
make[1]: Leaving directory '/home/irakli/ipbus-software/controlhub'
make: *** [Makefile:58: controlhub/.virtual.Makefile] Error 2
real 1m0,390s
user 4m38,630s
sys 0m13,650s
irakli@dtlpc019:~/ipbus-software$
Please instruct me on how to proceed.
Best regards...
The text was updated successfully, but these errors were encountered: