FS#68084 - [gcc] internal compiler erorr

Attached to Project: Arch Linux
Opened by Luna D Dragon (nullrequest) - Saturday, 03 October 2020, 10:15 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 05 November 2021, 19:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I was compiling rose-compiler when gcc threw this error
during GIMPLE pass: strlen
/home/nullrequest/rose/src/midend/astDiagnostics/AstStatistics.C: In member function ‘virtual void ROSE_Statistics::AstNodeMemoryPoolStatistics::visit(SgNode*)’:
/home/nullrequest/rose/src/midend/astDiagnostics/AstStatistics.C:181: internal compiler error: in subspan, at input.h:69
181 | void AstNodeMemoryPoolStatistics::visit ( SgNode* node)
|
Please submit a full bug report,
with preprocessed source if appropriate.

the source i was compiling can be fetched from https://github.com/rose-compiler/rose
Steps to reproduce:
1. git clone -b develop https://github.com/rose-compiler/rose rose
2. mkdir release
3. cd release
4. cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
5. make -j2

This specifically is the source of what function caused the error.
```
void
AstNodeTraversalStatistics::visit(SgNode* node) {
if(!node) return;
ROSE_ASSERT(node->variantT()<V_SgNumVariants);
numNodeTypes.at(node->variantT())++;
}
```
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 05 November 2021, 19:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  2021-11-05: A task closure has been requested. Reason for request: I think it was fixed in gcc 10
Comment by loqs (loqs) - Saturday, 03 October 2020, 16:20 GMT Comment by freswa (frederik) - Monday, 05 October 2020, 12:45 GMT
Please try the mentioned patch. Thanks
Comment by Luna D Dragon (nullrequest) - Tuesday, 06 October 2020, 15:16 GMT
how should i do this?
Comment by freswa (frederik) - Tuesday, 06 October 2020, 15:17 GMT Comment by Luna D Dragon (nullrequest) - Friday, 09 October 2020, 03:53 GMT
The mentioned patch works.

Loading...