You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional information about your host, target hardware or environment that
may help: /Volume/cs_fs is case sensitive on my Mac. / (and /tmp cosequently) is case insensitive.
Current behavior
Original error on mix firmware
|nerves| Building OTP Release...
* [Nerves] validating vm.args
* skipping runtime configuration (config/runtime.exs not found)
* creating _build/bktp_rpi4_prod/rel/platform/releases/2023-12-14_10469b5___2023-12-14_3215ba1/vm.args
Updating base firmware image with Erlang release...
Copying rootfs_overlay: /Volumes/cs_fs/buckitUp/platform/_build/bktp_rpi4_prod/nerves/rootfs_overlay
Copying rootfs_overlay: /Volumes/cs_fs/buckitUp/platform/rootfs_overlay
FATAL ERROR: write_file: file squashfs-root/usr/lib/xtables/libip6t_hl.so already exists
/Volume/cs_fs is case sensitive on my Mac. / (and /tmp cosequently) is case insensitive.
I faces problems building any custom system before. Workaround of moving linux kernel to case sensitive FS worked.
This time I was adding iptables and described error have happend. iptables generates and . This is the root cause of the error.
@salseeg Sorry for the delayed response and thank you for sharing your instructions. We've been very slowly working on a way to remove the use of merge-squashfs, and I had hoped to share it by now, but that hasn't happened. The issue with adding iptables and building on MacOS has hit quite a few people.
Environment
elixir -v
):mix nerves.env --info
)may help:
/Volume/cs_fs
is case sensitive on my Mac./
(and/tmp
cosequently) is case insensitive.Current behavior
Original error on
mix firmware
/Volume/cs_fs
is case sensitive on my Mac./
(and/tmp
cosequently) is case insensitive.I faces problems building any custom system before. Workaround of moving linux kernel to case sensitive FS worked.
This time I was adding
iptables
and described error have happend.iptables
generatesand
. This is the root cause of the error.ls usr/lib/xtables | grep ip6t_ libip6t_DNPT.so libip6t_HL.so libip6t_NETMAP.so libip6t_REJECT.so libip6t_SNPT.so libip6t_ah.so libip6t_dst.so libip6t_eui64.so libip6t_frag.so libip6t_hbh.so libip6t_hl.so libip6t_icmp6.so libip6t_ipv6header.so libip6t_mh.so libip6t_rt.so libip6t_srh.so
Moving project to case sensitive FS had not helped.
See Workaround down below.
Expected behavior
Create custom temp directory under project
_build
or Nerves dir. This way developer may control the filesystem used for building.It would be helpful to note in the documentation that case sensitive filesystem is needed to build.
Workaround
Replacing
mktemp
usage with hardcoded directory inmerge-squashfs
worked.The text was updated successfully, but these errors were encountered: