-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mix for 1.4.1 is not properly compiling C drivers #5748
Comments
I can't reproduce on osx and elixir master with the following dependencies: [{:lager, "~> 3.2", override: true},
{:exometer, github: "Feuerlabs/exometer"},
{:exometer_core, "~> 1.4.0", override: true},
{:amqp_client, github: "jbrisbin/amqp_client", override: true},
{:rabbit_common, github: "jbrisbin/rabbit_common", override: true}] Can you show the console output when compiling netlink? I am guessing this is a problem when compiling the C code. |
Unfortunately, there are no errors when compiling netlink:
|
I don't think this is a mix issue since it seems to work on some machines but not others. Netlink seems to have issues with Alpine in particular: Feuerlabs/netlink#7. |
Hadn't seen that compile error before about Alpine - I'm ready to abandon exometer altogether now. Though for this bug, I'm getting the error on a Fedora 25 VM, so it's not necessarily related to the same. |
alpine breaks up otp into packages for each app. rebar3 fails in some cases because required apps are missing. you could try installing the full set of erlang packages and trying again |
If it helps: I'm testing this first on Fedora, not on Alpine. Moving back to Elixir 1.3.4 (same OS, same OTP, 19.2) and doing a clean build works - |
Can you please try Elixir v1.4.0 but specify:
and let us know if it works? |
Unfortunately, I cannot make it that far w/ 1.4.0 -
(which, I believe, is one of the bugs that 1.4.1 fixed) |
Oops, sorry. What if you try the snippet above on 1.4.1 then?
--
*José Valimwww.plataformatec.com.br
<http://www.plataformatec.com.br/>Founder and Director of R&D*
|
1.4.1 with the explilcit Saw this in the output:
And got this in the build directory, at last:
Feel free to close this, unless some other change needs to be made. |
So it seems the netlink project is not properly compiled under rebar3. There is a pull request for this: Feuerlabs/netlink#6. Hopefully they will merge it soon. Thanks for following up! |
Environment
Current behavior
Compile a Phoenix app that uses exometer-core and exometer (for statsd), and thus
Feuerlabs/netlink
Do a
mix deps.compile
and everything compiles w/out errors, but the netlink C driver is not compiled.When I run the app via
mix phoenix.server
, the app will stop with the following info:mix.exs
Expected behavior
The netlink driver is comiled by mix (and thus via rebar or rebar3), and the app runs w/out any errors.
The text was updated successfully, but these errors were encountered: