Build log
host
simplify_baml 0.1.0 · fail · run simplify_baml-0.1.0-1791102520180
754 of 754 lines
1Resolving Hex dependencies...2Resolution completed in 0.193s3Unchanged:4 abnf_parsec 2.1.05 circular_buffer 1.1.06 dotenvy 1.2.17 elixir_make 0.10.08 ex_aws_auth 1.4.29 finch 0.24.010 hpax 1.1.011 idna 7.1.012 interactive_cmd 0.1.413 jason 1.4.514 jsv 0.25.015 mime 2.0.716 mint 1.11.017 nerves 2.0.0-pre.218 nerves_discovery 0.1.519 nerves_logging 0.2.420 nerves_runtime 0.13.1321 nerves_system_bbb 2.30.222 nerves_system_br 1.34.423 nerves_system_mangopi_mq_pro 0.17.224 nerves_system_qemu_aarch64 0.4.225 nerves_system_rpi0 2.1.226 nerves_system_rpi4 2.1.227 nerves_system_rpi5 2.1.228 nerves_system_trellis 0.5.029 nerves_system_x86_64 1.34.230 nerves_toolchain_aarch64_nerves_linux_gnu 15.3.131 nerves_toolchain_armv6_nerves_linux_gnueabihf 15.3.132 nerves_toolchain_armv7_nerves_linux_gnueabihf 15.3.133 nerves_toolchain_riscv64_nerves_linux_gnu 15.3.134 nerves_toolchain_x86_64_nerves_linux_musl 15.3.135 nerves_uevent 0.1.736 nimble_options 1.1.137 nimble_parsec 1.4.238 nimble_pool 1.1.039 property_table 0.3.440 req 0.7.441 req_llm 1.0.042 ring_logger 0.11.743 rustler 0.34.044 server_sent_events 0.2.145 simplify_baml 0.1.046 splode 0.2.1047 tablet 0.3.348 telemetry 1.4.249 texture 2.0.050 toml 0.7.051 toolshed 0.5.052 typed_struct 0.3.053 uboot_env 1.0.254 uniq 0.6.355 zoi 0.18.1156All dependencies have been fetched57==> server_sent_events58Compiling 1 file (.ex)59Generated server_sent_events app60==> splode61Compiling 5 files (.ex)62Generated splode app63==> jsv64Compiling 75 files (.ex)65Generated jsv app66==> rustler67Compiling 6 files (.ex)68 warning: incompatible types given to throw_error/1:6970 throw_error(71 {:unknown_target,72 <<to_string(target)::binary,73 " is not in the support list yet. Please report it on https://github.com/rusterlium/rustler/issues.">>}74 )7576 given types:7778 -dynamic({:unknown_target, binary()})-7980 but expected one of:8182 :rustup_not_installed or {:no_rustler_deps, term(), term()} or83 {:unsupported_rustler_version, term(), term(), term()} or84 {:cargo_toml_not_found or :nonexistent_crate_directory or :rust_version_not_installed, term()}8586 where "target" was given the types:8788 # type: binary()89 # from: lib/rustler/compiler.ex:143:2790 target9192 # type: binary()93 # from: lib/rustler/compiler.ex:143:4094 is_binary(target)9596 type warning found at:97 │98 159 │ throw_error(99 │ ~100 │101 └─ lib/rustler/compiler.ex:159:7: Rustler.Compiler.get_target_os_type/1102103Generated rustler app104==> ex_aws_auth105Compiling 7 files (.ex)106Generated ex_aws_auth app107==> req_llm108Compiling 74 files (.ex)109 warning: unused require Logger110 │111 9 │ require Logger112 │ ~113 │114 └─ lib/examples/scripts/helpers.ex:9:3115116 warning: unused require Logger117 │118 150 │ require Logger119 │ ~120 │121 └─ lib/mix/tasks/model_sync.ex:150:3122123 warning: unused require Logger124 │125 16 │ require Logger126 │ ~127 │128 └─ lib/req_llm/generation.ex:16:3129130 warning: the variable "headers_length" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator131 │132 100 │ headers::binary-size(headers_length),133 │ ~134 │135 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:100:32: ReqLLM.Providers.AmazonBedrock.AWSEventStream.parse_single_event/1136137 warning: the variable "body_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 101 │ body::binary-size(body_length),140 │ ~141 │142 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:101:29: ReqLLM.Providers.AmazonBedrock.AWSEventStream.parse_single_event/1143144 warning: the variable "name_len" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator145 │146 164 │ <<name::binary-size(name_len), value_type::8, rest2::binary>> = rest147 │ ~148 │149 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:164:29: ReqLLM.Providers.AmazonBedrock.AWSEventStream.parse_header_pairs/2150151 warning: the variable "value_len" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator152 │153 172 │ <<value::binary-size(value_len), remaining::binary>> = rest3154 │ ~155 │156 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:172:36: ReqLLM.Providers.AmazonBedrock.AWSEventStream.parse_header_pairs/2157158 warning: unused require Logger159 │160 11 │ require Logger161 │ ~162 │163 └─ lib/req_llm/response/stream.ex:11:3164165 warning: unused require Logger166 │167 77 │ require Logger168 │ ~169 │170 └─ lib/req_llm/provider/defaults.ex:77:3171172 warning: unused require Logger173 │174 142 │ require Logger175 │ ~176 │177 └─ lib/mix/tasks/gen.ex:142:3178179 warning: unused require Logger180 │181 144 │ require Logger182 │ ~183 │184 └─ lib/req_llm/providers/xai.ex:144:3185186 warning: unused require Logger187 │188 95 │ require Logger189 │ ~190 │191 └─ lib/req_llm/providers/openrouter.ex:95:3192193 warning: unused require Logger194 │195 133 │ require Logger196 │ ~197 │198 └─ lib/req_llm/providers/openai.ex:133:3199200 warning: unused require Logger201 │202 59 │ require Logger203 │ ~204 │205 └─ lib/req_llm/providers/groq.ex:59:3206207 warning: unused require Logger208 │209 68 │ require Logger210 │ ~211 │212 └─ lib/req_llm/providers/anthropic.ex:68:3213214 warning: unused require Logger215 │216 40 │ require Logger217 │ ~218 │219 └─ lib/req_llm/streaming/sse.ex:40:3220221 warning: unused require Logger222 │223 92 │ require Logger224 │ ~225 │226 └─ lib/req_llm/providers/google.ex:92:3227228 warning: comparison between distinct types found:229230 role == :tool231232 given types:233234 dynamic(not :tool) == :tool235236 where "role" was given the type:237238 # type: dynamic(not :tool)239 # from: lib/req_llm/providers/amazon_bedrock/converse.ex:495:23240 %ReqLLM.Message{role: role, content: content}241242 While Elixir can compare across all types, you are comparing across types which are always disjoint, and the result is either always true or always false243244 type warning found at:245 │246 498 │ normalized_role = if role == :tool, do: :user, else: role247 │ ~248 │249 └─ lib/req_llm/providers/amazon_bedrock/converse.ex:498:31: ReqLLM.Providers.AmazonBedrock.Converse.encode_message/1250251 warning: this clause in cond will never match:252253 not is_list(msg.content)254255 since it has type:256257 dynamic(false)258259 where "msg" was given the type:260261 # type: dynamic(%ReqLLM.Message{content: empty_list() or non_empty_list(term(), term())})262 # from: lib/req_llm/context.ex:805:21263 ReqLLM.Message.valid?(msg)264265 type warning found at:266 │267 808 │ not is_list(msg.content) ->268 │ ~269 │270 └─ lib/req_llm/context.ex:808:34: ReqLLM.Context.validate_message_structure/1271272 warning: comparison between distinct types found:273274 role == :tool275276 given types:277278 dynamic(not :tool) == :tool279280 where "role" was given the type:281282 # type: dynamic(not :tool)283 # from: lib/req_llm/providers/anthropic/context.ex:96:23284 %ReqLLM.Message{role: role, content: content}285286 While Elixir can compare across all types, you are comparing across types which are always disjoint, and the result is either always true or always false287288 type warning found at:289 │290 97 │ normalized_role = if role == :tool, do: :user, else: role291 │ ~292 │293 └─ lib/req_llm/providers/anthropic/context.ex:97:31: ReqLLM.Providers.Anthropic.Context.encode_message/1294295 warning: this clause of defp extract_content_text/1 is never used (or it will always fail/warn when invoked)296 │297 1354 │ defp extract_content_text(_), do: ""298 │ ~299 │300 └─ lib/req_llm/providers/google.ex:1354:8: ReqLLM.Providers.Google.extract_content_text/1301302 warning: the following clause cannot match because the previous clauses already matched all possible values:303304 error ->305306 it attempts to match on the result of:307308 ReqLLM.Providers.Anthropic.Response.decode_response(body, model)309310 which has the already matched type:311312 dynamic(313 {:ok,314 %ReqLLM.Response{315 error: nil,316 finish_reason: :content_filter or :error or :length or nil or :stop or :tool_calls,317 usage:318 %{319 cache_creation_input_tokens: term(),320 cache_read_input_tokens: term(),321 cached_tokens: term(),322 input_tokens: term(),323 output_tokens: term(),324 reasoning_tokens: term(),325 total_tokens: float() or integer()326 } or327 %{328 cached_tokens: integer(),329 input_tokens: integer(),330 output_tokens: integer(),331 reasoning_tokens: integer(),332 total_tokens: integer()333 },334 stream: nil,335 stream?: false,336 object: nil,337 message:338 %ReqLLM.Message{339 metadata: empty_map(),340 tool_calls: not empty_list(),341 tool_call_id: nil,342 name: nil,343 role: :assistant344 } or nil,345 context: %ReqLLM.Context{346 tools: empty_list(),347 messages:348 list(%ReqLLM.Message{349 metadata: empty_map(),350 tool_calls: not empty_list(),351 tool_call_id: nil,352 name: nil,353 role: :assistant354 })355 }356 }}357 )358359 where "error" was given the type:360361 # type: dynamic(362 {:ok,363 %ReqLLM.Response{364 error: nil,365 finish_reason: :content_filter or :error or :length or nil or :stop or :tool_calls,366 usage:367 %{368 cache_creation_input_tokens: term(),369 cache_read_input_tokens: term(),370 cached_tokens: term(),371 input_tokens: term(),372 output_tokens: term(),373 reasoning_tokens: term(),374 total_tokens: float() or integer()375 } or376 %{377 cached_tokens: integer(),378 input_tokens: integer(),379 output_tokens: integer(),380 reasoning_tokens: integer(),381 total_tokens: integer()382 },383 stream: nil,384 stream?: false,385 object: nil,386 message:387 %ReqLLM.Message{388 metadata: empty_map(),389 tool_calls: not empty_list(),390 tool_call_id: nil,391 name: nil,392 role: :assistant393 } or nil,394 context: %ReqLLM.Context{395 tools: empty_list(),396 messages:397 list(%ReqLLM.Message{398 metadata: empty_map(),399 tool_calls: not empty_list(),400 tool_call_id: nil,401 name: nil,402 role: :assistant403 })404 }405 }}406 )407 # from: lib/req_llm/providers/amazon_bedrock/anthropic.ex:196:7408 error409410 type warning found at:411 │412 196 │ error ->413 │ ~414 │415 └─ lib/req_llm/providers/amazon_bedrock/anthropic.ex:196:13: ReqLLM.Providers.AmazonBedrock.Anthropic.parse_response/2416417 warning: this clause of defp zoi_schema?/1 is never used (or it will always fail/warn when invoked)418 │419 245 │ defp zoi_schema?(_), do: false420 │ ~421 │422 └─ lib/req_llm/schema.ex:245:8: ReqLLM.Schema.zoi_schema?/1423424 warning: ReqLLM.Providers.GoogleVertex.Anthropic.decode_stream_event/2 is undefined or private425 │426 454 │ formatter.decode_stream_event(event, model)427 │ ~428 │429 └─ lib/req_llm/providers/google_vertex.ex:454:17: ReqLLM.Providers.GoogleVertex.decode_stream_event/2430431 warning: the following clause is redundant:432433 %AWSAuth.Credentials{region: r} when is_binary(r) ->434435 previous clauses have already matched on the following types:436437 %{..., region: binary()}438 %{..., region: term()}439440 where "r" was given the types:441442 # type: binary()443 # from: lib/req_llm/providers/amazon_bedrock.ex:277:9444 %AWSAuth.Credentials{region: r}445446 # type: binary()447 # from: lib/req_llm/providers/amazon_bedrock.ex:277:46448 is_binary(r)449450 type warning found at:451 │452 277 │ %AWSAuth.Credentials{region: r} when is_binary(r) -> r453 │ ~454 │455 └─ lib/req_llm/providers/amazon_bedrock.ex:277:59: ReqLLM.Providers.AmazonBedrock.attach/3456457 warning: the following clause is redundant:458459 %AWSAuth.Credentials{} ->460461 previous clauses have already matched on the following types:462463 %{..., region: binary()}464 %{..., region: term()}465466 type warning found at:467 │468 278 │ %AWSAuth.Credentials{} -> "us-east-1"469 │ ~470 │471 └─ lib/req_llm/providers/amazon_bedrock.ex:278:32: ReqLLM.Providers.AmazonBedrock.attach/3472473 warning: ReqLLM.Providers.AmazonBedrock.Anthropic.requires_converse_api?/0 is undefined or private474 │475 307 │ family_formatter.requires_converse_api?() do476 │ ~477 │478 └─ lib/req_llm/providers/amazon_bedrock.ex:307:33: ReqLLM.Providers.AmazonBedrock.attach/3479 └─ lib/req_llm/providers/amazon_bedrock.ex:401:33: ReqLLM.Providers.AmazonBedrock.attach_stream/4480 └─ lib/req_llm/providers/amazon_bedrock.ex:944:19: ReqLLM.Providers.AmazonBedrock.determine_use_converse/2481482 warning: ReqLLM.Providers.AmazonBedrock.Converse.extract_usage/2 is undefined or private483 │484 558 │ formatter.extract_usage(body, model)485 │ ~486 │487 └─ lib/req_llm/providers/amazon_bedrock.ex:558:17: ReqLLM.Providers.AmazonBedrock.extract_usage/2488489 warning: ReqLLM.Providers.AmazonBedrock.Converse.requires_converse_api?/0 is undefined or private490 │491 307 │ family_formatter.requires_converse_api?() do492 │ ~493 │494 └─ lib/req_llm/providers/amazon_bedrock.ex:307:33: ReqLLM.Providers.AmazonBedrock.attach/3495 └─ lib/req_llm/providers/amazon_bedrock.ex:401:33: ReqLLM.Providers.AmazonBedrock.attach_stream/4496 └─ lib/req_llm/providers/amazon_bedrock.ex:944:19: ReqLLM.Providers.AmazonBedrock.determine_use_converse/2497498 warning: ReqLLM.Providers.AmazonBedrock.Meta.requires_converse_api?/0 is undefined or private499 │500 307 │ family_formatter.requires_converse_api?() do501 │ ~502 │503 └─ lib/req_llm/providers/amazon_bedrock.ex:307:33: ReqLLM.Providers.AmazonBedrock.attach/3504 └─ lib/req_llm/providers/amazon_bedrock.ex:401:33: ReqLLM.Providers.AmazonBedrock.attach_stream/4505 └─ lib/req_llm/providers/amazon_bedrock.ex:944:19: ReqLLM.Providers.AmazonBedrock.determine_use_converse/2506507 warning: ReqLLM.Providers.AmazonBedrock.OpenAI.requires_converse_api?/0 is undefined or private508 │509 307 │ family_formatter.requires_converse_api?() do510 │ ~511 │512 └─ lib/req_llm/providers/amazon_bedrock.ex:307:33: ReqLLM.Providers.AmazonBedrock.attach/3513 └─ lib/req_llm/providers/amazon_bedrock.ex:401:33: ReqLLM.Providers.AmazonBedrock.attach_stream/4514 └─ lib/req_llm/providers/amazon_bedrock.ex:944:19: ReqLLM.Providers.AmazonBedrock.determine_use_converse/2515516 warning: this clause of defp parse_json_defensively/1 is never used (or it will always fail/warn when invoked)517 │518 718 │ defp parse_json_defensively(_), do: nil519 │ ~520 │521 └─ lib/req_llm/providers/xai.ex:718:8: ReqLLM.Providers.XAI.parse_json_defensively/1522523 warning: the right-hand side of || (shown as ... below) will never be executed:524525 usage[:reasoning] || usage["reasoning"] || usage[:reasoning_tokens] || usage["reasoning_tokens"] ||526 get_reasoning_tokens(usage) || ...527528 because the left-hand side always evaluates to:529530 dynamic(not false and not nil)531532 where "usage" was given the types:533534 # type: dynamic(map())535 # from: lib/req_llm/step/usage.ex:170:24536 usage537538 # type: map()539 # from: lib/req_llm/step/usage.ex:170:36540 is_map(usage)541542 # type: dynamic(%{..., __struct__: atom()} or non_struct_map())543 # from: lib/req_llm/step/usage.ex:173:14544 usage[:input]545546 type warning found at:547 │548 180 │ usage["reasoning_tokens"] || get_reasoning_tokens(usage) || 0,549 │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~550 │551 └─ lib/req_llm/step/usage.ex:180: ReqLLM.Step.Usage.normalize_usage/1552553 warning: the following clause cannot match because the previous clauses already matched all possible values:554555 error ->556557 it attempts to match on the result of:558559 ReqLLM.Providers.Anthropic.Response.decode_response(body, anthropic_model)560561 which has the already matched type:562563 dynamic(564 {:ok,565 %ReqLLM.Response{566 error: nil,567 finish_reason: :content_filter or :error or :length or nil or :stop or :tool_calls,568 usage:569 %{570 cache_creation_input_tokens: term(),571 cache_read_input_tokens: term(),572 cached_tokens: term(),573 input_tokens: term(),574 output_tokens: term(),575 reasoning_tokens: term(),576 total_tokens: float() or integer()577 } or578 %{579 cached_tokens: integer(),580 input_tokens: integer(),581 output_tokens: integer(),582 reasoning_tokens: integer(),583 total_tokens: integer()584 },585 stream: nil,586 stream?: false,587 object: nil,588 message:589 %ReqLLM.Message{590 metadata: empty_map(),591 tool_calls: not empty_list(),592 tool_call_id: nil,593 name: nil,594 role: :assistant595 } or nil,596 context: %ReqLLM.Context{597 tools: empty_list(),598 messages:599 list(%ReqLLM.Message{600 metadata: empty_map(),601 tool_calls: not empty_list(),602 tool_call_id: nil,603 name: nil,604 role: :assistant605 })606 }607 }}608 )609610 where "error" was given the type:611612 # type: dynamic(613 {:ok,614 %ReqLLM.Response{615 error: nil,616 finish_reason: :content_filter or :error or :length or nil or :stop or :tool_calls,617 usage:618 %{619 cache_creation_input_tokens: term(),620 cache_read_input_tokens: term(),621 cached_tokens: term(),622 input_tokens: term(),623 output_tokens: term(),624 reasoning_tokens: term(),625 total_tokens: float() or integer()626 } or627 %{628 cached_tokens: integer(),629 input_tokens: integer(),630 output_tokens: integer(),631 reasoning_tokens: integer(),632 total_tokens: integer()633 },634 stream: nil,635 stream?: false,636 object: nil,637 message:638 %ReqLLM.Message{639 metadata: empty_map(),640 tool_calls: not empty_list(),641 tool_call_id: nil,642 name: nil,643 role: :assistant644 } or nil,645 context: %ReqLLM.Context{646 tools: empty_list(),647 messages:648 list(%ReqLLM.Message{649 metadata: empty_map(),650 tool_calls: not empty_list(),651 tool_call_id: nil,652 name: nil,653 role: :assistant654 })655 }656 }}657 )658 # from: lib/req_llm/providers/google_vertex/anthropic.ex:136:7659 error660661 type warning found at:662 │663 136 │ error ->664 │ ~665 │666 └─ lib/req_llm/providers/google_vertex/anthropic.ex:136:13: ReqLLM.Providers.GoogleVertex.Anthropic.parse_response/3667668 warning: the following clause is redundant:669670 {{_pool, _pid}, {:data, chunk}} when is_binary(chunk) ->671672 previous clauses have already matched on the following types:673674 {term(), {:data, binary()}}675676 where "chunk" was given the types:677678 # type: binary()679 # from: lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:292:50680 is_binary(chunk)681682 # type: binary()683 # from: lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex684 {{_pool, _pid}, {:data, chunk}}685686 type warning found at:687 │688 292 │ {{_pool, _pid}, {:data, chunk}} when is_binary(chunk) ->689 │ ~690 │691 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:292:67: ReqLLM.Providers.AmazonBedrock.AWSEventStream.create_stream/1692693 warning: the following clause cannot match because the previous clauses already matched all possible values:694695 _ ->696697 it attempts to match on the result of:698699 result700701 which has the already matched type:702703 dynamic(704 ({:error, :model_not_found} and not {:ok, term()}) or {:error, :provider_not_found} or705 {:ok,706 %{707 __struct__: ReqLLM.Model,708 _metadata: map(),709 capabilities: term(),710 cost: term(),711 limit: term(),712 max_retries: term(),713 max_tokens: term(),714 modalities: term(),715 model: binary(),716 provider: atom()717 }}718 )719720 type warning found at:721 │722 279 │ _ ->723 │ ~724 │725 └─ lib/req_llm/provider/registry.ex:279:13: ReqLLM.Provider.Registry.get_model!/1726727 warning: the following clause is redundant:728729 {{_pool, _pid}, :done} ->730731 previous clauses have already matched on the following types:732733 {term(), {:data, binary()}}734 {term(), :done}735736 type warning found at:737 │738 300 │ {{_pool, _pid}, :done} ->739 │ ~740 │741 └─ lib/req_llm/providers/amazon_bedrock/aws_event_stream.ex:300:36: ReqLLM.Providers.AmazonBedrock.AWSEventStream.create_stream/1742743Generated req_llm app744==> simplify_baml745Compiling 8 files (.ex)746747== Compilation error in file lib/simplify_baml/nif.ex ==748** (ErlangError) Erlang error: :enoent749 (elixir 1.20.3) lib/system.ex:1141: System.cmd("cargo", ["metadata", "--format-version=1"], [cd: "native/simplify_baml_nif"])750 (rustler 0.34.0) lib/rustler/compiler/config.ex:76: Rustler.Compiler.Config.metadata!/1751 (rustler 0.34.0) lib/rustler/compiler/config.ex:63: Rustler.Compiler.Config.build/1752 (rustler 0.34.0) lib/rustler/compiler.ex:8: Rustler.Compiler.compile_crate/3753 lib/simplify_baml/nif.ex:17: (module)754could not compile dependency :simplify_baml, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile simplify_baml --force", update it with "mix deps.update simplify_baml" or clean it with "mix deps.clean simplify_baml"