$ elixir --version
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.13.1 (compiled with Erlang/OTP 24)
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
$ cmake --version
cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ mix deps.compile cvt_color
==> nerves
==> tft_display
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
==> cvt_color
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc
-- Check for working C compiler: /Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc - broken
CMake Error at /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_08916/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_08916.dir/build.make CMakeFiles/cmTC_08916.dir/build
Building C object CMakeFiles/cmTC_08916.dir/testCCompiler.c.o
/Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O2 -I/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging/usr/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -o CMakeFiles/cmTC_08916.dir/testCCompiler.c.o -c /Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_08916
/usr/local/Cellar/cmake/3.22.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08916.dir/link.txt --verbose=1
/Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/armv6-nerves-linux-gnueabihf-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O2 -I/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging/usr/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names --sysroot=/Users/nathan/.nerves/artifacts/nerves_system_rpi0-portable-1.18.0/staging CMakeFiles/cmTC_08916.dir/testCCompiler.c.o -o cmTC_08916
/Users/nathan/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.5.0/bin/../lib/gcc/armv6-nerves-linux-gnueabihf/10.3.0/../../../../armv6-nerves-linux-gnueabihf/bin/ld: Error: unable to disambiguate: -search_paths_first (did you mean --search_paths_first ?)
collect2: error: ld returned 1 exit status
make[2]: *** [cmTC_08916] Error 1
make[1]: *** [cmTC_08916/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeOutput.log".
See also "/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/cmake/CMakeFiles/CMakeError.log".
make: *** [/Users/nathan/misc_projects/elixir/nerves/tft_display/_build/rpi0_dev/lib/cvt_color/priv/cvt_color.so] Error 1
could not compile dependency :cvt_color, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile cvt_color", update it with "mix deps.update cvt_color" or clean it with "mix deps.clean cvt_color"
==> tft_display
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. Try running the
commands "gcc --version" and / or "make --version". If these programs
are not installed, you will be prompted to install them.
Do you have any ideas what I'm missing here (I've tried removing deps and recompiling and it hasn't seemed to make any difference)?