Il y a certainement une mauvaise config quelque part, lorsque je charge "Blink", tout se passe normalement, mais dès que je charge un autre programme, voilà ce que je reçois comme erreur : par exemple pour :
AnalogReadSerial

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
during RTL pass: combine
/usr/share/arduino/hardware/archlinux-arduino/avr/cores/arduino/main.cpp: In function 'main':
/usr/share/arduino/hardware/archlinux-arduino/avr/cores/arduino/main.cpp:51:1: internal compiler error: in add_clobbers, at config/avr/avr-dimode.md:2705
   51 | }
      | ^
0x132fb8b diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t)
	???:0
0x1330acd internal_error(char const*, ...)
	???:0
0x5a8992 fancy_abort(char const*, int, char const*)
	???:0
0x59f067 add_clobbers(rtx_def*, int) [clone .cold]
	???:0
0x1143d97 recog_for_combine_1(rtx_def**, rtx_insn*, rtx_def**)
	???:0
0x114608e recog_for_combine(rtx_def**, rtx_insn*, rtx_def**)
	???:0
0x1158fa5 try_combine(rtx_insn*, rtx_insn*, rtx_insn*, rtx_insn*, int*, rtx_insn*)
	???:0
0x115c2a4 (anonymous namespace)::pass_combine::execute(function*)
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /usr/bin/avr-gcc returned 1 exit status
compilation terminated.
/usr/bin/avr-ld*: erreur*: lto-wrapper failed
collect2: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino Mega or Mega 2560
avec ces options dans les outils :

Type de carte:"Arduino Mega or Mega 2560"
Processeur:"ATmega2560(Mega2560)"
Programmateur:"AVR ISP"

J'ai également éssayé avec le programmateur AVRISP Mk2; la même erreur apparait. Que fait le programmateur ? Personne ne développe cette option.

Voilà, pouvez-vous me dire où est le problème ? Merci d'avance.

JMPreme