Skip to content

Conversation

@hidnasio
Copy link

Trying to compile kaffe throws the following error

** (Mix) Could not compile dependency :snappyer, "/Users/luisferreira/.asdf/installs/elixir/1.17.2-otp-27/.mix/elixir/1-17/rebar3 bare compile --paths /Users/luisferreira/Projects/kaffe/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile snappyer --force", update it with "mix deps.update snappyer" or clean it with "mix deps.clean snappyer"

using erlang 27 and elixir 1.17.2

The problem is related a sub dependency of Brod library. This sub dependency was removed in Brod 4.0

@romul
Copy link
Contributor

romul commented May 23, 2025

I don't mind to brod updating.
But issue with snappyer compilation could be fixed by installing clang on your computer.

For example, on MacOS it could be done by running xcode-select –-install

@hidnasio
Copy link
Author

Thanks for the response. Removing the system-dependent dependency would be a big improvement. We build multi-arch Docker images and use the same source on both macOS and Linux containers, so the architecture mismatch prevents us from sharing the same compilation binaries.

It's not a problem with Kaffe library per-se but as the new version of Brod just remove this sub dependency it's a good way of removing the side effect of having snappyer.

@TylerWitt TylerWitt force-pushed the upgrade-brod-dependncy branch from 9bbb1a2 to 78c0bab Compare July 29, 2025 21:39
@chess4ever
Copy link

Hello, any update on this? We would like to use brod 4.X because it has some important connection improvements

Copilot AI review requested due to automatic review settings December 10, 2025 21:01
@TylerWitt TylerWitt force-pushed the upgrade-brod-dependncy branch from 78c0bab to c8a72be Compare December 10, 2025 21:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the brod dependency from v3 to v4 to resolve compilation issues with Erlang 27 and Elixir 1.17.2. The upgrade removes the problematic snappyer sub-dependency that was causing build failures.

Key Changes:

  • Bumped brod dependency from ~> 3.0 to ~> 4.0
  • Added crc32cer dependency constraint
  • Documented breaking changes for compression support configuration

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
mix.exs Updated brod to v4.0, added crc32cer dependency, and bumped project version to 2.0.0
README.md Added new "Compression Config" section documenting required configuration for snappy/lz4 compression
CHANGELOG.md Added v2.0.0 release notes with breaking changes and upgrade instructions for compression support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants