FS#49351 - [gcc] 6.1.1 internal compiler error

Attached to Project: Arch Linux
Opened by Hermann (stertingen) - Monday, 16 May 2016, 01:16 GMT
Last edited by Allan McRae (Allan) - Friday, 09 September 2016, 02:20 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

This ICE occurs when executing:

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -flto -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_USE_QSTRINGBUILDER -DQT_STRICT_ITERATORS -DPACKAGE_VERSION=3.1.0 -DPACKAGE_NAME=turag-console -DSIM -DSIMULATION -DTURAG_DEBUG_ENABLE_BINARY -DQWT_DLL -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_XML_LIB -DQT_CORE_LIB -I../Console -I. -Itina-platform/public -I../Console -I../../../libs -I../../../libs/libsimeurobot/plugin -I../../Debug-Server -I../../Debug-Server -I../../../src/common -I../../../tina -I../../../tina/platform/desktop/public -isystem /usr/include/qwt -isystem /usr/include/qt -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtMultimediaWidgets -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtMultimedia -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSerialPort -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o motioncontrollayer.o ../../../libs/libsimeurobot/vis/motioncontrollayer.cpp

which results in:

In file included from ../../../libs/libsimeurobot/vis/motioncontrollayer.h:7:0,
from ../../../libs/libsimeurobot/vis/motioncontrollayer.cpp:1:
../../../libs/libsimeurobot/vis/debugobjects.h: In constructor 'TURAG::SimEurobot::Debug::DriveSplineV1::DriveSplineV1()':
../../../libs/libsimeurobot/vis/debugobjects.h:108:8: in constexpr expansion of 'TURAG::Pose()'
../../../tina/tina++/geometry/geometry.h:167:20: in constexpr expansion of '((TURAG::Pose*)this)->TURAG::Pose::x.TURAG::Units::Quantity<Dim>::Quantity<int>(0)'
../../../tina/tina++/geometry/units/unit.h:185:42: in constexpr expansion of 'TURAG::Units::detail::toValue<int, 0u>(val)'
../../../libs/libsimeurobot/vis/debugobjects.h:108:8: internal compiler error: in cxx_eval_call_expression, at cp/constexpr.c:1449
struct DriveSplineV1 {
^~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
Makefile:3342: recipe for target 'motioncontrollayer.o' failed
make: *** [motioncontrollayer.o] Error 1


I attached a preprocessed source file using the -E parameter. (Gzipped because of largeness)
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 09 September 2016, 02:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  Patch should be in gcc-6.2.1-1
Comment by Allan McRae (Allan) - Monday, 16 May 2016, 02:56 GMT Comment by Allan McRae (Allan) - Monday, 16 May 2016, 02:59 GMT
No it is not... This has just been tacked onto the end of a different bug.
Comment by Hermann (stertingen) - Monday, 16 May 2016, 11:41 GMT
Well, I did this. Why is it different? (Except for the Optimization levels) It's both an ICE in cxx_eval_call_expression at cp/constexpr.c:1449.
Comment by Allan McRae (Allan) - Monday, 16 May 2016, 12:00 GMT
Bugs that are exposed by different optimisation levels rarely have the same fix. It would have been better to open a new bug and then link the two bugs.

Anyway, once the patch(es) land upstream, I will fix the package.

Loading...