Can't compile anymore arm-none-eabi-gcc: error: unrecognized debug output level

(deleted)

I can reproduce the problem so it's nothing to do with your specific user account. This is a global problem with the Arduino Web Editor.

You can use the regular Arduino IDE until the problem is resolved.

For future reference, there is a forum section dedicated to the Arduino Web Editor (AKA Arduino Create):

where people knowledgeable on this topic are more likely to see your post. I have requested this thread be moved there.

(deleted)

In the command:

"/home/ubuntu/opt/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc" -mcpu=cortex-m3 -mthumb -Os -Wl,--gc-sections "-T/home/ubuntu/opt/cores/arduino/sam/variants/arduino_due_x/linker_scripts/gcc/flash.ld" "-Wl,-Map,/tmp/091644918/build/sketch_jun15a.ino.map" -o "/tmp/091644918/build/sketch_jun15a.ino.elf" "-L/tmp/091644918/build" -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group -u _sbrk -u link -u _close -u _fstat -u _isatty -u _lseek -u _read -u _write -u _exit -u kill -u _getpid "/tmp/091644918/build/sketch/sketch_jun15a.ino.cpp.o" "/tmp/091644918/build/core/variant.cpp.o" "/home/ubuntu/opt/cores/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a" "/tmp/091644918/build/../../core/core_arduino_sam_arduino_due_x_dbg_43eb6cf9606156c3c38e6e7e06934e69.a" -Wl,--end-group -lm -gcc

the -gcc option is being interpreted as the -g debug output level option. That option was added here:

to fix this bug:

The root of the problem is that Arduino Web Editor is not using the intended tool version. Arduino SAM Boards explicitly specifies that arm-none-eabi-gcc 4.8.3-2014q1 should be used:

       {
          "name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
          "architecture": "sam",
          "version": "1.6.11",
          "category": "Arduino",
          "url": "http://downloads.arduino.cc/cores/sam-1.6.11.tar.bz2",
          "archiveFileName": "sam-1.6.11.tar.bz2",
          "checksum": "SHA-256:fb8e275f39622a5574a11cef85be3ed36a6995c38a19b20de6fb48e9c7f88b70",
          "size": "16474757",
          "boards": [
            {"name": "Arduino Due"}
          ],
          "toolsDependencies": [
            {
              "packager": "arduino",
              "name": "arm-none-eabi-gcc",
              "version": "4.8.3-2014q1"
            },
            {
              "packager": "arduino",
              "name": "bossac",
              "version": "1.6.1-arduino"
            }
          ]
        },

Yet here's the Arduino Web Editor using 7-2017q4 instead, which is the tool version used by Arduino SAMD Boards. This issue does not occur with the beta build 78 of the Arduino IDE so I don't know where this problem is coming from.

Previous reports:

I also notice Arduino Web Editor is using unexpected tool versions for AVR:

"/home/ubuntu/opt/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-size" -A "/tmp/263970814/build/sketch_jun15a.ino.elf"

Sketch uses 656 bytes (0%) of program storage space. Maximum is 253952 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.

Flashing with command:C:/Users/per/.arduino-create/arduino/avrdude/6.0.1-arduino5/bin/avrdude.exe -CC:/Users/per/.arduino-create/arduino/avrdude/6.0.1-arduino5/etc/avrdude.conf {upload.verify} -patmega2560 -cwiring -PCOM5 -b115200 -D -Uflash:w:C:/Users/per/AppData/Local/Temp/arduino-create-agent154256875/sketch_jun15a.hex:i

avr-gcc 4.9.2-atmel3.5.4-arduino2 corresponds with the latest release of Arduino AVR Boards 1.6.21 so that's fine, but then it's using avrdude 6.0.1-arduino5, which was last used in Arduino AVR Boards 1.6.13!

More evidence of Arduino Web Editor being all messed up is there is no "FLAVOUR: atmega328old" in the board menu and the "FLAVOUR: ATmega328" option tries to upload at 57600 baud so it looks to be using a pre-1.6.21 version of Arduino AVR Boards.

Looks like this is being addressed here: