Issue in compile Arduino code

t4z3v4r3d

Member


Messages: 64

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

Daemon

Reaction score: 433
Messages: 1,055

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.
 
OP
OP
t4z3v4r3d

t4z3v4r3d

Member


Messages: 64

I didn't change in compiler commands, i just run arduino ide compiler !
I tried with -g and nothing was happened.
 

Snurg

Aspiring Daemon

Reaction score: 329
Messages: 794

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)
 

nik0tine

Member

Reaction score: 1
Messages: 41

help.... me too (arduino vs arduino18?)
whenever I try to compile a sketch i get:
Code:
/usr/local/lib/gcc/avr/5.4.0/../../../../avr/bin/ld: /usr/local/libexec/gcc/avr/5.4.0/liblto_plugin.so: error loading plugin: Service unavailable
collect2: error: ld returned 1 exit status
 
Top