Eclipse Neon (4.6.3) with CDT 9.2.1.
Arduino IDE 1.8.3 (I use it for the libraries and tool chain). This has GCC 4.9.2.
MinGW32 is installed and that has GCC 5.3.0.
I am trying to build an C++project from Eclipse. I am not using the Arduino add in for Eclipse. To build my project I use a makefile which I run from Eclipse. I have confirmed that Eclipse is using make from MingGW32.
The makefile fails on this step.
C:/workspace/arduino-1.8.3/hardware/tools/avr/bin/avr-ar.exe rcs --plugin C:/workspace/arduino-1.8.3/hardware/tools/avr/libexec/gcc/avr/4.9.2/liblto_plugin-0.dll core.a core/abi.cpp.o core/CDC.cpp.o core/HardwareSerial.cpp.o core/HardwareSerial0.cpp.o core/HardwareSerial1.cpp.o core/HardwareSerial2.cpp.o core/HardwareSerial3.cpp.o core/hooks.c.o core/IPAddress.cpp.o core/main.cpp.o core/new.cpp.o core/PluggableUSB.cpp.o core/Print.cpp.o core/Stream.cpp.o core/Tone.cpp.o core/USBCore.cpp.o core/WInterrupts.c.o core/wiring.c.o core/wiring_analog.c.o core/wiring_digital.c.o core/wiring_pulse.c.o core/wiring_pulse.S.o core/wiring_shift.c.o core/WMath.cpp.o core/WString.cpp.o
It gives the error message ...
c:\workspace\arduino-1.8.3\hardware\tools\avr\bin\avr-ar.exe: could not create temporary file whilst writing archive: No more archived files
I opened a DOS command line went to my build folder and entered the command and it worked. Also, if I start a bash shell, it still works.
There is nothing in the Eclipse error log.
I know Eclipse is setting up a bash shell to run the makefile. I have confirmed that Eclipse is using make from C:\MinGW. There are some other some other mingw's on the system, but I know Eclipse is using C:\MinGW because when I move avr-ar.exe Eclipse reports the command cannot be found.
Anyone have any details on how Eclipse CDT sets up a bash shell to run a makefile? I think it has got to do with the bash shell as Eclipse sets it up.