Skip to content

Instantly share code, notes, and snippets.

@guillaumebreton
Created April 24, 2022 09:42
Show Gist options
  • Save guillaumebreton/fcede25cc9369dff3467747d40db6b15 to your computer and use it in GitHub Desktop.
Save guillaumebreton/fcede25cc9369dff3467747d40db6b15 to your computer and use it in GitHub Desktop.
mix do deps.get, firmware, firmware.burn
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
beam_notify 1.0.0
castore 0.1.16
circular_buffer 0.4.1
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
earmark_parser 1.4.25
elixir_make 0.6.3
gen_state_machine 3.0.0
jason 1.3.0
kino 0.2.3
livebook 0.2.3
mdns_lite 0.8.4
mime 2.0.2
muontrap 1.0.0
nerves 1.7.16
nerves_motd 0.1.7
nerves_pack 0.6.0
nerves_runtime 0.11.10
nerves_ssh 0.3.0
nerves_system_br 1.18.6
nerves_system_rpi0 1.18.4
nerves_time 0.4.5
nerves_toolchain_armv6_nerves_linux_gnueabihf 1.5.0
nerves_toolchain_ctng 1.8.5
one_dhcpd 2.0.0
phoenix 1.5.10
phoenix_html 3.0.0 RETIRED!
(security) The :class attribute in content_tag and in class={@class} for HEEx is not escaped against XSS
phoenix_live_dashboard 0.5.3
phoenix_live_view 0.16.0
phoenix_pubsub 2.1.1
plug 1.13.6
plug_cowboy 2.5.2
plug_crypto 1.2.2
ranch 1.8.0
ring_logger 0.8.4
shoehorn 0.8.0
ssh_subsystem_fwup 0.6.0
system_registry 0.8.2
telemetry 0.4.3
telemetry_metrics 0.6.1
telemetry_poller 0.5.1
toolshed 0.2.26
uboot_env 1.0.0
vega_lite 0.1.3
vintage_net 0.11.5
vintage_net_direct 0.10.5
vintage_net_ethernet 0.10.3
vintage_net_wifi 0.10.9
All dependencies are up to date
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: prod
==> jason
Compiling 10 files (.ex)
Generated jason app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> elixir_make
Compiling 1 file (.ex)
Generated elixir_make app
==> nerves
HOST_CC port.o
HOST_LD port
Compiling 42 files (.ex)
Generated nerves app
==> nerves_livebook
Checking for prebuilt Nerves artifacts...
Found nerves_system_rpi0 in cache
/Users/guillaume/.nerves/artifacts/nerves_system_rpi0-portable-1.18.4
Found nerves_toolchain_armv6_nerves_linux_gnueabihf in cache
/Users/guillaume/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: prod
==> nerves_system_br
Generated nerves_system_br app
==> nerves_toolchain_ctng
Compiling 1 file (.ex)
Generated nerves_toolchain_ctng app
==> nerves_toolchain_armv6_nerves_linux_gnueabihf
Generated nerves_toolchain_armv6_nerves_linux_gnueabihf app
==> nerves_system_rpi0
Generated nerves_system_rpi0 app
==> ssh_subsystem_fwup
Compiling 4 files (.ex)
Generated ssh_subsystem_fwup app
==> earmark_parser
Compiling 3 files (.erl)
Compiling 47 files (.ex)
Generated earmark_parser app
==> circular_buffer
Compiling 1 file (.ex)
Generated circular_buffer app
==> gen_state_machine
Compiling 3 files (.ex)
Generated gen_state_machine app
==> uboot_env
Compiling 5 files (.ex)
Generated uboot_env app
==> ring_logger
Compiling 4 files (.ex)
Generated ring_logger app
==> vega_lite
Compiling 5 files (.ex)
Generated vega_lite app
==> kino
Compiling 13 files (.ex)
Generated kino app
===> Analyzing applications...
===> Compiling ranch
==> system_registry
Compiling 13 files (.ex)
Generated system_registry app
===> Analyzing applications...
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
Generated telemetry_metrics app
===> Analyzing applications...
===> Compiling telemetry_poller
==> shoehorn
Compiling 7 files (.ex)
Generated shoehorn app
==> nerves_runtime
CC nerves_runtime.o
CC uevent.o
CC kmsg_tailer.o
LD nerves_runtime
Compiling 14 files (.ex)
Generated nerves_runtime app
==> toolshed
Compiling 18 files (.ex)
Generated toolshed app
==> nerves_motd
Compiling 3 files (.ex)
Generated nerves_motd app
==> nerves_ssh
Compiling 7 files (.ex)
warning: :lfe_io.prettyprint1/2 is undefined (module :lfe_io is not available or is yet to be defined)
lib/nerves_ssh/exec.ex:36: NervesSSH.Exec.run_lfe/1
warning: :lfe_shell.run_string/1 is undefined (module :lfe_shell is not available or is yet to be defined)
lib/nerves_ssh/exec.ex:35: NervesSSH.Exec.run_lfe/1
Generated nerves_ssh app
==> one_dhcpd
CC arp_set.o
LD arp_set
Compiling 8 files (.ex)
Generated one_dhcpd app
==> muontrap
make[1]: Entering directory '/Users/guillaume/Workspaces/skyview/deps/muontrap/src'
CC muontrap.o
LD muontrap
make[1]: Leaving directory '/Users/guillaume/Workspaces/skyview/deps/muontrap/src'
Compiling 5 files (.ex)
Generated muontrap app
==> beam_notify
CC beam_notify.o
LD beam_notify
Compiling 1 file (.ex)
Generated beam_notify app
==> vintage_net
CC if_monitor.o
LD if_monitor
Compiling 57 files (.ex)
Generated vintage_net app
==> mdns_lite
Compiling 1 file (.erl)
Compiling 18 files (.ex)
Generated mdns_lite app
==> vintage_net_direct
Compiling 2 files (.ex)
Generated vintage_net_direct app
==> vintage_net_ethernet
Compiling 3 files (.ex)
Generated vintage_net_ethernet app
==> vintage_net_wifi
CC force_ap_scan.o
LD force_ap_scan
CC mesh_mode.o
LD mesh_mode
CC mesh_param.o
LD mesh_param
Compiling 15 files (.ex)
Generated vintage_net_wifi app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
===> Analyzing applications...
===> Compiling cowlib
===> Analyzing applications...
===> Compiling cowboy
===> Analyzing applications...
===> Compiling cowboy_telemetry
==> mime
Compiling 1 file (.ex)
Generated mime app
==> nerves_time
CC ntpd_script.o
LD ntpd_script
Compiling 9 files (.ex)
Generated nerves_time app
==> nerves_pack
Compiling 1 file (.ex)
Generated nerves_pack app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> plug
Compiling 1 file (.erl)
Compiling 41 files (.ex)
warning: System.stacktrace/0 is deprecated. Use __STACKTRACE__ instead
lib/plug/conn/wrapper_error.ex:26: Plug.Conn.WrapperError.reraise/3
Generated plug app
==> phoenix_html
Compiling 8 files (.ex)
Generated phoenix_html app
==> plug_cowboy
Compiling 5 files (.ex)
Generated plug_cowboy app
==> phoenix
Compiling 66 files (.ex)
Generated phoenix app
==> phoenix_live_view
Compiling 28 files (.ex)
Generated phoenix_live_view app
==> phoenix_live_dashboard
Compiling 40 files (.ex)
Generated phoenix_live_dashboard app
==> livebook
Compiling 108 files (.ex)
warning: Kino.Render.to_livebook/1 defined in application :kino is used by the current application but the current application does not depend on :kino. To fix this, you must do one of:
1. If :kino is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2. If :kino is a dependency, make sure it is listed under "def deps" in your mix.exs
3. In case you don't want to add a requirement to :kino, you may optionally skip this warning by adding [xref: [exclude: [Kino.Render]]] to your "def project" in mix.exs
lib/livebook/evaluator/default_formatter.ex:41: Livebook.Evaluator.DefaultFormatter.to_output/1
Generated livebook app
==> nerves_livebook
Compiling 2 files (.ex)
Generated nerves_livebook app
|nerves_bootstrap| Building OTP Release...
* skipping runtime configuration (config/runtime.exs not found)
* creating _build/rpi0_prod/rel/nerves_livebook/releases/0.1.0/vm.args
Updating base firmware image with Erlang release...
dyld[25365]: Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: /Users/guillaume/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/libexec/gcc/armv6-nerves-linux-gnueabihf/10.3.0/cc1
Reason: tried: '/usr/local/opt/zstd/lib/libzstd.1.dylib' (no such file), '/usr/local/lib/libzstd.1.dylib' (no such file), '/usr/lib/libzstd.1.dylib' (no such file)
armv6-nerves-linux-gnueabihf-gcc: internal compiler error: Abort trap: 6 signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
scrub-otp-release.sh: ERROR: Unexpected executable format for '/Users/guillaume/Workspaces/skyview/_build/_nerves-tmp/rootfs_overlay/srv/erlang/lib/os_mon-2.7.1/priv/bin/cpu_sup'
Got:
readelf:ARM;0x5000400, Version5 EABI, hard-float ABI
Expecting:
portable
This file was compiled for the host or a different target and probably
will not work.
Check the following:
1. Are you using a path dependency in your mix deps? If so, run
'mix clean' in that directory to avoid pulling in any of its
build products.
2. Did you recently upgrade to Elixir 1.9 or Nerves 1.5?
Nerves 1.5 adds support for Elixir 1.9 Releases and requires
you to either add an Elixir 1.9 Release configuration or add
Distillery as a dependency. Without this, the OTP binaries
for your build machine will get included incorrectly and cause
this error. See
https://hexdocs.pm/nerves/updating-projects.html#updating-from-v1-4-to-v1-5
3. Did you recently upgrade or change your Nerves system? If so,
try cleaning and rebuilding this project and its deps.
4. Are you building outside of Nerves' mix integration? If so,
make sure that you've sourced 'nerves-env.sh'.
If you are very sure you know what you are doing, you may place an empty
file in the same directory as the offending file(s) called '.noscrub'.
This will explicitly disable scrubbing for that directory.
If you're still having trouble, please file an issue on Github
at https://github.com/nerves-project/nerves_system_br/issues.
** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment