[Bug 1002053] Re: g++ Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49
Matthias Klose
doko at ubuntu.com
Sun May 20 23:37:47 UTC 2012
** Package changed: gcc-defaults (Ubuntu) => gcc-4.6 (Ubuntu)
** Also affects: gcc-4.6 (Ubuntu Oneiric)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1002053
Title:
g++ Internal compiler error when compiling
boost/smart_ptr/intrusive_ptr.hpp 1.49
Status in “gcc-4.6” package in Ubuntu:
New
Status in “gcc-4.6” source package in Oneiric:
New
Bug description:
When compiling boost 1.49 on Ubuntu 11.10 wigh GCC version 4.6.1-9ubuntu3, I
get an internal compiler error. The error happens when the following command is
run in tools/quickbook:
"g++" -ftemplate-depth-300 -O3 -finline-functions -Wno-inline -Wall -g -g0
-DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_NO_DEPRECATED
-DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"../.." -c -o
"../../bin.v2/tools/quickbook/src/gcc-4.6.1/release/debug-symbols-on/link-static/id_manager.o"
"src/id_manager.cpp"
The error is:
In file included from ../../boost/intrusive_ptr.hpp:16:0,
from src/fwd.hpp:15,
from src/values.hpp:20,
from src/id_manager.hpp:14,
from src/id_manager.cpp:9:
../../boost/smart_ptr/intrusive_ptr.hpp: In destructor
‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T = quickbook::file_info]’:
../../boost/smart_ptr/intrusive_ptr.hpp:94:5: internal compiler error:
Segmentation fault
I was building the boost library by downloading the sources from here:
http://packages.ubuntu.com/source/quantal/boost1.49 and using the "debuild"
tool to build installable packages. The build will fail at the above command,
and the command can then be repeated to consistently produce the error.
I reported this bug upstream:
gcc.gnu.org/bugzilla/show_bug.cgi?id=53350. The upstream report
includes a reduced test case.
I determined that this bug is fixed in GCC 4.6.3, which is the version
included in Ubuntu 12.04. To fix this bug, presumably the fix would
need to be located and backported. Obviously, Ubuntu 11.10 does not
use version 1.49 of Boost. I was compiling this newer version (from
the 12.10 repos) on Ubuntu 11.10 so that I could compile a recent
release of some other software that requires this version. If being
able to compile later versions of Boost is not a priority, you can
close this as invalid and mark it as fixed in 12.04. I don't know if
any other commonly used software triggers the same compiler bug, so I
can't comment on the overall impact.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1002053/+subscriptions
More information about the foundations-bugs
mailing list