Issue in compile Arduino code

t4z3v4r3d

Member


Messages: 64

#1
This is hard to choice where i post, anywhere
After upgrading ports on FreeBSD 11, I'm not able to compile my code in Arduino18 IDE,
The error is here :


arm-none-eabi-gcc: error: unrecognized debug output level 'cc'
 

Attachments

aragats

Aspiring Daemon

Thanks: 372
Messages: 942

#2
Doesn't it clearly say that the option used is invalid?
You have -gcc option, I don't see such in gcc docs.
Just use -g<level> instead or remove it at all.
 

Snurg

Aspiring Daemon

Thanks: 327
Messages: 794

#4
The Arduino IDE sucks balls. I recommend to delete it.
This is the CFLAGS entry of my makefile to give you an idea of the options to use:
Code:
CFLAGS= -std=gnu++14 $(FIXGCC) -I$(ARDUINOVARIANT) -I$(ARDUINOBASEDIR) -I$(ARDUINOCORE) \
       -Wall -Wextra -g -Os -c -fno-exceptions -ffunction-sections -fdata-sections -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 \
       -mmcu=$(MCU) -D$(BOARDCPU) -DF_CPU=$(F_CPU)
 
Top