Hi,
I’m trying to build a Nerves system artifact/kernel for my project. I ran:
mix nerves.system.shell
make
But during the build, I get the following errors:
/usr/bin/gcc -O3 -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wpointer-arith -Wstrict-aliasing=1 -I/home/rehan/artifacts_repo/nerves_system_custom/.nerves/artifacts/nerves_system_custom-portable/host/include -I../lib -DXXH_NAMESPACE=LZ4_ arm -c -o bench.o bench.c
gcc: warning: arm: linker input file unused because linking not done
gcc: error: arm: linker input file not found: No such file or directory
make[3]: *** [<builtin>: bench.o] Error 1
...
make[2]: *** [Makefile:59: lz4] Error 2
make[1]: *** [package/pkg-generic.mk:293: .../host-lz4-1.9.3/.stamp_built] Error 2
make: *** [Makefile:23: _all] Error 2
It looks like arm
is being treated as a file instead of a compiler flag. I’m not sure if this is a toolchain misconfiguration or something wrong in my environment.
Has anyone run into this before when building Nerves system artifacts? How can I fix or debug this issue?
Thanks in advance