blue_heron_transport_usb

Build log

nerves_system_x86_64

blue_heron_transport_usb 0.2.0 · fail · run blue_heron_transport_usb-0.2.0-1791156590948
421 of 421 lines
1Resolving Hex dependencies...2Resolution completed in 0.131s3Unchanged: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.233* Getting blue_heron_transport_usb (Hex package)34* Getting nerves (Hex package)35* Getting ring_logger (Hex package)36* Getting toolshed (Hex package)37* Getting nerves_runtime (Hex package)38* Getting nerves_system_bbb (Hex package)39* Getting nerves_system_mangopi_mq_pro (Hex package)40* Getting nerves_system_qemu_aarch64 (Hex package)41* Getting nerves_system_rpi0 (Hex package)42* Getting nerves_system_rpi4 (Hex package)43* Getting nerves_system_rpi5 (Hex package)44* Getting nerves_system_trellis (Hex package)45* Getting nerves_system_x86_64 (Hex package)46* Getting nerves_system_br (Hex package)47* Getting nerves_toolchain_x86_64_nerves_linux_musl (Hex package)48* Getting nerves_toolchain_armv7_nerves_linux_gnueabihf (Hex package)49* Getting nerves_toolchain_aarch64_nerves_linux_gnu (Hex package)50* Getting nerves_toolchain_armv6_nerves_linux_gnueabihf (Hex package)51* Getting nerves_toolchain_riscv64_nerves_linux_gnu (Hex package)52* Getting nerves_logging (Hex package)53* Getting nerves_uevent (Hex package)54* Getting uboot_env (Hex package)55* Getting elixir_make (Hex package)56* Getting property_table (Hex package)57* Getting circular_buffer (Hex package)58* Getting interactive_cmd (Hex package)59* Getting nerves_discovery (Hex package)60* Getting tablet (Hex package)61* Getting blue_heron (Hex package)62==> blue_heron63Compiling 96 files (.ex)64    warning: using single-quoted strings to represent charlists is deprecated.65    Use ~c"" if you indeed want a charlist or use "" instead.66    You may run "mix format --migrate" to change all single-quoted67    strings to use the ~c sigil and fix this warning.68    │69 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))70    │                              ~71    │72    └─ lib/blue_heron/address.ex:81:307374    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 operator75    │76 58 │     <<chunk::binary-size(pair_size), rest::binary>> = data77    │                          ~78    │79    └─ lib/blue_heron/att/responses/find_information_response.ex:58:26: BlueHeron.ATT.FindInformationResponse.chunk_information_data/38081    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 operator82    │83 41 │     <<attribute_data::binary-size(item_length), rest::binary>> = data84    │                                   ~85    │86    └─ lib/blue_heron/att/responses/read_by_group_type_response.ex:41:35: BlueHeron.ATT.ReadByGroupTypeResponse.deserialize_attribute_data/38788    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 operator89    │90 64 │     <<attribute_data::binary-size(item_length), rest::binary>> = attribute_data91    │                                   ~92    │93    └─ lib/blue_heron/att/responses/read_by_type_response.ex:64:35: BlueHeron.ATT.ReadByTypeResponse.deserialize_attribute_data/39495     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 operator96     │97 188 │     <<parameter::little-size(field_size), bin::binary>> = bin98     │                              ~99     │100     └─ lib/blue_heron/hci/arrayed_data.ex:188:30: BlueHeron.HCI.ArrayedData.deserialize/3101102     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 operator103     │104 200 │     <<parameter::little-size(field_size), bin::binary>> = bin105     │                              ~106     │107     └─ lib/blue_heron/hci/arrayed_data.ex:200:30: BlueHeron.HCI.ArrayedData.deserialize/3108109     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 operator110     │111 214 │       <<parameter::binary-size(field_size), bin::binary>> ->112     │                                ~113     │114     └─ lib/blue_heron/hci/arrayed_data.ex:214:32: BlueHeron.HCI.ArrayedData.deserialize/3115116     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 operator117     │118 227 │       <<parameter::little-size(field_size), bin::binary>> ->119     │                                ~120     │121     └─ lib/blue_heron/hci/arrayed_data.ex:227:32: BlueHeron.HCI.ArrayedData.deserialize/3122123     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead124     │125 217 │     Logger.warn(126     │            ~127     │128     └─ lib/blue_heron/att/client.ex:217:12: BlueHeron.ATT.Client.connecting/3129130     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead131     │132 231 │     Logger.warn("Timeout establishing connection")133     │            ~134     │135     └─ lib/blue_heron/att/client.ex:231:12: BlueHeron.ATT.Client.connecting/3136137    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 operator138    │139 27 │     <<payload::binary-size(payload_length), rest::binary>> = rest140    │                            ~141    │142    └─ lib/blue_heron/hci_dump.ex:27:28: BlueHeron.HCIDump.decode_bin/2143144    warning: unused require Logger145    │146 29 │   require Logger147    │   ~148    │149    └─ lib/blue_heron/hci/events/command_status.ex:29:3150151    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead152    │153 67 │       Logger.warn("""154    │              ~155    │156    └─ lib/blue_heron/hci/events/command_complete.ex:67:14: BlueHeron.HCI.Event.CommandComplete.maybe_decode_return_parameters/1157158    warning: unused require BlueHeron.HCI.CommandComplete.ReturnParameters159    │160 12 │   require BlueHeron.HCI.CommandComplete.ReturnParameters161    │   ~162    │163    └─ lib/blue_heron/hci/events/command_complete.ex:12:3164165     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead166     │167 257 │     Logger.warn("Create connection called, but already connected!")168     │            ~169     │170     └─ lib/blue_heron/att/client.ex:257:12: BlueHeron.ATT.Client.connected/3171172     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead173     │174 326 │     Logger.warn("Disconnected from #{inspect(handle, base: :hex)}")175     │            ~176     │177     └─ lib/blue_heron/att/client.ex:326:12: BlueHeron.ATT.Client.connected/3178179     warning: the following clause cannot match because the previous clauses already matched all possible values:180181         {replies, data} ->182183     it attempts to match on the result of:184185         maybe_reply(data, {:error, :unopened})186187     which has the already matched type:188189         dynamic({empty_list(), %{..., calls: term()}})190191     where "data" was given the type:192193         # type: dynamic(%{..., calls: term()})194         # from: lib/blue_heron/hci/transport.ex195         {replies, data}196197     where "replies" was given the type:198199         # type: empty_list()200         # from: lib/blue_heron/hci/transport.ex201         {replies, data}202203     type warning found at:204     │205 310 │       {replies, data} ->206     │                       ~207     │208     └─ lib/blue_heron/hci/transport.ex:310:23: BlueHeron.HCI.Transport.goto_unopened/1209210     warning: a struct for BlueHeron.ATT.Client is expected on struct update:211212         %BlueHeron.ATT.Client{data | caller: nil}213214     but got type:215216         dynamic(%{217           ...,218           caller: nil or {term(), term()},219           connection: %{..., connection_handle: term()},220           controlling_process: atom() or pid() or port() or reference() or {atom(), atom()}221         })222223     where "data" was given the types:224225         # type: dynamic(%{..., connection: %{..., connection_handle: term()}})226         # from: lib/blue_heron/att/client.ex:324:53227         %{connection: %{connection_handle: handle}} = data228229         # type: dynamic(%{..., caller: nil or {term(), term()}, connection: %{..., connection_handle: term()}})230         # from: lib/blue_heron/att/client.ex:332:10231         maybe_reply([{:next_event, :internal, :create_connection}], data.caller, {:error, disconnect})232233         # type: dynamic(%{234           ...,235           caller: nil or {term(), term()},236           connection: %{..., connection_handle: term()},237           controlling_process: atom() or pid() or port() or reference() or {atom(), atom()}238         })239         # from: lib/blue_heron/att/client.ex:334:5240         send(data.controlling_process, {BlueHeron.ATT.Client, self(), disconnect})241242     when defining the variable "data", you must also pattern match on "%BlueHeron.ATT.Client{}"243244     type warning found at:245     │246 335 │     {:next_state, :connecting, %__MODULE__{data | caller: nil}, actions}247     │                                ~248     │249     └─ lib/blue_heron/att/client.ex:335:32: BlueHeron.ATT.Client.connected/3250251    warning: incompatible types given to BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize/1:252253        BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize(bin)254255    given types:256257        -binary()-258259    but expected one of:260261        bitstring() and not binary()262263    where "bin" was given the type:264265        # type: binary()266        # from: lib/blue_heron/hci/deserializable.ex:11:42267        <<"\x0F\b", _::binary>> = bin268269    type warning found at:270    │271 12 │       unquote(mod).deserialize(bin)272    │                    ~273    │274    └─ lib/blue_heron/hci/deserializable.ex:12:20: BlueHeron.HCI.Deserializable.BitString.deserialize/1275276    warning: the following pattern will never match:277278        <<enable_sniff_mode::integer-size(1), enable_hold_mode::integer-size(1),279          enable_role_switch::integer-size(1)>> = dlps280281    because the right-hand side has type:282283        binary()284285    where "dlps" was given the type:286287        # type: binary()288        # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:34:48289        <<..., dlps::binary-unit(1)-size(3)>>290291    where "enable_hold_mode" was given the type:292293        # type: integer()294        # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:45295        <<..., enable_hold_mode::integer-size(1), ...>>296297    where "enable_role_switch" was given the type:298299        # type: integer()300        # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:68301        <<..., enable_role_switch::integer-size(1)>>302303    where "enable_sniff_mode" was given the type:304305        # type: integer()306        # from: lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:24307        <<enable_sniff_mode::integer-size(1), ...>>308309    type warning found at:310    │311 35 │     <<enable_sniff_mode::1, enable_hold_mode::1, enable_role_switch::1>> = dlps312    │                                                                          ~313    │314    └─ lib/blue_heron/hci/commands/link_policy/write_default_link_policy_settings.ex:35:74: BlueHeron.HCI.Command.LinkPolicy.WriteDefaultLinkPolicySettings.deserialize/1315316    warning: unknown key .subevent_code in expression:317318        report.subevent_code319320    the given type does not have the given key:321322        dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{323          devices: empty_list() or non_empty_list(term(), term()),324          num_reports: term(),325          code: integer()326        })327328    where "report" was given the types:329330        # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{})331        # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:23:19332        report333334        # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{335          devices: empty_list() or non_empty_list(term(), term())336        })337        # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:24:27338        BlueHeron.HCI.Event.LEMeta.AdvertisingReport.Device.serialize(report.devices)339340        # type: dynamic(%BlueHeron.HCI.Event.LEMeta.AdvertisingReport{341          devices: empty_list() or non_empty_list(term(), term()),342          code: integer()343        })344        # from: lib/blue_heron/hci/events/le_meta/advertising_report.ex:27:16345        <<report.code, ...>>346347    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.348349    type warning found at:350    │351 27 │       <<report.code, size, report.subevent_code, bin::binary>>352    │                                   ~~~~~~~~~~~~~353    │354    └─ lib/blue_heron/hci/events/le_meta/advertising_report.ex:27:35: BlueHeron.HCI.Serializable.BlueHeron.HCI.Event.LEMeta.AdvertisingReport.serialize/1355356Generated blue_heron app357==> blue_heron_transport_usb358mkdir -p /work/proj/_build/x86_64/lib/blue_heron_transport_usb/priv359Package libusb-1.0 was not found in the pkg-config search path.360Perhaps you should add the directory containing `libusb-1.0.pc'361to the PKG_CONFIG_PATH environment variable362Package 'libusb-1.0', required by 'virtual:world', not found363Package libusb-1.0 was not found in the pkg-config search path.364Perhaps you should add the directory containing `libusb-1.0.pc'365to the PKG_CONFIG_PATH environment variable366Package 'libusb-1.0', required by 'virtual:world', not found367mkdir -p /work/proj/_build/x86_64/lib/blue_heron_transport_usb/obj368Package libusb-1.0 was not found in the pkg-config search path.369Perhaps you should add the directory containing `libusb-1.0.pc'370to the PKG_CONFIG_PATH environment variable371Package 'libusb-1.0', required by 'virtual:world', not found372Package libusb-1.0 was not found in the pkg-config search path.373Perhaps you should add the directory containing `libusb-1.0.pc'374to the PKG_CONFIG_PATH environment variable375Package 'libusb-1.0', required by 'virtual:world', not found376Package libusb-1.0 was not found in the pkg-config search path.377Perhaps you should add the directory containing `libusb-1.0.pc'378to the PKG_CONFIG_PATH environment variable379Package 'libusb-1.0', required by 'virtual:world', not found380/home/nerves/.nerves/artifacts/nerves_toolchain_x86_64_nerves_linux_musl-15.3.1/bin/x86_64-nerves-linux-musl-gcc -c -m64 -fstack-protector-strong -march=x86-64 -fPIE -pie -Wl,-z,now -Wl,-z,relro -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -O2 --sysroot /home/nerves/.nerves/artifacts/nerves_system_x86_64-1.34.2/staging  -Wall -pedantic  -o /work/proj/_build/x86_64/lib/blue_heron_transport_usb/obj/hci_transport.o src/hci_transport.c381Package libusb-1.0 was not found in the pkg-config search path.382Perhaps you should add the directory containing `libusb-1.0.pc'383to the PKG_CONFIG_PATH environment variable384Package 'libusb-1.0', required by 'virtual:world', not found385Package libusb-1.0 was not found in the pkg-config search path.386Perhaps you should add the directory containing `libusb-1.0.pc'387to the PKG_CONFIG_PATH environment variable388Package 'libusb-1.0', required by 'virtual:world', not found389Package libusb-1.0 was not found in the pkg-config search path.390Perhaps you should add the directory containing `libusb-1.0.pc'391to the PKG_CONFIG_PATH environment variable392Package 'libusb-1.0', required by 'virtual:world', not found393/home/nerves/.nerves/artifacts/nerves_toolchain_x86_64_nerves_linux_musl-15.3.1/bin/x86_64-nerves-linux-musl-gcc -c -m64 -fstack-protector-strong -march=x86-64 -fPIE -pie -Wl,-z,now -Wl,-z,relro -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -O2 --sysroot /home/nerves/.nerves/artifacts/nerves_system_x86_64-1.34.2/staging  -Wall -pedantic  -o /work/proj/_build/x86_64/lib/blue_heron_transport_usb/obj/erlcmd.o src/erlcmd.c394Package libusb-1.0 was not found in the pkg-config search path.395Perhaps you should add the directory containing `libusb-1.0.pc'396to the PKG_CONFIG_PATH environment variable397Package 'libusb-1.0', required by 'virtual:world', not found398Package libusb-1.0 was not found in the pkg-config search path.399Perhaps you should add the directory containing `libusb-1.0.pc'400to the PKG_CONFIG_PATH environment variable401Package 'libusb-1.0', required by 'virtual:world', not found402Package libusb-1.0 was not found in the pkg-config search path.403Perhaps you should add the directory containing `libusb-1.0.pc'404to the PKG_CONFIG_PATH environment variable405Package 'libusb-1.0', required by 'virtual:world', not found406In file included from src/hci_transport.c:27:407src/btusb.h:18:10: fatal error: libusb-1.0/libusb.h: No such file or directory408   18 | #include <libusb-1.0/libusb.h>409      |          ^~~~~~~~~~~~~~~~~~~~~410compilation terminated.411make: *** [Makefile:50: /work/proj/_build/x86_64/lib/blue_heron_transport_usb/obj/hci_transport.o] Error 1412make: *** Waiting for unfinished jobs....413could 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"414==> nerves_compatibility_test415** (Mix) Could not compile with "make" (exit status: 2).416You need to have gcc and make installed. If you are using417Ubuntu or any other Debian-based system, install the packages418"build-essential". Also install "erlang-dev" package if not419included in your Erlang/OTP version. If you're on Fedora, run420"dnf group install 'Development Tools'".421