cpbotha/arduino-clion-minimal

nosys.specs missing at link time

Opened this issue · 0 comments

Trying this on my Mac with the latest Arduino IDE. I had to modify the avr-gcc tools to point at a newer version (7.3.0-atmel3.6.1). The compilers execute but I'm confronted with a message about -specs=nosys.specs file being missing. I don't see that file in the repository either.

"/Users/rpd/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/201.6668.126/CLion.app/Contents/bin/cmake/mac/bin/cmake" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=arduino-uno-toolchain.cmake -G "CodeBlocks - Unix Makefiles" /Users/rpd/projects/GreenerGrass/clion-experiment/arduino-clion-minimal
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /Users/rpd/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc
-- Check for working C compiler: /Users/rpd/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -- broken
CMake Error at /Users/rpd/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/201.6668.126/CLion.app/Contents/bin/cmake/mac/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/Users/rpd/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/rpd/projects/GreenerGrass/clion-experiment/arduino-clion-minimal/cmake-build-debug/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_6a9c8/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_6a9c8.dir/build.make CMakeFiles/cmTC_6a9c8.dir/build
    Building C object CMakeFiles/cmTC_6a9c8.dir/testCCompiler.c.obj
    /Users/rpd/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -DARDUINO=10805 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DF_CPU=16000000L -I/Users/rpd/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/cores/arduino -I/Users/rpd/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/variants/standard  -c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto -mmcu=atmega328p -std=gnu11 -fno-fat-lto-objects    -o CMakeFiles/cmTC_6a9c8.dir/testCCompiler.c.obj   -c /Users/rpd/projects/GreenerGrass/clion-experiment/arduino-clion-minimal/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_6a9c8
    "/Users/rpd/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/201.6668.126/CLion.app/Contents/bin/cmake/mac/bin/cmake" -E cmake_link_script CMakeFiles/cmTC_6a9c8.dir/link.txt --verbose=1
    /Users/rpd/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto -mmcu=atmega328p -std=gnu11 -fno-fat-lto-objects   -specs=nosys.specs  CMakeFiles/cmTC_6a9c8.dir/testCCompiler.c.obj  -o cmTC_6a9c8 
    avr-gcc: error: nosys.specs: No such file or directory
    make[1]: *** [cmTC_6a9c8] Error 1
    make: *** [cmTC_6a9c8/fast] Error 2