FS#58214 - [arm-none-eabi-gcc] Internal compiler error while compile C++ code

Attached to Project: Community Packages
Opened by Andreas Polzer (holzwurm) - Friday, 13 April 2018, 05:08 GMT
Last edited by freswa (frederik) - Tuesday, 11 February 2020, 21:30 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When we try to cross compile for an arm chip we run into an internal compiler error. We think there is an link to an virtual function. We use the following parameters:
/usr/bin/arm-none-eabi-g++ -I[..] -I[..] -mcpu=arm926ej-s -mthumb-interwork -mfloat-abi=soft -mlittle-endian -mapcs-frame -mlong-calls -marm -mtune=arm926ej-s -nostdinc -nostdinc++ -std=c++98 -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -funsigned-char -Wall -Wextra -pedantic -Wformat -Winit-self -Wfloat-equal -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wsign-compare -Wtype-limits -Wuninitialized -Wshadow -Wcast-qual -Wredundant-decls -Wmissing-declarations -Wlogical-op -Wsign-conversion -Wwrite-strings -Wundef -Wunused-parameter -Wno-vla -Wno-long-long -Wno-unknown-pragmas -Wconversion -std=c++98 -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -funsigned-char -Wall -Wextra -pedantic -Wformat -Winit-self -Wfloat-equal -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wsign-compare -Wtype-limits -Wuninitialized -Wshadow -Wcast-qual -Wredundant-decls -Wmissing-declarations -Wlogical-op -Wsign-conversion -Wwrite-strings -Wundef -Wunused-parameter -Wno-vla -Wno-long-long -Wno-unknown-pragmas -Wconversion -O2 -o CMakeFiles/Start_objs.dir/start/CodeFile.cpp.obj -c /home/[..]/CodeFile.cpp
/home/[..]/CodeFile.cpp: In member function 'virtual void NameSpace::Test::_ZThn8_N6Safari18CodeFile16OnTimerActionEP7TMR(TMR*)':
/home/[..]/CodeFile.cpp:70:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1026
} /* NameSpace */

We are able to Compile the same Code with Windows and Code Sourcery 4.5.2

Additional info:
* package version [arm-none-eabi-gcc] 7.3.0-1
* there is no special configuration made


Steps to reproduce:

Compile C++ Code with wirtual functions for a arm V9 architecture arm926ej-s

Please write if you need additional information. If necessary i will create an minimal example where the error occours.
This task depends upon

Closed by  freswa (frederik)
Tuesday, 11 February 2020, 21:30 GMT
Reason for closing:  Upstream
Additional comments about closing:  Reporter reported upstream - report is stalled.
Comment by Andreas Polzer (holzwurm) - Friday, 13 April 2018, 05:48 GMT
We had some additional research on the compiler and saw, that a gcc 7.2.1 from the arm homepage for windows has the same problem. There is said, that we should add an bug report to the gcc homepage. Therefore i will close this request
Comment by freswa (frederik) - Tuesday, 11 February 2020, 19:07 GMT
Could you please add a link to the upstream report here, so we have a reference for anyone who finds this report?

Loading...