Skip to contentSkip to conversation

"mandatory chunk of type 'Atom' not found " "| escript: exception error: undefined function rebar3:main/1"

DISCUSSION [email protected] 1 participant 1 message Apr 13, 2023

lore
Share & tools
lore
#0 lore raw

Hello All,

i want to add a recipe lorawan-server in my source. here i am facing some errors as below. Can anyone help me out to solve these errors,

************************************************************************************************************************************
NOTE: Executing RunQueue Tasks
WARNING: lorawan-server-0.6.7-r0 do_fetch: Failed to fetch URL git://github.com/gotthardp/lorawan-server.git;branch=master, attempting MIRRORS if available
ERROR: lorawan-server-0.6.7-r0 do_compile: oe_runmake failed
ERROR: lorawan-server-0.6.7-r0 do_compile: Function failed: do_compile (log file is located at /home/saswati/rugged_board/yocto_rba5d2x/build/tmp/work/cortexa5hf-neon-poky-linux-musleabi/lorawan-server/0.6.7-r0/temp/log.do_compile.1026662)
ERROR: Logfile of failure stored in: /home/saswati/rugged_board/yocto_rba5d2x/build/tmp/work/cortexa5hf-neon-poky-linux-musleabi/lorawan-server/0.6.7-r0/temp/log.do_compile.1026662
Log data follows:

| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 release
| wget https://s3.amazonaws.com/rebar3/rebar3 || curl -Lo rebar3 https://s3.amazonaws.com/rebar3/rebar3
| --2023-04-13 06:49:35--  https://s3.amazonaws.com/rebar3/rebar3
| Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.221.160, 52.217.113.136, 54.231.137.64, ...
| Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.221.160|:443... connected.
| HTTP request sent, awaiting response... 200 OK
| Length: 794893 (776K) [binary/octet-stream]
| Saving to: ‘rebar3’
|
|      0K .......... .......... .......... .......... ..........  6%  109K 7s
|     50K .......... .......... .......... .......... .......... 12%  219K 5s
|    100K .......... .......... .......... .......... .......... 19% 42.5M 3s
|    150K .......... .......... .......... .......... .......... 25%  435K 2s
|    200K .......... .......... .......... .......... .......... 32%  416K 2s
|    250K .......... .......... .......... .......... .......... 38% 10.0M 1s
|    300K .......... .......... .......... .......... .......... 45% 12.8M 1s
|    350K .......... .......... .......... .......... .......... 51%  502K 1s
|    400K .......... .......... .......... .......... .......... 57%  438K 1s
|    450K .......... .......... .......... .......... .......... 64% 41.2M 1s
|    500K .......... .......... .......... .......... .......... 70% 3.55M 0s
|    550K .......... .......... .......... .......... .......... 77% 23.8M 0s
|    600K .......... .......... .......... .......... .......... 83% 44.2M 0s
|    650K .......... .......... .......... .......... .......... 90% 26.5M 0s
|    700K .......... .......... .......... .......... .......... 96%  529K 0s
|    750K .......... .......... ......                          100%  370M=1.3s
|
| 2023-04-13 06:49:37 (617 KB/s) - ‘rebar3’ saved [794893/794893]
|
|
| =ERROR REPORT==== 13-Apr-2023::06:49:38 ===
| Loading of /home/saswati/rugged_board/yocto_rba5d2x/build/tmp/work/cortexa5hf-neon-poky-linux-musleabi/lorawan-server/0.6.7-r0/git/rebar3/rebar/ebin/rebar3.beam failed: badfile
|
| =ERROR REPORT==== 13-Apr-2023::06:49:38 ===
| beam/beam_load.c(1189): Error loading module rebar3:
|   mandatory chunk of type 'Atom' not found
|
|
| escript: exception error: undefined function rebar3:main/1
|   in function  escript:run/2 (escript.erl, line 757)
|   in call from escript:start/1 (escript.erl, line 277)
|   in call from init:start_it/1
|   in call from init:start_em/1
| make: *** [Makefile:35: release] Error 127
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/saswati/rugged_board/yocto_rba5d2x/build/tmp/work/cortexa5hf-neon-poky-linux-musleabi/lorawan-server/0.6.7-r0/temp/log.do_compile.1026662)

ERROR: Task (/home/saswati/rugged_board/yocto_rba5d2x/sources/poky/../meta-rbgateway/recipes-example/lorawan-server/lorawan-server_0.6.7.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 622 tasks of which 607 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/saswati/rugged_board/yocto_rba5d2x/sources/poky/../meta-rbgateway/recipes-example/lorawan-server/lorawan-server_0.6.7.bb:do_compile
Summary: There were 8 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
*************************************************************************************************************************************

Thank you all in advance.
Saswati