Nikos Ntarmos writes: [...]
> Hi there. > Could you be running out of memory during that compilation? I'd suggest > adding some swap space[1] and trying again, or play around with lower gcc > optimization levels (-O0, -O). I'm already using a 2 GiB swap device. I added -dH option in existing c++ command-line[1] to force it to dump a core file, and then I loaded it in gdb and following is the backtrace. #v+ (gdb) bt #0 0x000000000088893c in kill () at kill.S:2 #1 0x00000000008879c4 in abort () at /usr/src/lib/libc/stdlib/abort.c:65 #2 0x0000000000811fb3 in real_abort () at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:652 #3 0x000000000081239b in diagnostic_action_after_output ( context=0x575, diagnostic=0x6) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:270 #4 0x00000000008120f5 in diagnostic_report_diagnostic ( context=0xbb16e0, diagnostic=0x7fffffffcad0) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:409 #5 0x0000000000812312 in internal_error (gmsgid=Variable "gmsgid" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:588 #6 0x000000000055c07d in crash_signal (signo=Variable "signo" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:607 #7 <signal handler called> #8 gimplify_va_arg_expr (expr_p=0x80521de00, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/builtins.c:4377 #9 0x00000000007e9881 in gimplify_expr (expr_p=0x80521de00, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, gimple_test_f=0x7f1cb3 <is_gimple_reg_rhs>, fallback=fb_rvalue) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5545 #10 0x00000000007e8b83 in gimplify_modify_expr ( expr_p=0x7fffffffd400, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, want_value=0 '\0') at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3565 #11 0x00000000007e9c25 in gimplify_expr (expr_p=0x7fffffffd400, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5518 #12 0x00000000007eb1b4 in gimplify_to_stmt_list ( stmt_p=0x7fffffffd400) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4309 #13 0x00000000007e958f in gimplify_expr (expr_p=0x805216e90, pre_p=0x7fffffffd410, post_p=0x7fffffffd408, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4124 #14 0x00000000007e9919 in gimplify_expr (expr_p=0x7fffffffd588, pre_p=0x7fffffffd530, post_p=0x7fffffffd528, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3746 #15 0x0000000000488dac in gimplify_cp_loop (cond=Variable "cond" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:246 #16 0x0000000000489151 in cp_gimplify_expr (expr_p=0x805216e70, pre_p=0x7fffffffd720, post_p=0x7fffffffd718) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:283 #17 0x00000000007e8fbe in gimplify_expr (expr_p=0x805216e70, pre_p=0x7fffffffd720, post_p=0x7fffffffd718, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5449 #18 0x00000000007e9919 in gimplify_expr (expr_p=0x80521dfe0, pre_p=0x7fffffffd840, post_p=0x7fffffffd838, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3746 #19 0x00000000007eb1b4 in gimplify_to_stmt_list (stmt_p=0x80521dfe0) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4309 #20 0x00000000007ea13d in gimplify_expr (expr_p=0x803ee97b0, pre_p=0x7fffffffd980, post_p=0x7fffffffd978, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:1091 #21 0x00000000007eabc8 in gimplify_body (body_p=0x803ee97b0, fndecl=0x803ee9700, do_parms=1 '\001') at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:6317 #22 0x00000000007eadaf in gimplify_function_tree (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:6393 #23 0x000000000048e208 in c_genericize (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-gimplify.c:106 #24 0x0000000000488c18 in cp_genericize (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:755 #25 0x00000000004287bb in finish_function (flags=0) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:11336 #26 0x000000000045824f in cp_parser_function_definition_after_declarator (parser=0x800c07c80, inline_p=0 '\0') at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:15650 #27 0x0000000000458684 in cp_parser_init_declarator ( parser=0x800c07c80, decl_specifiers=0x7fffffffdbb0, checks=0x0, function_definition_allowed_p=1 '\001', member_p=0 '\0', declares_class_or_enum=Variable "declares_class_or_enum" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:15582 #28 0x000000000044ea23 in cp_parser_simple_declaration ( parser=0x800c07c80, function_definition_allowed_p=Variable "function_definition_allowed_p" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7431 #29 0x0000000000454f1a in cp_parser_block_declaration ( parser=0x800c07c80, statement_p=0 '\0') at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7331 #30 0x0000000000458ee4 in cp_parser_declaration (parser=0x800c07c80) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7247 #31 0x0000000000459335 in cp_parser_declaration_seq_opt ( parser=0x800c07c80) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7142 #32 0x0000000000459930 in c_parse_file () at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:2845 #33 0x000000000040074b in c_common_parse_file (set_yydebug=Variable "set_yydebug" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/c-opts.c:1184 #34 0x000000000055d2e8 in toplev_main (argc=Variable "argc" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:1035 #35 0x00000000004001ae in _start (ap=Variable "ap" is not available. ) at /usr/src/lib/csu/amd64/crt1.c:92 #36 0x0000000000000000 in ?? () #37 0x0000000000000042 in ?? () #38 0x00007fffffffe1a8 in ?? () [...] #1114 0x01a1c0c748006a10 in ?? () #1115 0x66fdebf4050f0000 in ?? () #1116 0x9066669066669066 in ?? () #1117 0x00007fffffffde28 in ?? () #1118 0x0000000000000042 in ?? () #1119 0x00007fffffffe040 in ?? () #1120 0x000000000000000e in ?? () Cannot access memory at address 0x800000000000 #v- References: [1] http://news.gmane.org/find-root.php?message_id=%3c84dead720902121838p3a72f993xc1c52104c666ed0a%40mail.gmail.com%3e HTH -- Ashish SHUKLA
pgpTNMWxrdcnW.pgp
Description: PGP signature