sorry for the noise: I made a mistake because the file to edit is /usr/share/arduino/hardware/arduino/avr/platform.txt. I inserted
-fno-devirtualize as option in this line: compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -fno-devirtualize and now it works as expected. Tnx for help (and patience) Antonio Montagnani Linux Fedora 27(Workstation) da/from Gmail 2018-01-21 7:45 GMT+01:00 Antonio M <antonio.montagn...@gmail.com>: > I edited the platform.txt file and I re-installed 6.20 board manager but I > stil get: > > Arduino:1.8.4 (Linux), Scheda:"Arduino/Genuino Uno" > > lto1: internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See <https://bugzilla.redhat.com/> for instructions. > lto-wrapper: fatal error: /usr/bin/avr-gcc returned 1 exit status > compilation terminated. > /usr/lib/gcc/avr/6.3.0/../../../../avr/bin/ld: error: lto-wrapper failed > collect2: error: ld returned 1 exit status > exit status 1 > Errore durante la compilazione per la scheda Arduino/Genuino Uno. > > Questo report potrebbe essere piĆ¹ ricco di informazioni abilitando > l'opzione > "Mostra un output dettagliato durante la compilazione" > in "File -> Impostazioni" > > ============================================================ > ============================ > # ctags > # ------------------------------ > tools.ctags.path=/usr/bin > tools.ctags.cmd.path={path}/arduino-ctags > tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - > --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}" > > # additional entries > tools.avrdude.path=/usr/bin > > preproc.macros.flags=-w -x c++ -E -CC > compiler.cpp.flags=-fno-devirtualize > > #preproc.macros.compatibility_flags={build.mbed_api_include} > {build.nRF51822_api_include} {build.ble_api_include} > {compiler.libsam.c.flags} {compiler.arm.cmsis.path} > {build.variant_system_include} > #recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" > {compiler.cpreprocessor.flags} {preproc.macros.flags} -DF_CPU={build.f_cpu} > -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} > -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} > {preproc.macros.compatibility_flags} {includes} "{source_file}" -o > "{preprocessed_file_path}" > > Antonio Montagnani > > Linux Fedora 27(Workstation) > da/from Gmail > > 2018-01-20 23:52 GMT+01:00 Antonio M <antonio.montagn...@gmail.com>: > >> yes, i downgraded to 6.19 board manager and it works. But in my >> platform.txt I don't see any -flto option. Any idea?? >> >> # ctags >> # ------------------------------ >> tools.ctags.path=/usr/bin >> tools.ctags.cmd.path={path}/arduino-ctags >> tools.ctags.pattern="{cmd.path}" -u --language-force=c++ -f - >> --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}" >> >> # additional entries >> tools.avrdude.path=/usr/bin >> >> preproc.macros.flags=-w -x c++ -E -CC >> #preproc.macros.compatibility_flags={build.mbed_api_include} >> {build.nRF51822_api_include} {build.ble_api_include} >> {compiler.libsam.c.flags} {compiler.arm.cmsis.path} >> {build.variant_system_include} >> #recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" >> {compiler.cpreprocessor.flags} {compiler.cpp.flags} {preproc.macros.flags} >> -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} >> -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} >> {compiler.cpp.extra_flags} {build.extra_flags} >> {preproc.macros.compatibility_flags} {includes} "{source_file}" -o >> "{preprocessed_file_path}" >> >> Antonio Montagnani >> >> Linux Fedora 27(Workstation) >> da/from Gmail >> >> 2018-01-20 23:46 GMT+01:00 Alessio Ciregia <alcir...@gmail.com>: >> >>> 2018-01-20 23:33 GMT+01:00 Antonio M <antonio.montagn...@gmail.com>: >>> > yes and similar bugs. I have downgraded the board manager to 1.6.19 and >>> > sketck compiles now... >>> >>> BTW, if you read the comments, you can find a "workaround". >>> >>> Ciao >>> A. >>> _______________________________________________ >>> users mailing list -- users@lists.fedoraproject.org >>> To unsubscribe send an email to users-le...@lists.fedoraproject.org >>> >> >> >
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org