This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70977] New: Error during compilation of facebook/wangle (flag c++0x works, flag c++14 fails).
- From: "aleksandergajewski at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 May 2016 11:59:09 +0000
- Subject: [Bug c++/70977] New: Error during compilation of facebook/wangle (flag c++0x works, flag c++14 fails).
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70977
Bug ID: 70977
Summary: Error during compilation of facebook/wangle (flag
c++0x works, flag c++14 fails).
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: aleksandergajewski at gmail dot com
Target Milestone: ---
GCC version as follows: (nothing but svn checkout release_6_1.. && ./configure
--prefix=/usr && make && make install):
adiog@box:~/dev/wangle/build-6.1$ c++ --version
c++ (GCC) 6.1.0
Copyright (C) 2016 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.
The problem should be easy to reproduce (compilation fails on first file in a
project). I have compiled https://github.com/facebook/wangle, but with changed
flag from -std=c++0x to -std=c++14. In first case compilation terminates after
few seconds, in second one there is a gcc internal error (after few minutes
with whole ram 4gb and whole swap consumed). htop does not show any cpu usage.
adiog@box:~/dev/wangle/build-6.1$ time /usr/bin/c++
-I/home/adiog/dev/wangle/.. -I/usr/local/include
-I/home/adiog/dev/wangle/gmock/src/gmock/include
-I/home/adiog/dev/wangle/gmock/src/gmock/gtest/include -std=c++0x -fPIC -o
CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o -c
/home/adiog/dev/wangle/acceptor/Acceptor.cpp
real 0m6.311s
user 0m6.036s
sys 0m0.256s
adiog@box:~/dev/wangle/build-6.1$ time /usr/bin/c++
-I/home/adiog/dev/wangle/.. -I/usr/local/include
-I/home/adiog/dev/wangle/gmock/src/gmock/include
-I/home/adiog/dev/wangle/gmock/src/gmock/gtest/include -std=c++14 -fPIC -o
CMakeFiles/wangle.dir/acceptor/Acceptor.cpp.o -c
/home/adiog/dev/wangle/acceptor/Acceptor.cpp
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
real 3m41.641s
user 1m5.628s
sys 0m5.684s