xgcc hangs producing O2g.gch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

I am building gcc trunk on OS X using gcc 4.2.1.  Everything goes swimmingly until the command below, which spins the CPU and seems to make no progress.  I have seen it run for over an hour.  The output file reaches 28,101,392 bytes and stops.  

A build of gcc-4_8-branch exhibits the same behavior, except that the output file is .   O2ggnu++0x.gch

Suggestions?  I attached to the process with gdb to obtain a backtrace, in case that helps, see below.  It seems stuck in mpfr, but it's not clear if that's an issue with mpfr or how it's called.  Or built.  Or something.  

Relevant prerequisite versions I used are:

$ ls *{gmp,mpfr,mpc,isl,cloog}*
cloog-0.18.0.tar.gz     gmp-5.1.2.tar.lz        mpc-1.0.1.tar.gz
gmp-5.1.2.tar.bz2       isl-0.11.1.tar.bz2      mpfr-3.1.2.tar.gz

Further details on request.  Unfortunately, it's easy to replicate.  

Many thanks.  

--jkl

Last command executed by make: 

("${PROJ}" below stands for my projects directory, for bevity.) 
${PROJ}/gcc-trunk/build/./gcc/xgcc \
        -shared-libgcc \
        -B${PROJ}/gcc-trunk/build/./gcc \
        -nostdinc++ \
        -L${PROJ}/gcc-trunk/build/x86_64-apple-darwin10.8.0/libstdc++-v3/src \
        -L${PROJ}/gcc-trunk/build/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs \
        -L${PROJ}/gcc-trunk/build/x86_64-apple-darwin10.8.0/libstdc++-v3/libsupc++/.libs \
        -B/usr/local/x86_64-apple-darwin10.8.0/bin/ \
        -B/usr/local/x86_64-apple-darwin10.8.0/lib/ \
        -isystem /usr/local/x86_64-apple-darwin10.8.0/include \
        -isystem /usr/local/x86_64-apple-darwin10.8.0/sys-include \
        -x c++-header \
        -nostdinc++ \
        -O2 \
        -g \
        -isysroot /Developer/SDKs/MacOSX10.6.sdk \
        -mmacosx-version-min=10.6 \
        -I${PROJ}/gcc-trunk/build/x86_64-apple-darwin10.8.0/libstdc++-v3/include/x86_64-apple-darwin10.8.0 \
        -I${PROJ}/gcc-trunk/build/x86_64-apple-darwin10.8.0/libstdc++-v3/include \
        -I${PROJ}/gcc-trunk/libstdc++-v3/libsupc++ \
        -O2 \
        -g ${PROJ}/gcc-trunk/libstdc++-v3/include/precompiled/stdc++.h \
        -o x86_64-apple-darwin10.8.0/bits/stdc++.h.gch/O2g.gch

Backtrace: 

#0  0x00000001420c701b in __gmpn_rsh1sub_n ()
#1  0x00000001420a9bb2 in __gmpn_toom_interpolate_7pts ()
#2  0x0000000142097bf6 in __gmpn_toom44_mul ()
#3  0x000000014206e075 in __gmpn_mul_n ()
#4  0x0000000142068a6a in __gmpn_mul ()
#5  0x00000001420b5dac in __gmpn_dcpi1_div_qr_n ()
#6  0x00000001420b6f9d in __gmpn_dcpi1_div_qr ()
#7  0x0000000142082bf4 in __gmpn_tdiv_qr ()
#8  0x0000000142066367 in __gmpn_divrem ()
#9  0x000000014207544c in mpn_dc_sqrtrem ()
#10 0x0000000142074f5f in __gmpn_sqrtrem ()
#11 0x0000000141fab2bb in mpfr_sqrt ()
#12 0x0000000141fa0054 in mpfr_const_pi_internal ()
#13 0x0000000141fe46bf in mpfr_cache ()
#14 0x0000000141f9171c in mpfr_log ()
#15 0x0000000100601f5f in do_mpfr_arg1 (arg=0x1016d8858, type=0x1430270a8, 
    func=0x141f90fe0 <mpfr_log>, min=0x141464880, max=0x0, inclusive=false)
    at ../../gcc/builtins.c:13740
#16 0x0000000100627b1b in fold_builtin_logarithm (loc=1485169, fndecl=0x143078400, 
    arg=0x1016d8858, func=0x141f90fe0 <mpfr_log>) at ../../gcc/builtins.c:8298
#17 0x000000010062d541 in fold_builtin_1 (loc=1485169, fndecl=0x143078400, 
    arg0=0x1016d8858, ignore=false) at ../../gcc/builtins.c:10568
#18 0x000000010061be60 in fold_builtin_n (loc=1485169, fndecl=0x143078400, 
    args=0x10433e458, nargs=1, ignore=false) at ../../gcc/builtins.c:11114
#19 0x000000010062e840 in fold_call_expr (loc=1485169, exp=0x10433e428, ignore=false)
    at ../../gcc/builtins.c:11241
#20 0x0000000100861d86 in fold (expr=0x10433e428) at ../../gcc/fold-const.c:14570
#21 0x00000001001ff398 in cxx_eval_builtin_function_call (call=0x7fff5fbf83d0, 
    t=0x1037737a8, allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:6637
#22 0x00000001001f7901 in cxx_eval_call_expression (old_call=0x7fff5fbf83d0, 
    t=0x1037737a8, allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:6789
#23 0x00000001001f8948 in cxx_eval_constant_expression (call=0x7fff5fbf83d0, 
    t=0x1037737a8, allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:7896
#24 0x00000001001f8a3f in cxx_eval_constant_expression (call=0x7fff5fbf83d0, 
    t=0x103787f00, allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:7917
#25 0x00000001001f7d8e in cxx_eval_call_expression (old_call=0x0, t=0x10433e3f0, 
    allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:6881
#26 0x00000001001f8948 in cxx_eval_constant_expression (call=0x0, t=0x10433e3f0, 
    allow_non_constant=true, addr=false, non_constant_p=0x7fff5fbf855f, 
    overflow_p=0x7fff5fbf855e) at ../../gcc/cp/semantics.c:7896
#27 0x00000001001f997b in cxx_eval_outermost_constant_expr (t=0x10433e3f0, 
    allow_non_constant=true) at ../../gcc/cp/semantics.c:8209
#28 0x00000001001fc75c in maybe_constant_value (t=0x10433e3f0)
    at ../../gcc/cp/semantics.c:8319
#29 0x00000001000c75bf in build_non_dependent_expr (expr=0x10433e3b8)
    at ../../gcc/cp/pt.c:20822
#30 0x0000000100196eef in build_x_binary_op (loc=11502331, code=TRUNC_DIV_EXPR, 
    arg1=0x104044b80, arg1_code=ERROR_MARK, arg2=0x10433e3b8, arg2_code=ERROR_MARK, 
    overload=0x7fff5fbf8830, complain=3) at ../../gcc/cp/typeck.c:3745
#31 0x00000001001661d2 in cp_parser_binary_expression (parser=0x101762058, 
    cast_p=false, no_toplevel_fold_p=false, decltype_p=false, prec=PREC_NOT_OPERATOR, 
    pidk=0x0) at ../../gcc/cp/parser.c:7809
#32 0x00000001001662ff in cp_parser_assignment_expression (parser=0x101762058, 
    cast_p=false, decltype_p=false, pidk=0x0) at ../../gcc/cp/parser.c:7928
#33 0x00000001001677bd in cp_parser_assignment_expression (parser=0x101762058, 
    cast_p=false, pidk=0x0) at ../../gcc/cp/parser.c:7978
#34 0x0000000100167f06 in cp_parser_constant_expression (parser=0x101762058, 
    allow_non_constant_p=true, non_constant_p=0x7fff5fbf8a8e)
    at ../../gcc/cp/parser.c:8188
#35 0x000000010016865d in cp_parser_initializer_clause (parser=0x101762058, 
    non_constant_p=0x7fff5fbf8a8e) at ../../gcc/cp/parser.c:18375
#36 0x000000010016a3c6 in cp_parser_initializer (parser=0x101762058, 
    is_direct_init=0x7fff5fbf8a8f, non_constant_p=0x7fff5fbf8a8e)
    at ../../gcc/cp/parser.c:18317
#37 0x0000000100182238 in cp_parser_init_declarator (parser=0x101762058, 
    decl_specifiers=0x7fff5fbf8ad0, checks=0x0, function_definition_allowed_p=false, 
    member_p=false, declares_class_or_enum=0, function_definition_p=0x7fff5fbf8b6e, 
    maybe_range_for_decl=0x0) at ../../gcc/cp/parser.c:16462
#38 0x0000000100161247 in cp_parser_simple_declaration (parser=0x101762058, 
    function_definition_allowed_p=false, maybe_range_for_decl=0x0)
    at ../../gcc/cp/parser.c:10930
