internal compiler error segmentation fault

I am porting code that compiled on Ubuntu 14.04 to 16.04. I have cloned my git repo, installed dependencies and tried the usual make command, soon I hit a g++: internal compiler error: Segmentation fault (program cc1plus) . yet I am not sure where to start to diagnose and resolve this issue.

I will share as much as I can, see if someone can guide me through a resolution.

Ubuntu

python

Some environment variables

Error

The make command leads to

The error message seems to be pointing at a g++ compiler error (?)

I realize that this is going to be very difficult to craft a proper question that would lead to getting proper help. So please bear with me and feel free to suggest adding anything that may help. Unfortunately, I can’t share the code.

Going to try upgrade g++ to a more recent version. Following this thread

lylyk

Создала проект, сейчас компилятор выводит ошибку. Помогите пожалуйста с этой проблемой, я новенькая в этом деле..

Вот:
In function ‘global constructors keyed to 65535_0_sketch_mar14a.ino.cpp.o’:

lto1.exe: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See for instructions.

lto-wrapper.exe: fatal error: C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtthardware oolsavr/bin/avr-gcc returned 1 exit status

c:/program files/windowsapps/arduinollc.arduinoide_1.8.19.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Ошибка компиляции для платы Arduino/Genuino Uno.

Я портирую код на который Убунту 14.04 в 16,04. Я клонировал свой репозиторий git, установил зависимости и попробовал обычный make Команда, скоро я ударил g++: internal compiler error: Segmentation fault (program cc1plus) … пока я не уверен, с чего начать диагностировать и решить эту проблему.

Я поделюсь настолько, насколько смогу, посмотрим, сможет ли кто-нибудь помочь мне с решением.

Ubuntu

питон

Некоторые переменные среды

ошибка

make команда ведет к

Сообщение об ошибке, кажется, указывает на g++ ошибка компилятора (?)

Я понимаю, что будет очень трудно выработать правильный вопрос, который привел бы к получению надлежащей помощи. Поэтому, пожалуйста, потерпите меня и предложите добавить что-нибудь, что может помочь. К сожалению, я не могу поделиться кодом.

Собираюсь попробовать обновить g++ на более свежую версию. Следующий эта тема

Решение

Просто сделайте, как вам было сказано:

пожалуйста отправить полный отчет об ошибке , с предварительно обработанным источником, если это необходимо.

Другие решения

Я выполнил следующее на моем Ubuntu 16.04

После чего g++ был увеличен с 5.4.0 в 5.4.1 которые решают проблему ошибки сегментации

Оцените статью