arduino compile exit status 255

I'm compiling for a Due. I got a compile error with this ambiguous number.

exit status 255

What does it mean?

(deleted)

spycatcher2k: What does the rest of the error say?

The output is set to verbose. I had to cut out most of the message to fit in the post. It does its thing and at the very end.

I noticed this error buried in the text

error: can't open ELF file

Arduino: 1.8.1 (Mac OS X), Board: "Arduino Due (Programming Port)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/minh/Library/Arduino15/packages -hardware /Users/minh/Documents/Arduino_esp8266/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/minh/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/minh/Documents/Arduino_esp8266/libraries -fqbn=arduino:sam:arduino_due_x_dbg -vid-
"/Users/minh/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary  "/var/folders/g6/gyxb11k906s8j8hdt21wlblm0000gn/T/arduino_build_205557/WAAC_esp8266.ino.elf" "/var/folders/g6/gyxb11k906s8j8hdt21wlblm0000gn/T/arduino_build_205557/WAAC_esp8266.ino.bin"
"/Users/minh/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9/esptool" -eo "/Users/minh/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/bootloaders/eboot/eboot.elf" -bo "/var/folders/g6/gyxb11k906s8j8hdt21wlblm0000gn/T/arduino_build_205557/WAAC_esp8266.ino.bin" -bm {build.flash_mode} -bf {build.flash_freq} -bz {build.flash_size} -bs .text -bp 4096 -ec -eo "/var/folders/g6/gyxb11k906s8j8hdt21wlblm0000gn/T/arduino_build_205557/WAAC_esp8266.ino.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec
error: can't open ELF file /Users/minh/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/bootloaders/eboot/eboot.elf
Using library Wire at version 1.0 in folder: /Users/minh/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire 
Using library WebParser in folder: /Users/minh/Documents/Arduino_esp8266/libraries/WebParser (legacy)
Using library Time at version 1.5 in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Time 
Using library dtostrf in folder: /Users/minh/Documents/Arduino_esp8266/libraries/dtostrf (legacy)
Using library Sensor in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Sensor (legacy)
Using library Device in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Device (legacy)
Using library Relay in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Relay (legacy)
Using library OneWire at version 2.3.2 in folder: /Users/minh/Documents/Arduino_esp8266/libraries/OneWire 
Using library OneWireSensor in folder: /Users/minh/Documents/Arduino_esp8266/libraries/OneWireSensor (legacy)
Using library PWM4 in folder: /Users/minh/Documents/Arduino_esp8266/libraries/PWM4 (legacy)
Using library Video in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Video (legacy)
Using library Adafruit_PWMServoDriver in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Adafruit_PWMServoDriver (legacy)
Using library AdaFruitPWM8 in folder: /Users/minh/Documents/Arduino_esp8266/libraries/AdaFruitPWM8 (legacy)
Using library Alert in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Alert (legacy)
Using library Shunt in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Shunt (legacy)
Using library Analog in folder: /Users/minh/Documents/Arduino_esp8266/libraries/Analog (legacy)
Using library DeviceDelegate in folder: /Users/minh/Documents/Arduino_esp8266/libraries/DeviceDelegate (legacy)
exit status 255
Error compiling for board Arduino Due (Programming Port).

Oh!, I tried compiling a empty sketch and got the same error. I did switch my sketch folder to work on an ESP8266. I guess the hardware definition won't work for other boards. I'll have to switch it back.

Why switch sketch folders.... And if you want to separate ESP projects from Due projects just make a sub directory IN your sketchbook.