pguyot/nabblockly

rebar3 release fails on Debian Bullseye

f-laurens opened this issue · 1 comments

(test done with raspios_lite:2021-10-30 base image)

2021-11-10T19:37:44.0080930Z Installing NabBlockly.
2021-11-10T19:37:44.5702953Z Reading package lists...
2021-11-10T19:37:45.5251384Z Building dependency tree...
2021-11-10T19:37:45.5324733Z Reading state information...
2021-11-10T19:37:46.2442959Z The following additional packages will be installed:
2021-11-10T19:37:46.2445240Z   erlang-asn1 erlang-crypto erlang-ftp erlang-mnesia erlang-public-key
2021-11-10T19:37:46.2468761Z   erlang-runtime-tools erlang-ssl erlang-tftp
2021-11-10T19:37:46.2516236Z Suggested packages:
2021-11-10T19:37:46.2517529Z   erlang erlang-manpages erlang-doc
2021-11-10T19:37:46.2518778Z Recommended packages:
2021-11-10T19:37:46.2520063Z   libsctp1 erlang-syntax-tools
2021-11-10T19:37:46.3903530Z The following NEW packages will be installed:
2021-11-10T19:37:46.3916776Z   erlang-asn1 erlang-base erlang-crypto erlang-dev erlang-ftp erlang-inets
2021-11-10T19:37:46.3918714Z   erlang-mnesia erlang-public-key erlang-runtime-tools erlang-ssl erlang-tftp
2021-11-10T19:37:46.3939253Z   erlang-tools erlang-xmerl
2021-11-10T19:37:47.3927780Z 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
2021-11-10T19:37:47.3929212Z Need to get 14.8 MB of archives.
2021-11-10T19:37:47.3930047Z After this operation, 26.7 MB of additional disk space will be used.
2021-11-10T19:37:47.3932135Z Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-base armhf 1:23.2.6+dfsg-1 [8165 kB]
2021-11-10T19:37:48.1074061Z Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-asn1 armhf 1:23.2.6+dfsg-1 [769 kB]
2021-11-10T19:37:48.1369499Z Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-crypto armhf 1:23.2.6+dfsg-1 [171 kB]
2021-11-10T19:37:48.1438186Z Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-dev armhf 1:23.2.6+dfsg-1 [310 kB]
2021-11-10T19:37:48.2198619Z Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-mnesia armhf 1:23.2.6+dfsg-1 [755 kB]
2021-11-10T19:37:48.4788196Z Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-runtime-tools armhf 1:23.2.6+dfsg-1 [215 kB]
2021-11-10T19:37:48.7358219Z Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-public-key armhf 1:23.2.6+dfsg-1 [675 kB]
2021-11-10T19:37:49.0284659Z Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-ssl armhf 1:23.2.6+dfsg-1 [1317 kB]
2021-11-10T19:37:49.2841400Z Get:9 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-ftp armhf 1:23.2.6+dfsg-1 [102 kB]
2021-11-10T19:37:49.5300030Z Get:10 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-tftp armhf 1:23.2.6+dfsg-1 [117 kB]
2021-11-10T19:37:49.7913836Z Get:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-inets armhf 1:23.2.6+dfsg-1 [560 kB]
2021-11-10T19:37:50.0443125Z Get:12 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-tools armhf 1:23.2.6+dfsg-1 [522 kB]
2021-11-10T19:37:50.3211803Z Get:13 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf erlang-xmerl armhf 1:23.2.6+dfsg-1 [1137 kB]
2021-11-10T19:37:54.0952304Z Fetched 14.8 MB in 4s (3613 kB/s)
2021-11-10T19:37:54.3837163Z Selecting previously unselected package erlang-base.
2021-11-10T19:37:54.3975446Z (Reading database ... 
2021-11-10T19:37:54.5718041Z (Reading database ... 99821 files and directories currently installed.)
2021-11-10T19:37:54.5843450Z Preparing to unpack .../00-erlang-base_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:54.5898631Z Unpacking erlang-base (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:57.3255372Z Selecting previously unselected package erlang-asn1.
2021-11-10T19:37:57.3433965Z Preparing to unpack .../01-erlang-asn1_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:57.3493820Z Unpacking erlang-asn1 (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:57.8464035Z Selecting previously unselected package erlang-crypto.
2021-11-10T19:37:57.8646184Z Preparing to unpack .../02-erlang-crypto_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:57.8709301Z Unpacking erlang-crypto (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:58.2014783Z Selecting previously unselected package erlang-dev.
2021-11-10T19:37:58.2183694Z Preparing to unpack .../03-erlang-dev_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:58.2320709Z Unpacking erlang-dev (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:58.6536502Z Selecting previously unselected package erlang-mnesia.
2021-11-10T19:37:58.6688105Z Preparing to unpack .../04-erlang-mnesia_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:58.6818857Z Unpacking erlang-mnesia (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:59.1944319Z Selecting previously unselected package erlang-runtime-tools.
2021-11-10T19:37:59.2134680Z Preparing to unpack .../05-erlang-runtime-tools_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:59.2185475Z Unpacking erlang-runtime-tools (1:23.2.6+dfsg-1) ...
2021-11-10T19:37:59.5699253Z Selecting previously unselected package erlang-public-key.
2021-11-10T19:37:59.5882164Z Preparing to unpack .../06-erlang-public-key_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:37:59.5936836Z Unpacking erlang-public-key (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:00.0643624Z Selecting previously unselected package erlang-ssl.
2021-11-10T19:38:00.0843795Z Preparing to unpack .../07-erlang-ssl_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:00.0891087Z Unpacking erlang-ssl (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:00.7443289Z Selecting previously unselected package erlang-ftp.
2021-11-10T19:38:00.7638028Z Preparing to unpack .../08-erlang-ftp_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:00.7716724Z Unpacking erlang-ftp (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:01.0776198Z Selecting previously unselected package erlang-tftp.
2021-11-10T19:38:01.0929076Z Preparing to unpack .../09-erlang-tftp_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:01.0994122Z Unpacking erlang-tftp (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:01.4159179Z Selecting previously unselected package erlang-inets.
2021-11-10T19:38:01.4336153Z Preparing to unpack .../10-erlang-inets_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:01.4391165Z Unpacking erlang-inets (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:01.8741616Z Selecting previously unselected package erlang-tools.
2021-11-10T19:38:01.8927673Z Preparing to unpack .../11-erlang-tools_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:01.8955541Z Unpacking erlang-tools (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:02.3355907Z Selecting previously unselected package erlang-xmerl.
2021-11-10T19:38:02.3601481Z Preparing to unpack .../12-erlang-xmerl_1%3a23.2.6+dfsg-1_armhf.deb ...
2021-11-10T19:38:02.3673807Z Unpacking erlang-xmerl (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:02.9994858Z Setting up erlang-base (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:06.1646655Z Created symlink /etc/systemd/system/multi-user.target.wants/epmd.service → /lib/systemd/system/epmd.service.
2021-11-10T19:38:06.1650500Z Created symlink /etc/systemd/system/sockets.target.wants/epmd.socket → /lib/systemd/system/epmd.socket.
2021-11-10T19:38:13.1851424Z Searching for services which depend on erlang and should be started... none found.
2021-11-10T19:38:13.3633566Z Setting up erlang-xmerl (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.3705819Z Setting up erlang-dev (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.3836302Z Setting up erlang-asn1 (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.3911765Z Setting up erlang-tftp (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.3976357Z Setting up erlang-mnesia (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4057011Z Setting up erlang-crypto (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4120382Z Setting up erlang-runtime-tools (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4193460Z Setting up erlang-tools (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4294623Z Setting up erlang-public-key (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4368569Z Setting up erlang-ssl (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4438150Z Setting up erlang-ftp (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4506056Z Setting up erlang-inets (1:23.2.6+dfsg-1) ...
2021-11-10T19:38:13.4591730Z Processing triggers for man-db (2.9.4-2) ...
2021-11-10T19:38:15.9289100Z Cloning into 'nabblockly'...
22021-11-10T19:38:18.4106224Z --2021-11-10 20:38:18--  https://github.com/erlang/rebar3/releases/download/3.15.1/rebar3
2021-11-10T19:38:18.5980801Z Resolving github.com (github.com)... 140.82.114.3
2021-11-10T19:38:18.6009149Z Connecting to github.com (github.com)|140.82.114.3|:443... connected.
2021-11-10T19:38:18.7955887Z HTTP request sent, awaiting response... 302 Found
2021-11-10T19:38:18.9480339Z HTTP request sent, awaiting response... 200 OK
2021-11-10T19:38:18.9520060Z Length: 951017 (929K) [application/octet-stream]
2021-11-10T19:38:18.9527208Z Saving to: ‘rebar3’
2021-11-10T19:38:18.9542112Z 
2021-11-10T19:38:19.0194492Z    900K .......... .......... ........                        100% 23.3M=0.07s
2021-11-10T19:38:19.0197473Z 
2021-11-10T19:38:19.0223188Z 2021-11-10 20:38:19 (13.9 MB/s) - ‘rebar3’ saved [951017/951017]
2021-11-10T19:38:19.0224700Z 
2021-11-10T19:38:19.6308472Z Reading package lists...
2021-11-10T19:38:20.5892868Z Building dependency tree...
2021-11-10T19:38:20.5966097Z Reading state information...
2021-11-10T19:38:21.4004255Z g++ is already the newest version (4:10.2.1-1+rpi1).
2021-11-10T19:38:21.4005090Z g++ set to manually installed.
2021-11-10T19:38:21.4005697Z 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-11-10T19:38:25.7120699Z ===> Verifying dependencies...
2021-11-10T19:38:29.1455753Z ===> Fetching cowboy v2.7.0
2021-11-10T19:38:29.8443733Z ===> Fetching jiffy v1.0.1
2021-11-10T19:38:31.3529916Z ===> Fetching cowlib v2.8.0
2021-11-10T19:38:31.6808593Z ===> Fetching ranch v1.7.1
2021-11-10T19:38:33.6565747Z Uncaught error in rebar_core: {'EXIT',
2021-11-10T19:38:33.6567881Z                                {undef,
2021-11-10T19:38:33.6569228Z                                 [{rebar_utils,get_cwd,[],[]},
2021-11-10T19:38:33.6570773Z                                  {rebar_config,new,0,[]},
2021-11-10T19:38:33.6572155Z                                  {rebar,init_config,1,[]},
2021-11-10T19:38:33.6573628Z                                  {rebar,run,1,[]},
2021-11-10T19:38:33.6574824Z                                  {rebar,main,1,[]},
2021-11-10T19:38:33.6577811Z                                  {escript,run,2,
2021-11-10T19:38:33.6580396Z                                   [{file,"escript.erl"},{line,758}]},
2021-11-10T19:38:33.6582452Z                                  {escript,start,1,
2021-11-10T19:38:33.6584201Z                                   [{file,"escript.erl"},{line,277}]},
2021-11-10T19:38:33.6587164Z                                  {init,start_em,1,[]}]}}
2021-11-10T19:38:33.6600573Z =ERROR REPORT==== 10-Nov-2021::20:38:33.502187 ===
2021-11-10T19:38:33.6602313Z beam/beam_load.c(1621): Error loading module rebar_utils:
2021-11-10T19:38:33.6604154Z   please re-compile this module with an 23 compiler (old-style fun with indices: 1/4)
2021-11-10T19:38:33.6605158Z 
2021-11-10T19:38:33.6622930Z =ERROR REPORT==== 10-Nov-2021::20:38:33.504519 ===
2021-11-10T19:38:33.6626978Z Loading of /home/pi/pynab/nabblockly/_build/default/lib/jiffy/enc/enc/ebin/rebar_utils.beam failed: badfile
2021-11-10T19:38:33.6627930Z 
2021-11-10T19:38:33.6671836Z =ERROR REPORT==== 10-Nov-2021::20:38:33.665126 ===
2021-11-10T19:38:33.6673667Z Loading of /home/pi/pynab/nabblockly/_build/default/lib/jiffy/enc/enc/ebin/rebar_utils.beam failed: badfile
2021-11-10T19:38:33.6675503Z 
2021-11-10T19:38:33.6684976Z =ERROR REPORT==== 10-Nov-2021::20:38:33.664839 ===
2021-11-10T19:38:33.6686804Z beam/beam_load.c(1621): Error loading module rebar_utils:
2021-11-10T19:38:33.6689012Z   please re-compile this module with an 23 compiler (old-style fun with indices: 1/4)
2021-11-10T19:38:33.6690672Z 
2021-11-10T19:38:33.6934762Z escript: exception error: undefined function rebar_utils:delayed_halt/1
2021-11-10T19:38:33.6944026Z   in function  escript:run/2 (escript.erl, line 758)
2021-11-10T19:38:33.6944808Z   in call from escript:start/1 (escript.erl, line 277)
2021-11-10T19:38:33.6945409Z   in call from init:start_em/1 
2021-11-10T19:38:33.6945872Z   in call from init:do_boot/3 
2021-11-10T19:38:33.7098407Z ===> Hook for compile failed!
2021-11-10T19:38:33.7099213Z 
2021-11-10T19:38:33.7379148Z setup: Error on line 230: sudo -u ${owner} ./rebar3 release

The issue seems to be an incompatibility of OTP23 (the erlang version in Bullseye packages) and jiffy (a library used by nabblockly).

See: