arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.25k stars 1.06k forks source link

Compiler broken for avrtiny chips (eg ATtiny10) #568

Closed WestfW closed 2 months ago

WestfW commented 2 months ago

For some reason, the avr-gcc compiler included with recent avr board installs fails to compile code for ATtiny10, getting messages about missing and/or incompatible libraries. The libraries do seem to be there; I'm not sure what is wrong with them. This seems to have happened with the transition to (ARDUINO-compiled?) avr-gcc v7.3 from v5.4; the last version where it works in Arduino 1.8.9

Note that the 7.3.x compiler downloaded from Microchip works properly... (and note that this is a bare compile. No IDE involved.) Theses file DO exist in their expected places. I don't have deep enough knowlege of gcc builds to figure out why they aren't being found, or are being rejected as incompatible.

Here's a log with the verbose option enabled...

.../avr-g++ -mmcu=attiny10 -Os -g -v foo.cpp

Using built-in specs.
Reading specs from /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/device-specs/specs-attiny10
COLLECT_GCC=/Users/billw/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin//avr-g++
COLLECT_LTO_WRAPPER=/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/lto-wrapper
Target: avr
Configured with: ../gcc/configure --enable-fixed-point --enable-languages=c,c++ --prefix=/Users/jenkins/jenkins/workspace/avr-gcc-staging/label/mac-mini/objdir --disable-nls --disable-libssp --disable-libada --disable-shared --with-avrlibc=yes --with-dwarf2 --disable-doc --target=avr
Thread model: single
gcc version 7.3.0 (GCC) 
COLLECT_GCC_OPTIONS= '-Os' '-g' '-v' '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/cc1plus -quiet -v -iprefix /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/ -D__AVR_ATtiny10__ -D__AVR_DEVICE_NAME__=attiny10 foo.cpp -mn-flash=1 -mno-skip-bug -mabsdata -quiet -dumpbase foo.cpp -mmcu=avrtiny -auxbase foo -g -Os -version -mn-flash=1 -mno-skip-bug -mabsdata -fno-rtti -fno-enforce-eh-specs -fno-exceptions -o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccoLxcZw.s
GNU C++14 (GCC) version 7.3.0 (avr)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38), GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/avr"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/backward"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/sys-include"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/avr"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/backward"
ignoring duplicate directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/include"
ignoring duplicate directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/include-fixed"
ignoring nonexistent directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/sys-include"
ignoring duplicate directory "/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include"
#include "..." search starts here:
#include <...> search starts here:
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/include
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/include-fixed
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/include
End of search list.
GNU C++14 (GCC) version 7.3.0 (avr)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38), GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d29517aadee47ae2ad83928b972d8dfb
COLLECT_GCC_OPTIONS= '-Os' '-g' '-v' '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/as -mmcu=avrtiny -mno-skip-bug -o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccxlgJed.o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccoLxcZw.s
COMPILER_PATH=/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/:/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/:/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/
LIBRARY_PATH=/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/:/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/:/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/
COLLECT_GCC_OPTIONS= '-Os' '-g' '-v' '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/collect2 -plugin /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/liblto_plugin.so -plugin-opt=/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../libexec/gcc/avr/7.3.0/lto-wrapper -plugin-opt=-fresolution=/var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccx1Aq3h.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lattiny10 -mavrtiny crtattiny10.o -L/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0 -L/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc -L/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccxlgJed.o -lgcc -lm --start-group -lgcc -lm -lc -lattiny10 --end-group
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find crtattiny10.o: No such file or directory
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: skipping incompatible /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/libgcc.a when searching for -lgcc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lgcc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: skipping incompatible /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/libm.a when searching for -lm
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lm
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: skipping incompatible /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/libgcc.a when searching for -lgcc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lgcc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: skipping incompatible /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/libm.a when searching for -lm
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lm
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: skipping incompatible /Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/libc.a when searching for -lc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lc
/Volumes/MacOS/HD-Users/BillW/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: cannot find -lattiny10
collect2: error: ld returned 1 exit status

And here's the working version

.../avr-g++ -mmcu=attiny10 -Os -g -v foo.cpp

Using built-in specs.
Reading specs from /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/device-specs/specs-attiny10
COLLECT_GCC=/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/avr-g++
COLLECT_LTO_WRAPPER=/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/lto-wrapper
Target: avr
Configured with: /Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/src/gcc/configure LDFLAGS=-L/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64-hostlibs/lib CPPFLAGS= --target=avr --host=x86_64-apple-darwin17.0.0 --build=x86_64-apple-darwin17.0.0 --prefix=/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64 --libdir=/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64/lib --enable-languages=c,c++ --with-dwarf2 --enable-doc --disable-shared --disable-libada --disable-libssp --disable-nls --with-avrlibc=yes --with-mpfr=/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64-hostlibs --with-gmp=/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64-hostlibs --with-mpc=/Volumes/build_disk/jenkins_mcu/workspace/avr8-gnu-toolchain-osx/avr8-gnu-toolchain-darwin_x86_64-hostlibs --with-pkgversion=AVR_8_bit_GNU_Toolchain_3.7.0_518 --with-bugurl=http://www.microchip.com
Thread model: single
gcc version 7.3.0 (AVR_8_bit_GNU_Toolchain_3.7.0_518) 
COLLECT_GCC_OPTIONS='-v' '-Os' '-g'  '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/cc1plus -quiet -v -imultilib avrtiny -iprefix /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/ -D__AVR_ATtiny10__ -D__AVR_DEVICE_NAME__=attiny10 foo.cpp -mn-flash=1 -mno-skip-bug -mabsdata -quiet -dumpbase foo.cpp -mmcu=avrtiny -auxbase foo -g -Os -version -mn-flash=1 -mno-skip-bug -mabsdata -fno-rtti -fno-enforce-eh-specs -fno-exceptions -o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccHfDI12.s
GNU C++14 (AVR_8_bit_GNU_Toolchain_3.7.0_518) version 7.3.0 (avr)
    compiled by GNU C version 5.5.0, GMP version 5.0.2, MPFR version 3.0.0, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/avr/avrtiny"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/backward"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/sys-include"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/avr/avrtiny"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include/c++/7.3.0/backward"
ignoring duplicate directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/include"
ignoring duplicate directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/include-fixed"
ignoring nonexistent directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/sys-include"
ignoring duplicate directory "/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/../../lib/gcc/avr/7.3.0/../../../../avr/include"
#include "..." search starts here:
#include <...> search starts here:
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/include
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/include-fixed
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/include
End of search list.
GNU C++14 (AVR_8_bit_GNU_Toolchain_3.7.0_518) version 7.3.0 (avr)
    compiled by GNU C version 5.5.0, GMP version 5.0.2, MPFR version 3.0.0, MPC version 0.9, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 1d343ef2b854a15058333158d7755550
COLLECT_GCC_OPTIONS='-v' '-Os' '-g'  '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/as -mmcu=avrtiny -mno-skip-bug -o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//cc1FWFQR.o /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccHfDI12.s
COMPILER_PATH=/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/
LIBRARY_PATH=/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/avrtiny/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avrtiny/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/:/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/
COLLECT_GCC_OPTIONS='-v' '-Os' '-g'  '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
 /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/collect2 -plugin /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/liblto_plugin.so -plugin-opt=/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../libexec/gcc/avr/7.3.0/lto-wrapper -plugin-opt=-fresolution=/var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//ccsI15yz.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lattiny10 -mavrtiny /Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avrtiny/crtattiny10.o -L/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/avrtiny -L/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avrtiny -L/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0 -L/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc -L/Volumes/MacOS/HD-Downloads/Downloads/avr8-gnu-toolchain-darwin_x86_64/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib /var/folders/gv/zn3wcml52jq0vvjnd95j8g6h0000gp/T//cc1FWFQR.o -lgcc -lm --start-group -lgcc -lm -lc -lattiny10 --end-group
COLLECT_GCC_OPTIONS='-v' '-Os' '-g'  '-specs=device-specs/specs-attiny10' '-mmcu=avrtiny'
per1234 commented 2 months ago

Hi @WestfW. Thanks for taking the time to submit an issue.

I see we have another report about this at https://github.com/arduino/toolchain-avr/issues/65.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.