Build log
host
tuning_fork_drafter 0.1.11 · fail · run tuning_fork_drafter-0.1.11-1791145837646
254 of 254 lines
1Resolving Hex dependencies...2Resolution completed in 0.25s3Unchanged:4 circular_buffer 1.1.05 drafter 0.4.06 elixir_make 0.10.07 french_curve 0.1.48 interactive_cmd 0.1.49 nerves 2.0.0-pre.210 nerves_discovery 0.1.511 nerves_logging 0.2.412 nerves_runtime 0.13.1313 nerves_system_bbb 2.30.214 nerves_system_br 1.34.415 nerves_system_mangopi_mq_pro 0.17.216 nerves_system_qemu_aarch64 0.4.217 nerves_system_rpi0 2.1.218 nerves_system_rpi4 2.1.219 nerves_system_rpi5 2.1.220 nerves_system_trellis 0.5.021 nerves_system_x86_64 1.34.222 nerves_toolchain_aarch64_nerves_linux_gnu 15.3.123 nerves_toolchain_armv6_nerves_linux_gnueabihf 15.3.124 nerves_toolchain_armv7_nerves_linux_gnueabihf 15.3.125 nerves_toolchain_riscv64_nerves_linux_gnu 15.3.126 nerves_toolchain_x86_64_nerves_linux_musl 15.3.127 nerves_uevent 0.1.728 phoenix_pubsub 2.3.029 property_table 0.3.430 ring_logger 0.11.731 spark 2.7.632 tablet 0.3.333 toolshed 0.5.034 tuning_fork 0.1.1135 tuning_fork_composer 0.1.1136 tuning_fork_drafter 0.1.1137 tuning_fork_midi 0.1.1138 uboot_env 1.0.239All dependencies have been fetched40==> spark41Compiling 46 files (.ex)42Generated spark app43==> drafter44mkdir -p priv45cc -fPIC -O2 -I/usr/local/lib/erlang/erts-17.1/include -o priv/termios_nif.so.tmp c_src/termios_nif.c -shared -lutil && mv -f priv/termios_nif.so.tmp priv/termios_nif.so46cc -O2 -o priv/pty_spawn.tmp c_src/pty_spawn.c && mv -f priv/pty_spawn.tmp priv/pty_spawn47c_src/termios_nif.c: In function ‘restore_terminal’:48c_src/termios_nif.c:33:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]49 33 | write(STDOUT_FILENO, sequences, strlen(sequences));50 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~51Compiling 202 files (.ex)52 warning: unused require Logger53 │54 4 │ require Logger55 │ ~56 │57 └─ lib/drafter/diagnostics/logging.ex:4:35859 warning: this clause of defp since_last_push/1 is never used (or it will always fail/warn when invoked)60 │61 580 │ defp since_last_push(nil), do: :infinity62 │ ~63 │64 └─ lib/drafter/widget_runtime/widget_server.ex:580:8: Drafter.WidgetServer.since_last_push/16566 warning: the following clause is redundant:6768 def get_unmasked_value(%Drafter.Widget.MaskedInput{value: value, mask: mask})6970 it has type:7172 dynamic(%Drafter.Widget.MaskedInput{})7374 previous clauses have already matched on the following types:7576 %Drafter.Widget.MaskedInput{}7778 │79 375 │ def get_unmasked_value(%__MODULE__{value: value, mask: mask}), do: strip_mask(value, mask)80 │ ~81 │82 └─ lib/drafter/widget/masked_input.ex:375:7: Drafter.Widget.MaskedInput.get_unmasked_value/18384 warning: the following clause is redundant:8586 def handle_event(_event, state)8788 it has type:8990 dynamic(), dynamic()9192 previous clauses have already matched on the following types:9394 {:key, :escape}, term()95 {:key, :h}, term()96 {:bracketed_paste, term()}, term()97 term(), term()9899 │100 1 │ defmodule Drafter.Widget.FilePicker do101 │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~102 │103 └─ lib/drafter/widget/file_picker.ex:1: Drafter.Widget.FilePicker.handle_event/2104105 warning: the following conditional expression:106107 new_index108109 will always evaluate to:110111 dynamic(not false and not nil)112113 where "new_index" was given the type:114115 # type: dynamic(not false and not nil)116 # from: lib/drafter/widget/data_table/selection.ex:75:15117 new_index =118 case find_next_enabled_from(state.data, target_index) do119 ...120 end121122 type warning found at:123 │124 84 │ if new_index do125 │ ~~~~~~~~~~~~~~~126 │127 └─ lib/drafter/widget/data_table/selection.ex:84: Drafter.Widget.DataTable.Selection.action_page_down/2128129 warning: the following clause is redundant:130131 other ->132133 previous clauses have already matched on the following types:134135 {term(), term()}136137 where "other" was given the type:138139 # type: dynamic({term(), term()})140 # from: lib/drafter/terminal/driver.ex:471:7141 other142143 type warning found at:144 │145 471 │ other -> {:error, {:stty_failed, other}}146 │ ~147 │148 └─ lib/drafter/terminal/driver.ex:471:13: Drafter.Terminal.Driver.enter_terminal_mode_with_stty/0149150 warning: the following clause is redundant:151152 defp get_state_value(state, key)153 when is_map(state) and is_map_key(state, :__struct__) and154 is_atom(:erlang.map_get(:__struct__, state))155156 it has type:157158 dynamic(%{..., __struct__: atom()}), dynamic()159160 previous clauses have already matched on the following types:161162 map(), term()163164 │165 159 │ defp get_state_value(state, key) when is_struct(state) do166 │ ~167 │168 └─ lib/drafter/style/computed.ex:159:8: Drafter.Style.Computed.get_state_value/2169170 warning: the following clause is redundant:171172 defp apply_render_result({:error, _reason}, _, _, _, _, _)173174 it has type:175176 dynamic({:error, term()}), dynamic(), dynamic(), dynamic(), dynamic(), dynamic()177178 previous clauses have already matched on the following types:179180 {...}, term(), term(), term(), term(), term()181 empty_list() or non_empty_list(term(), term()), term(), term(), term(), term(), term()182183 │184 211 │ defp apply_render_result({:error, _reason}, _, _, _, _, _), do: {:error, nil}185 │ ~186 │187 └─ lib/drafter/runtime/renderer.ex:211:8: Drafter.Runtime.Renderer.apply_render_result/6188189 warning: this guard will never succeed:190191 false192193 because it returns type:194195 false196197 type warning found at:198 │199 765 │ defp paintable_region(_strips, _rect) when false, do: false200 │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~201 │202 └─ lib/drafter/runtime/renderer.ex:765: Drafter.Runtime.Renderer.paintable_region/2203204 warning: the following clause is redundant:205206 def handle_event(_event, state)207208 it has type:209210 dynamic(), dynamic()211212 previous clauses have already matched on the following types:213214 {:key, :enter}, term()215 {:key, :escape}, term()216 term(), term()217218 │219 1 │ defmodule Drafter.Accounts.RegisterApp do220 │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~221 │222 └─ lib/drafter/accounts/register_app.ex:1: Drafter.Accounts.RegisterApp.handle_event/2223224 warning: this clause of defp safe_widget_state/1 is never used (or it will always fail/warn when invoked)225 │226 748 │ defp safe_widget_state(nil), do: nil227 │ ~228 │229 └─ lib/drafter.ex:748:8: Drafter.safe_widget_state/1230231Generated drafter app232==> tuning_fork_composer233Compiling 4 files (.ex)234Generated tuning_fork_composer app235==> tuning_fork_midi236mkdir -p priv237cc -fPIC -O2 -I/usr/local/lib/erlang/erts-17.1/include -Ic_src -o priv/tuning_fork_midi_nif.so c_src/tuning_fork_midi_nif.c -shared -lpthread -lasound238In file included from c_src/tuning_fork_midi_nif.c:22:239c_src/minimidio.h:474:12: fatal error: alsa/asoundlib.h: No such file or directory240 474 | # include <alsa/asoundlib.h>241 | ^~~~~~~~~~~~~~~~~~242compilation terminated.243make: *** [Makefile:24: priv/tuning_fork_midi_nif.so] Error 1244could not compile dependency :tuning_fork_midi, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile tuning_fork_midi --force", update it with "mix deps.update tuning_fork_midi" or clean it with "mix deps.clean tuning_fork_midi"245==> nerves_compatibility_test246** (Mix) Could not compile with "make" (exit status: 2).247tuning_fork_midi's MIDI ports did not build.248249This package is only the ports. tuning_fork itself is pure Elixir and needs none of it:250drop this dependency and everything but playing to and reading from a MIDI device still251works, including writing a .mid file with TuningFork.Midi.write!/3.252253Building it needs a C compiler, and on Linux the ALSA headers (libasound2-dev).254