Monday, April 21, 2008

Fighting GCC 4.3

Well, my new system is mostly up. However, a few libraries won't build cleanly with GCC 4.3, and 4.2.3 has a tendency to segfault when compiling complex things, such as Boost:

MkDir1 bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi/instantiate_cpp_exprgrammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi/instantiate_cpp_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi/instantiate_cpp_literalgrs.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi/instantiate_defined_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.2/release/debug-symbols-none/link-static/optimization-none/runtime-link-static/threading-multi/instantiate_predef_macros.o
./boost/graph/detail/read_graphviz_spirit.hpp: In constructor 'boost::detail::graph::dot_grammar::definition<ScannerT>::definition(const boost::detail::graph::dot_grammar&) [with ScannerT = boost::spirit::scanner<boost::spirit::multi_pass<std::istream_iterator<char, char, std::char_traits<char>, long int>, boost::spirit::multi_pass_policies::input_iterator, boost::spirit::multi_pass_policies::ref_counted, boost::spirit::multi_pass_policies::buf_id_check, boost::spirit::multi_pass_policies::std_deque>, boost::spirit::scanner_policies<boost::spirit::skip_parser_iteration_policy<boost::detail::graph::dot_skipper, boost::spirit::iteration_policy>, boost::spirit::match_policy, boost::spirit::action_policy> >]':
./boost/graph/detail/read_graphviz_spirit.hpp:141: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
./boost/graph/detail/read_graphviz_spirit.hpp: In constructor 'boost::detail::graph::dot_grammar::definition<ScannerT>::definition(const boost::detail::graph::dot_grammar&) [with ScannerT = boost::spirit::scanner<boost::spirit::multi_pass<std::istream_iterator<char, char, std::char_traits<char>, long int>, boost::spirit::multi_pass_policies::input_iterator, boost::spirit::multi_pass_policies::ref_counted, boost::spirit::multi_pass_policies::buf_id_check, boost::spirit::multi_pass_policies::std_deque>, boost::spirit::scanner_policies<boost::spirit::skip_parser_iteration_policy<boost::detail::graph::dot_skipper, boost::spirit::iteration_policy>, boost::spirit::match_policy, boost::spirit::action_policy> >]':
./boost/graph/detail/read_graphviz_spirit.hpp:263: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.

If this problem persists, I will submit a bug report; this sort of thing shouldn't happen. The current goal, though, is to get the system up and running.

EDIT: I've noticed that compiling GCC 4.2.3 causes the computer to either get stuck with no CPU time or hardlock. It happens when compiling with any GCC version, and makes it to where I can't SSH into the machine, or even use the VGA console. I wonder what could be causing that.

Post a Comment