Skip to content

Instantly share code, notes, and snippets.

@fpauser
Created May 22, 2017 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fpauser/b29779fcdc94cd3bcf652d3d9264f43f to your computer and use it in GitHub Desktop.
Save fpauser/b29779fcdc94cd3bcf652d3d9264f43f to your computer and use it in GitHub Desktop.
[21:56 fpauser ~/dev]$ cd nerves-examples/
[21:56 fpauser ~/dev/nerves-examples (master)]$ ls
blinky hello_gpio hello_gpio_input hello_leds hello_network hello_phoenix hello_wifi neopixel README.md
[21:56 fpauser ~/dev/nerves-examples (master)]$ cd hello_phoenix/
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ ls
apps config mix.exs mix.lock README.md
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ export MIX_TARGET=rpi3
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ mix deps.get
Env
MIX_TARGET: rpi3
MIX_ENV: dev
Running dependency resolution...
* Getting phoenix (Hex package)
Checking package (https://repo.hex.pm/tarballs/phoenix-1.2.3.tar)
Fetched package
* Getting phoenix_pubsub (Hex package)
Checking package (https://repo.hex.pm/tarballs/phoenix_pubsub-1.0.1.tar)
Fetched package
* Getting phoenix_html (Hex package)
Checking package (https://repo.hex.pm/tarballs/phoenix_html-2.9.3.tar)
Fetched package
* Getting phoenix_live_reload (Hex package)
Checking package (https://repo.hex.pm/tarballs/phoenix_live_reload-1.0.8.tar)
Fetched package
* Getting gettext (Hex package)
Checking package (https://repo.hex.pm/tarballs/gettext-0.13.1.tar)
Fetched package
* Getting cowboy (Hex package)
Checking package (https://repo.hex.pm/tarballs/cowboy-1.1.2.tar)
Fetched package
* Getting cowlib (Hex package)
Checking package (https://repo.hex.pm/tarballs/cowlib-1.0.2.tar)
Fetched package
* Getting ranch (Hex package)
Checking package (https://repo.hex.pm/tarballs/ranch-1.3.2.tar)
Fetched package
* Getting fs (Hex package)
Checking package (https://repo.hex.pm/tarballs/fs-0.9.2.tar)
Fetched package
* Getting plug (Hex package)
Checking package (https://repo.hex.pm/tarballs/plug-1.3.4.tar)
Fetched package
* Getting mime (Hex package)
Checking package (https://repo.hex.pm/tarballs/mime-1.1.0.tar)
Fetched package
* Getting poison (Hex package)
Checking package (https://repo.hex.pm/tarballs/poison-2.2.0.tar)
Fetched package
* Getting nerves (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves-0.5.1.tar)
Fetched package
* Getting nerves_runtime (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_runtime-0.1.2.tar)
Fetched package
* Getting nerves_system_rpi3 (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_system_rpi3-0.11.0.tar)
Fetched package
* Getting nerves_networking (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_networking-0.6.0.tar)
Fetched package
* Getting nerves_system_br (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_system_br-0.9.4.tar)
Fetched package
* Getting nerves_toolchain_arm_unknown_linux_gnueabihf (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_toolchain_arm_unknown_linux_gnueabihf-0.10.0.tar)
Fetched package
* Getting nerves_toolchain_ctng (Hex package)
Checking package (https://repo.hex.pm/tarballs/nerves_toolchain_ctng-0.9.0.tar)
Fetched package
* Getting elixir_make (Hex package)
Checking package (https://repo.hex.pm/tarballs/elixir_make-0.4.0.tar)
Fetched package
* Getting gen_stage (Hex package)
Checking package (https://repo.hex.pm/tarballs/gen_stage-0.11.0.tar)
Fetched package
* Getting distillery (Hex package)
Checking package (https://repo.hex.pm/tarballs/distillery-1.3.1.tar)
Fetched package
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ mix deps.get
Env
MIX_TARGET: rpi3
MIX_ENV: dev
Running dependency resolution...
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ mix firmware
Env
MIX_TARGET: rpi3
MIX_ENV: dev
==> nerves_system_br
Generated nerves_system_br app
==> nerves_toolchain_ctng
Compiling 2 files (.ex)
Generated nerves_toolchain_ctng app
Could not find "rebar", which is needed to build dependency :fs
I can install a local copy which is just used by Mix
Shall I install rebar? (if running non-interactively, use: "mix local.rebar --force") [Yn] Y
* creating /home/fpauser/.asdf/installs/elixir/1.4.4/.mix/rebar
* creating /home/fpauser/.asdf/installs/elixir/1.4.4/.mix/rebar3
==> fs (compile)
Compiled src/fs_app.erl
Compiled src/fs_event_bridge.erl
Compiled src/fs.erl
Compiled src/fs_sup.erl
Compiled src/fs_server.erl
Compiled src/sys/fsevents.erl
Compiled src/sys/inotifywait_win32.erl
Compiled src/sys/inotifywait.erl
==> gettext
Compiling 1 file (.yrl)
Compiling 1 file (.erl)
Compiling 20 files (.ex)
Generated gettext app
==> gen_stage
Compiling 7 files (.ex)
Generated gen_stage app
===> Compiling ranch
==> poison
Compiling 4 files (.ex)
warning: HashDict.size/1 is deprecated, use maps and the Map module instead
lib/poison/encoder.ex:283
Generated poison app
==> elixir_make
Compiling 1 file (.ex)
Generated elixir_make app
==> nerves_runtime
cc -c -I"/home/fpauser/.asdf/installs/erlang/19.3/lib/erlang/usr/include" -O2 -Wall -Wextra -Wno-unused-parameter -pedantic -std=gnu99 -o src/uevent.o src/uevent.c
cc -c -I"/home/fpauser/.asdf/installs/erlang/19.3/lib/erlang/usr/include" -O2 -Wall -Wextra -Wno-unused-parameter -pedantic -std=gnu99 -o src/erlcmd.o src/erlcmd.c
cc src/uevent.o src/erlcmd.o -L"/home/fpauser/.asdf/installs/erlang/19.3/lib/erlang/usr/lib" -lei -lmnl -o priv/uevent
Compiling 14 files (.ex)
Generated nerves_runtime app
==> phoenix_pubsub
Compiling 12 files (.ex)
Generated phoenix_pubsub app
===> Compiling cowlib
src/cow_multipart.erl:392: Warning: crypto:rand_bytes/1 is deprecated and will be removed in a future release; use crypto:strong_rand_bytes/1
===> Compiling cowboy
==> mime
Compiling 1 file (.ex)
Generated mime app
warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
/home/fpauser/dev/nerves-examples/hello_phoenix/deps/nerves_networking/mix.exs:11
warning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
/home/fpauser/dev/nerves-examples/hello_phoenix/deps/nerves_networking/mix.exs:14
==> nerves_networking
Compiling 4 files (.ex)
warning: variable "self" does not exist and is being expanded to "self()", please use parentheses to remove the ambiguity or change the variable name
lib/networking.ex:73
warning: variable "ensure_udhcpc_setup!" does not exist and is being expanded to "ensure_udhcpc_setup!()", please use parentheses to remove the ambiguity or change the variable name
lib/networking/subsystem.ex:40
warning: Dict.merge/2 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
lib/networking/server.ex:22
warning: Dict.take/2 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
lib/networking/server.ex:33
warning: Dict.take/2 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
lib/networking/server.ex:87
warning: Dict.merge/2 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
lib/networking/server.ex:91
warning: Dict.has_key?/2 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
lib/networking/server.ex:119
warning: variable "os_module" does not exist and is being expanded to "os_module()", please use parentheses to remove the ambiguity or change the variable name
lib/networking/subsystem.ex:171
warning: variable "node" does not exist and is being expanded to "node()", please use parentheses to remove the ambiguity or change the variable name
lib/networking/subsystem.ex:181
Generated nerves_networking app
==> plug
Compiling 44 files (.ex)
Generated plug app
==> phoenix_html
Compiling 8 files (.ex)
Generated phoenix_html app
==> phoenix
Compiling 60 files (.ex)
Generated phoenix app
==> phoenix_live_reload
Compiling 3 files (.ex)
Generated phoenix_live_reload app
==> distillery
Compiling 18 files (.ex)
Generated distillery app
==> nerves
Compiling 25 files (.ex)
warning: function Mix.Nerves.IO.shell_info/1 is undefined (module Mix.Nerves.IO is not available)
lib/mix/tasks/firmware.ex:44
warning: function Mix.Tasks.Nerves.Env.run/1 is undefined (module Mix.Tasks.Nerves.Env is not available)
lib/mix/tasks/nerves.info.ex:19
warning: function Nerves.Bootstrap.version/0 is undefined (module Nerves.Bootstrap is not available)
lib/mix/tasks/nerves.info.ex:21
warning: function Mix.Nerves.IO.shell_info/3 is undefined (module Mix.Nerves.IO is not available)
lib/nerves/package/providers/docker.ex:416
warning: function Mix.Nerves.IO.shell_info/3 is undefined (module Mix.Nerves.IO is not available)
lib/nerves/package/providers/http.ex:104
Generated nerves app
==> nerves_toolchain_arm_unknown_linux_gnueabihf
Compiling 1 file (.ex)
Generated nerves_toolchain_arm_unknown_linux_gnueabihf app
could not compile dependency :nerves_toolchain_arm_unknown_linux_gnueabihf, "mix compile" failed. You can recompile this dependency with "mix deps.compile nerves_toolchain_arm_unknown_linux_gnueabihf", update it with "mix deps.update nerves_toolchain_arm_unknown_linux_gnueabihf" or clean it with "mix deps.clean nerves_toolchain_arm_unknown_linux_gnueabihf"
** (UndefinedFunctionError) function Mix.Nerves.IO.shell_info/3 is undefined (module Mix.Nerves.IO is not available)
Mix.Nerves.IO.shell_info("Downloading Artifact nerves_toolchain_arm_unknown_linux_gnueabihf-0.10.0.linux-x86_64.tar.xz", " From Location:\n https://github.com/nerves-project/toolchains/releases/download/v0.10.0/nerves_toolchain_arm_unknown_linux_gnueabihf-0.10.0.linux-x86_64.tar.xz\n", Nerves.Package.Providers.HTTP)
lib/nerves/package/providers/http.ex:37: Nerves.Package.Providers.HTTP.download/2
lib/nerves/package/providers/http.ex:19: Nerves.Package.Providers.HTTP.artifact/3
(elixir) lib/enum.ex:1755: Enum."-reduce/3-lists^foldl/2-0-"/3
lib/nerves/package.ex:98: Nerves.Package.artifact/2
(mix) lib/mix/task.ex:300: Mix.Task.run_task/3
(elixir) lib/enum.ex:1229: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1229: Enum."-map/2-lists^map/1-0-"/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment