Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45093 - [gcc] internal compiler error: in cxx_eval_constant_expression, at cp/constexpr.c:3524

Attached to Project: Arch Linux
Opened by Michał Gawron (olimp) - Tuesday, 26 May 2015, 13:27 GMT
Last edited by Allan McRae (Allan) - Monday, 29 June 2015, 11:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
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:
GCC 5.1.0 shows internal compiler error during compilation.

GCC version:

gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Full command line and error message:

15:20 [master] git/xefis/src % LC_ALL=C make build/x86_64/objects/modules/io/pca9685.o
C++ build/x86_64/objects/modules/io/pca9685.o
g++ -fPIC -O4 -g -c -std=c++14 -Wall -Wall -Wextra -Wunused -Wunused-function -Wunused-label -Wnoexcept -fstrict-aliasing -Wstrict-aliasing=3 -fnothrow-opt -pthread -rdynamic -I. -Ilib -finline -funroll-loops -fomit-frame-pointer -DQT_NO_DEBUG -DCXXFLAGS='"-fPIC -O4 -g -c -std=c++14 -Wall -Wall -Wextra -Wunused -Wunused-function -Wunused-label -Wnoexcept -fstrict-aliasing -Wstrict-aliasing=3 -fnothrow-opt -pthread -rdynamic -I. -Ilib -finline -funroll-loops -fomit-frame-pointer"' -I/usr/include/qt/QtNetwork -I/usr/include/qt -I/usr/include/qt/QtXml -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt -I/usr/include/qt/QtCore -I/usr/include/qt -DXEFIS_ENABLE_ASSERT modules/io/pca9685.cc -o build/x86_64/objects/modules/io/pca9685.o
modules/io/pca9685.cc: In constructor 'PCA9685::PCA9685(Xefis::ModuleManager*, const QDomElement&)':
modules/io/pca9685.cc:60:32: internal compiler error: in cxx_eval_constant_expression, at cp/constexpr.c:3524
Module (module_manager, config)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
Makefile:275: recipe for target 'build/x86_64/objects/modules/io/pca9685.o' failed
make: *** [build/x86_64/objects/modules/io/pca9685.o] Error 1

Steps to reproduce:

Compile the attached file with following options:

g++ -fPIC -O4 -g -c -std=c++14 -Wall -Wall -Wextra -Wunused -Wunused-function -Wunused-label -Wnoexcept -fstrict-aliasing -Wstrict-aliasing=3 -fnothrow-opt -pthread -rdynamic -I. -Ilib -finline -funroll-loops -fomit-frame-pointer -DQT_NO_DEBUG -DCXXFLAGS='"-fPIC -O4 -g -c -std=c++14 -Wall -Wall -Wextra -Wunused -Wunused-function -Wunused-label -Wnoexcept -fstrict-aliasing -Wstrict-aliasing=3 -fnothrow-opt -pthread -rdynamic -I. -Ilib -finline -funroll-loops -fomit-frame-pointer"' -I/usr/include/qt/QtNetwork -I/usr/include/qt -I/usr/include/qt/QtXml -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt -I/usr/include/qt/QtCore -I/usr/include/qt -DXEFIS_ENABLE_ASSERT pca9685.cc -o pca9685.o
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 29 June 2015, 11:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  gcc-5.1.0-5
Comment by Michał Gawron (olimp) - Tuesday, 26 May 2015, 13:39 GMT
This is a regression, compilation worked fine under GCC 4.8.2.
Comment by Allan McRae (Allan) - Wednesday, 27 May 2015, 01:50 GMT
Lets reduce that command line to:
g++ -std=c++14 pca9685.cc -o pca9685.o
Comment by Allan McRae (Allan) - Wednesday, 27 May 2015, 23:54 GMT
Reduced testcase
Comment by Allan McRae (Allan) - Thursday, 28 May 2015, 00:00 GMT

Loading...