Closed NickNeck closed 6 years ago
This looks like its related to the version of erlang that is being compiled, but, I have seen this system fail to build for strange reasons when docker does not have enough resources allocated to it. On linux, this requires more than 8gb of ram for compiling. For example, to build this on circle ci, we had to choose the largest resource class which has 16 gb of ram because the resource class with only 8gb would also fail.
Thank you for your response. I have now a successful build. I gave all my resources to Docker
(8 CPUs
and 16 GB Memory
).
There is another little bug when I run mix nerves.artifact
.
Creating Artifact Archive
|Elixir.Docker| Creating artifact archive
..........|Elixir.Docker| Copying artifact archive to host
.** (File.CopyError) could not copy from "/Users/nick/.nerves/dl/my_system_rpi3-portable-0.13.0.tar.gz" to "/Users/nick/Projects/xyz/my_system_rpi3/my_system_rpi3-portable-0.13.0-E5EC7CCC89A211938F48FEAA86AB57E1FB88166EDC3579360C59E99FA69102EC.tar.gz/my_system_rpi3-portable-0.13.0-E5EC7CCC89A211938F48FEAA86AB57E1FB88166EDC3579360C59E99FA69102EC.tar.gz": no such file or directory
(elixir) lib/file.ex:701: File.cp!/3
lib/nerves/artifact.ex:48: Nerves.Artifact.archive/3
lib/mix/tasks/nerves.artifact.ex:59: Mix.Tasks.Nerves.Artifact.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:80: Mix.CLI.run_task/2
But I have my artifact. The file /Users/nick/.nerves/dl/my_system_rpi3-portable-0.13.0.tar.gz
exists.
The bug described above was fixed in nerves >= v0.10.0. If you run mix deps.update nerves
you should be able to get past that part 👍 Please open a new issue if you are still having issues. Thanks!
Hello, I try to make a customized nerves system with the
kiosk_system_rpi3
as a starting point, undermacOS
. For now, I have copied the repo and removed theartifact_sites
entry inmix.exs
. After that, I have triedmix deps.get && mix compile
. After nearly three hours of happy compiling, I get an error.build.log: