Build log
host
blue_heron_transport_usb 0.2.0 · fail · run blue_heron_transport_usb-0.2.0-1791156590948
361 of 361 lines
1Resolving Hex dependencies...2Resolution completed in 0.267s3Unchanged:4 blue_heron 0.3.05 blue_heron_transport_usb 0.2.06 circular_buffer 1.1.07 elixir_make 0.7.88 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 property_table 0.3.429 ring_logger 0.11.730 tablet 0.3.331 toolshed 0.5.032 uboot_env 1.0.233All dependencies have been fetched34==> blue_heron35Compiling 96 files (.ex)36 warning: using single-quoted strings to represent charlists is deprecated.37 Use ~c"" if you indeed want a charlist or use "" instead.38 You may run "mix format --migrate" to change all single-quoted39 strings to use the ~c sigil and fix this warning.40 │41 81 │ to_string(:io_lib.format('~2.16.0B:~2.16.0B:~2.16.0B:~2.16.0B:~2.16.0B:~2.16.0B', iodata))42 │ ~43 │44 └─ lib/blue_heron/address.ex:81:304546 warning: the variable "pair_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator47 │48 58 │ <<chunk::binary-size(pair_size), rest::binary>> = data49 │ ~50 │51 └─ lib/blue_heron/att/responses/find_information_response.ex:58:26: BlueHeron.ATT.FindInformationResponse.chunk_information_data/35253 warning: the variable "item_length" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator54 │55 64 │ <<attribute_data::binary-size(item_length), rest::binary>> = attribute_data56 │ ~57 │58 └─ lib/blue_heron/att/responses/read_by_type_response.ex:64:35: BlueHeron.ATT.ReadByTypeResponse.deserialize_attribute_data/35960 warning: the variable "item_length" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator61 │62 41 │ <<attribute_data::binary-size(item_length), rest::binary>> = data63 │ ~64 │65 └─ lib/blue_heron/att/responses/read_by_group_type_response.ex:41:35: BlueHeron.ATT.ReadByGroupTypeResponse.deserialize_attribute_data/36667 warning: the variable "field_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator68 │69 188 │ <<parameter::little-size(field_size), bin::binary>> = bin70 │ ~71 │72 └─ lib/blue_heron/hci/arrayed_data.ex:188:30: BlueHeron.HCI.ArrayedData.deserialize/37374 warning: the variable "field_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator75 │76 200 │ <<parameter::little-size(field_size), bin::binary>> = bin77 │ ~78 │79 └─ lib/blue_heron/hci/arrayed_data.ex:200:30: BlueHeron.HCI.ArrayedData.deserialize/38081 warning: the variable "field_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator82 │83 214 │ <<parameter::binary-size(field_size), bin::binary>> ->84 │ ~85 │86 └─ lib/blue_heron/hci/arrayed_data.ex:214:32: BlueHeron.HCI.ArrayedData.deserialize/38788 warning: the variable "field_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator89 │90 227 │ <<parameter::little-size(field_size), bin::binary>> ->91 │ ~92 │93 └─ lib/blue_heron/hci/arrayed_data.ex:227:32: BlueHeron.HCI.ArrayedData.deserialize/39495 warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead96 │97 217 │ Logger.warn(98 │ ~99 │100 └─ lib/blue_heron/att/client.ex:217:12: BlueHeron.ATT.Client.connecting/3101102 warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead103 │104 231 │ Logger.warn("Timeout establishing connection")105 │ ~106 │107 └─ lib/blue_heron/att/client.ex:231:12: BlueHeron.ATT.Client.connecting/3108109 warning: the variable "payload_length" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator110 │111 27 │ <<payload::binary-size(payload_length), rest::binary>> = rest112 │ ~113 │114 └─ lib/blue_heron/hci_dump.ex:27:28: BlueHeron.HCIDump.decode_bin/2115116 warning: unused require Logger117 │118 29 │ require Logger119 │ ~120 │121 └─ lib/blue_heron/hci/events/command_status.ex:29:3122123 warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead124 │125 67 │ Logger.warn("""126 │ ~127 │128 └─ lib/blue_heron/hci/events/command_complete.ex:67:14: BlueHeron.HCI.Event.CommandComplete.maybe_decode_return_parameters/1129130 warning: unused require BlueHeron.HCI.CommandComplete.ReturnParameters131 │132 12 │ require BlueHeron.HCI.CommandComplete.ReturnParameters133 │ ~134 │135 └─ lib/blue_heron/hci/events/command_complete.ex:12:3136137 warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead138 │139 257 │ Logger.warn("Create connection called, but already connected!")140 │ ~141 │142 └─ lib/blue_heron/att/client.ex:257:12: BlueHeron.ATT.Client.connected/3143144 warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead145 │146 326 │ Logger.warn("Disconnected from #{inspect(handle, base: :hex)}")147 │ ~148 │149 └─ lib/blue_heron/att/client.ex:326:12: BlueHeron.ATT.Client.connected/3150151 warning: a struct for BlueHeron.ATT.Client is expected on struct update:152153 %BlueHeron.ATT.Client{data | caller: nil}154155 but got type:156157 dynamic(%{158 ...,159 caller: nil or {term(), term()},160 connection: %{..., connection_handle: term()},161 controlling_process: atom() or pid() or port() or reference() or {atom(), atom()}162 })163164 where "data" was given the types:165166 # type: dynamic(%{..., connection: %{..., connection_handle: term()}})167 # from: lib/blue_heron/att/client.ex:324:53168 %{connection: %{connection_handle: handle}} = data169170 # type: dynamic(%{..., caller: nil or {term(), term()}, connection: %{..., connection_handle: term()}})171 # from: lib/blue_heron/att/client.ex:332:10172 maybe_reply([{:next_event, :internal, :create_connection}], data.caller, {:error, disconnect})173174 # type: dynamic(%{175 ...,176 caller: nil or {term(), term()},177 connection: %{..., connection_handle: term()},178 controlling_process: atom() or pid() or port() or reference() or {atom(), atom()}179 })180 # from: lib/blue_heron/att/client.ex:334:5181 send(data.controlling_process, {BlueHeron.ATT.Client, self(), disconnect})182183 when defining the variable "data", you must also pattern match on "%BlueHeron.ATT.Client{}"184185 type warning found at:186 │187 335 │ {:next_state, :connecting, %__MODULE__{data | caller: nil}, actions}188 │ ~189 │190 └─ lib/blue_heron/att/client.ex:335:32: BlueHeron.ATT.Client.connected/3191192 warning: incompatible types given to BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize/1:193194 BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize(bin)195196 given types:197198 -binary()-199200 but expected one of:201202 bitstring() and not binary()203204 where "bin" was given the type:205206 # type: binary()207 # from: lib/blue_heron/hci/deserializable.ex:11:42208 <<"\x0F\b", _::binary>> = bin209210 type warning found at:211 │212 12 │ unquote(mod).deserialize(bin)213 │ ~214 │215 └─ lib/blue_heron/hci/deserializable.ex:12:20: BlueHeron.HCI.Deserializable.BitString.deserialize/1216217 warning: the following clause cannot match because the previous clauses already matched all possible values:218219 {replies, data} ->220221 it attempts to match on the result of:222223 maybe_reply(data, {:error, :unopened})224225 which has the already matched type:226227 dynamic({empty_list(), %{..., calls: term()}})228229 where "data" was given the type:230231 # type: dynamic(%{..., calls: term()})232 # from: lib/blue_heron/hci/transport.ex233 {replies, data}234235 where "replies" was given the type:236237 # type: empty_list()238 # from: lib/blue_heron/hci/transport.ex239 {replies, data}240241 type warning found at:242 │243 310 │ {replies, data} ->244 │ ~245 │246 └─ lib/blue_heron/hci/transport.ex:310:23: BlueHeron.HCI.Transport.goto_unopened/1247248 warning: the following pattern will never match:249250 <<enable_sniff_mode::integer-size(1), enable_hold_mode::integer-size(1),251 enable_role_switch::integer-size(1)>> = dlps252253 because the right-hand side has type:254255 binary()256257 where "dlps" was given the type:258259 # type: binary()260 # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:34:48261 <<..., dlps::binary-unit(1)-size(3)>>262263 where "enable_hold_mode" was given the type:264265 # type: integer()266 # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:45267 <<..., enable_hold_mode::integer-size(1), ...>>268269 where "enable_role_switch" was given the type:270271 # type: integer()272 # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:68273 <<..., enable_role_switch::integer-size(1)>>274275 where "enable_sniff_mode" was given the type:276277 # type: integer()278 # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:24279 <<enable_sniff_mode::integer-size(1), ...>>280281 type warning found at:282 │283 35 │ <<enable_sniff_mode::1, enable_hold_mode::1, enable_role_switch::1>> = dlps284 │ ~285 │286 └─ lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:74: BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize/1287288 warning: unknown key .subevent_code in expression:289290 report.subevent_code291292 the given type does not have the given key:293294 dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{295 devices: empty_list() or non_empty_list(term(), term()),296 num_reports: term(),297 code: integer()298 })299300 where "report" was given the types:301302 # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{})303 # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:23:19304 report305306 # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{307 devices: empty_list() or non_empty_list(term(), term())308 })309 # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:24:27310 BlueHeron.HCI.Event.LEMeta.AdvertisingReport.Device.serialize(report.devices)311312 # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{313 devices: empty_list() or non_empty_list(term(), term()),314 code: integer()315 })316 # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:27:16317 <<report.code, ...>>318319 hint: all expressions given to binaries are assumed to be of type integer() unless said otherwise. For example, <<expr>> assumes "expr" is an integer. Pass a modifier, such as <<expr::float>> or <<expr::binary>>, to change the default behavior.320321 type warning found at:322 │323 27 │ <<report.code, size, report.subevent_code, bin::binary>>324 │ ~~~~~~~~~~~~~325 │326 └─ lib/blue_heron/hci/events/le_meta/advertising_report.ex:27:35: BlueHeron.HCI.Serializable.BlueHeron.HCI.Event.LEMeta.AdvertisingReport.serialize/1327328Generated blue_heron app329==> blue_heron_transport_usb330mkdir -p /work/proj/_build/host/lib/blue_heron_transport_usb/priv331mkdir -p /work/proj/_build/host/lib/blue_heron_transport_usb/obj332Package libusb-1.0 was not found in the pkg-config search path.333Perhaps you should add the directory containing `libusb-1.0.pc'334to the PKG_CONFIG_PATH environment variable335Package 'libusb-1.0', required by 'virtual:world', not found336cc -c -O2 -Wno-unused-parameter -pedantic -Wall -Wall -pedantic -o /work/proj/_build/host/lib/blue_heron_transport_usb/obj/hci_transport.o src/hci_transport.c337Package libusb-1.0 was not found in the pkg-config search path.338Perhaps you should add the directory containing `libusb-1.0.pc'339to the PKG_CONFIG_PATH environment variable340Package 'libusb-1.0', required by 'virtual:world', not found341cc -c -O2 -Wno-unused-parameter -pedantic -Wall -Wall -pedantic -o /work/proj/_build/host/lib/blue_heron_transport_usb/obj/erlcmd.o src/erlcmd.c342Package libusb-1.0 was not found in the pkg-config search path.343Perhaps you should add the directory containing `libusb-1.0.pc'344to the PKG_CONFIG_PATH environment variable345Package 'libusb-1.0', required by 'virtual:world', not found346In file included from src/hci_transport.c:27:347src/btusb.h:18:10: fatal error: libusb-1.0/libusb.h: No such file or directory348 18 | #include <libusb-1.0/libusb.h>349 | ^~~~~~~~~~~~~~~~~~~~~350compilation terminated.351make: *** [Makefile:50: /work/proj/_build/host/lib/blue_heron_transport_usb/obj/hci_transport.o] Error 1352make: *** Waiting for unfinished jobs....353could not compile dependency :blue_heron_transport_usb, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile blue_heron_transport_usb --force", update it with "mix deps.update blue_heron_transport_usb" or clean it with "mix deps.clean blue_heron_transport_usb"354==> nerves_compatibility_test355** (Mix) Could not compile with "make" (exit status: 2).356You need to have gcc and make installed. If you are using357Ubuntu or any other Debian-based system, install the packages358"build-essential". Also install "erlang-dev" package if not359included in your Erlang/OTP version. If you're on Fedora, run360"dnf group install 'Development Tools'".361