Open wowi42 opened 3 years ago
I am facing the same issue. Any updates?
@wowi42 @Dlacreme I do not have a machine with Archlinux or the time to investigate at the moment. I'd welcome a PR, but otherwise I expect this is an issue with the local environment and elixir/erlang dev tools, maybe elixir_make
.
Something similar has been seen on other OSs #32 but I've only seen it a few times and not been able to reproduce to investigate it properly.
I was facing the same issue and I solved using the following steps:
RUN apk update \
&& apk upgrade \
&& apk --no-cache --update add build-base \
&& apk add bash gcc g++ make erlang-dev alpine-sdk \
&& rm -rf /var/cache/apk/*
and after mix deps.get
and before mix deps.compile
:
RUN mix deps.update crc
The version of CRC will be upgraded and you can build without any problems.
Upgraded:
crc 0.10.0 => 0.10.1
elixir_make 0.6.0 => 0.6.2
Hope that this can help you folks.
I had the same problem when I upgraded from {:crc, "0.9.1"}
to {:crc, "0.10.4"}
.
My app uses the nerves-framework to build applications for an RPI Zero on Mac OS Big Sur on an Intel platform. The cross compilation fails with
==> crc
C checksum_xor.c
armv6-nerves-linux-gnueabihf-gcc: error: x86_64: No such file or directory
armv6-nerves-linux-gnueabihf-gcc: error: unrecognized command-line option '-arch'; did you mean '-march='?
make: *** [[...]/_build/rpi_rpi/lib/crc/obj/checksum_xor.o] Error 1
could not compile dependency :crc, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile crc", update it with "mix deps.update crc" or clean it with "mix deps.clean crc"
I am staying with the old version of crc, hoping that I will not want to switch to M1 too soon...
UPDATE: I was wrong, I can neither compile version 0.9.1 nor version 0.10.4.
For nerves, I do export MIX_TARGET=rpi
.
mix deps.get
runs fine, but mix compile
fails with above error message.
I updated XCode and developer tools, but this did not fix anything. I am stuck here and google is not helpful this time. So any help is greatly appreciated.
Everything compiled fine before I updated Erlang and Elixir from Erlang 21.3.8.9, Elixir 1.6.6-otp-20 to
erl -version
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 12.1.5
iex --version
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]
IEx 1.13.3 (compiled with Erlang/OTP 24)
and Nerves from 1.0 to 1.7.16.
Error
Notes