#39 0x0000000100180480 in cp_parser_block_declaration (parser=0x101762058, 
    statement_p=true) at ../../gcc/cp/parser.c:10811
#40 0x00000001001805bd in cp_parser_declaration_statement (parser=0x101762058)
    at ../../gcc/cp/parser.c:10458
#41 0x0000000100161cce in cp_parser_statement (parser=0x101762058, 
    in_statement_expr=0x0, in_compound=true, if_p=0x0) at ../../gcc/cp/parser.c:9218
#42 0x000000010016225d in cp_parser_statement_seq_opt (parser=0x101762058, 
    in_statement_expr=0x0) at ../../gcc/cp/parser.c:9496
#43 0x0000000100162492 in cp_parser_compound_statement (parser=0x101762058, 
    in_statement_expr=0x0, in_try=false, function_body=true)
    at ../../gcc/cp/parser.c:9450
#44 0x00000001001624e3 in cp_parser_function_body (parser=0x101762058, 
    in_function_try_block=false) at ../../gcc/cp/parser.c:18236
#45 0x000000010017d339 in cp_parser_ctor_initializer_opt_and_function_body (
    parser=0x101762058, in_function_try_block=false) at ../../gcc/cp/parser.c:18272
#46 0x000000010017d689 in cp_parser_function_definition_after_declarator (
    parser=0x101762058, inline_p=false) at ../../gcc/cp/parser.c:22250
#47 0x000000010017e0a5 in cp_parser_function_definition_from_specifiers_and_declarator (
    parser=0x101762058, decl_specifiers=0x7fff5fbf8f60, attributes=0x0, 
    declarator=0x1428a3758) at ../../gcc/cp/parser.c:22171
#48 0x0000000100181d25 in cp_parser_init_declarator (parser=0x101762058, 
    decl_specifiers=0x7fff5fbf8f60, checks=0x0, function_definition_allowed_p=true, 
    member_p=false, declares_class_or_enum=0, function_definition_p=0x7fff5fbf8fff, 
    maybe_range_for_decl=0x0) at ../../gcc/cp/parser.c:16289
#49 0x0000000100182709 in cp_parser_single_declaration (parser=0x101762058, checks=0x0, 
    member_p=false, explicit_specialization_p=false, friend_p=0x7fff5fbf908f)
    at ../../gcc/cp/parser.c:22561
#50 0x00000001001835a9 in cp_parser_template_declaration_after_export (
    parser=0x101762058, member_p=false) at ../../gcc/cp/parser.c:22363
#51 0x0000000100184086 in cp_parser_template_declaration (parser=0x101762058, 
    member_p=false) at ../../gcc/cp/parser.c:12573
#52 0x000000010018796b in cp_parser_declaration (parser=0x101762058)
    at ../../gcc/cp/parser.c:10664
#53 0x00000001001869bb in cp_parser_declaration_seq_opt (parser=0x101762058)
    at ../../gcc/cp/parser.c:10594
#54 0x00000001001869d7 in cp_parser_namespace_body (parser=0x101762058)
    at ../../gcc/cp/parser.c:15512
#55 0x0000000100186bd9 in cp_parser_namespace_definition (parser=0x101762058)
    at ../../gcc/cp/parser.c:15493
#56 0x0000000100187a6c in cp_parser_declaration (parser=0x101762058)
    at ../../gcc/cp/parser.c:10692
#57 0x00000001001869bb in cp_parser_declaration_seq_opt (parser=0x101762058)
    at ../../gcc/cp/parser.c:10594
#58 0x0000000100187c24 in cp_parser_translation_unit (parser=0x101762058)
    at ../../gcc/cp/parser.c:3930
#59 0x00000001001883f3 in c_parse_file () at ../../gcc/cp/parser.c:28807
#60 0x00000001002efe41 in c_common_parse_file () at ../../gcc/c-family/c-opts.c:1046
#61 0x0000000100ba278a in compile_file () at ../../gcc/toplev.c:546
#62 0x0000000100ba46a1 in do_compile () at ../../gcc/toplev.c:1878
#63 0x0000000100ba48f8 in toplev_main (argc=42, argv=0x7fff5fbf9420)
    at ../../gcc/toplev.c:1954
#64 0x0000000100f3e15f in main (argc=42, argv=0x7fff5fbf9420) at ../../gcc/main.c:36




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux