Closed fkumro closed 5 years ago
This happens for every project with a port and NIF. It has been an issue for a really long time, but until Elixir 1.8, it was more cumbersome to switch targets so it didn't seem to come up as often. To work around this for now, every time you switch your MIX_TARGET, build clean.
The core issue is that all non-Elixir/Erlang code is compiled in the same directory. I'm experimenting with solutions. Once something gels, I'll copy the solution to all of the Elixir Circuits repositories and the other Nerves repositories.
FYI - I've made releases for circuits_gpio
, circuits_i2c
and circuits_spi
that address this issue. Could you try it out?
I tested the changes by firm compiling for host
and then for rpi3
. Followed by building firmware for rpi3
and everything worked as expected. Thank you!
Great! Thanks for following up.
This appears to be a known issue with
Circuits.GPIO
and I ran into it withCircuits.SPI
.When using Nerves 1.4 with Elixir 1.8 I am unable to create firmware.
Error:
Source which it can be reproduced with: https://gitlab.com/fkumro/lake_effect/tree/nerves_1.4_elixir_1.8