This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/70668] nds32-elf toolchain fails to compile on OSX"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70668

Stefan Reinauer <stefan.reinauer at coreboot dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |nds32le-elf
               Host|                            |Darwin 15.4.0

--- Comment #2 from Stefan Reinauer <stefan.reinauer at coreboot dot org> ---
The environment is Mac OS X El Capitan (Darwin 15.4.0)

cross compiler build for nds32le-elf fails when building libgcc.

So far, I tracked the issue down to cc1 crashing when compiling divfs3.c (or
even the attached minimized example of it)

------------- 8< -------------------------- 8< -------------------
./build-nds32le-elf-GCC/gcc/cc1 divsf3.c
 __divsf3
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<free-inline-summary> <emutls> <whole-program> <inline>Assembling functions:
 __divsf3Abort trap: 6
------------- 8< -------------------------- 8< -------------------


Debugger output:
------------- 8< -------------------------- 8< -------------------
lldb ./build-nds32le-elf-GCC/gcc/cc1 
(lldb) target create "./build-nds32le-elf-GCC/gcc/cc1"
Current executable set to './build-nds32le-elf-GCC/gcc/cc1' (x86_64).
(lldb) run divsf3.c
Process 45989 launched: './build-nds32le-elf-GCC/gcc/cc1' (x86_64)
 __divsf3
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<free-inline-summary> <emutls> <whole-program> <inline>Assembling functions:
 __divsf3Process 45989 stopped
* thread #1: tid = 0x5c6719, 0x00007fff9ee20f06
libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread',
stop reason = signal SIGABRT
    frame #0: 0x00007fff9ee20f06 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
->  0x7fff9ee20f06 <+10>: jae    0x7fff9ee20f10            ; <+20>
    0x7fff9ee20f08 <+12>: movq   %rax, %rdi
    0x7fff9ee20f0b <+15>: jmp    0x7fff9ee1b7cd            ; cerror_nocancel
    0x7fff9ee20f10 <+20>: retq   
(lldb) bt
* thread #1: tid = 0x5c6719, 0x00007fff9ee20f06
libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread',
stop reason = signal SIGABRT
  * frame #0: 0x00007fff9ee20f06 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff9bf0f4ec libsystem_pthread.dylib`pthread_kill + 90
    frame #2: 0x00007fff98512787 libsystem_c.dylib`__abort + 145
    frame #3: 0x00007fff98513066 libsystem_c.dylib`__stack_chk_fail + 200
    frame #4: 0x00000001001198d8 cc1`gen_casesi(rtx_def*, rtx_def*, rtx_def*,
rtx_def*, rtx_def*) + 392
    frame #5: 0x00000001006a69bc cc1`insn_gen_fn::operator()(rtx_def*,
rtx_def*, rtx_def*, rtx_def*, rtx_def*) const + 76
    frame #6: 0x0000000100697b09 cc1`maybe_gen_insn(insn_code, unsigned int,
expand_operand*) + 473
    frame #7: 0x00000001006a4001 cc1`maybe_expand_jump_insn(insn_code, unsigned
int, expand_operand*) + 33
    frame #8: 0x0000000100699481 cc1`expand_jump_insn(insn_code, unsigned int,
expand_operand*) + 33
    frame #9: 0x0000000100353f20 cc1`try_casesi(tree_node*, tree_node*,
tree_node*, tree_node*, rtx_def*, rtx_def*, rtx_def*, int) + 864
    frame #10: 0x00000001007c0ee9 cc1`emit_case_dispatch_table(tree_node*,
tree_node*, case_node*, rtx_def*, tree_node*, tree_node*, tree_node*,
basic_block_def*) + 313
    frame #11: 0x00000001007c07aa cc1`expand_case(gswitch*) + 1290
    frame #12: 0x00000001001c04b2
cc1`expand_gimple_stmt_1(gimple_statement_base*) + 386
    frame #13: 0x00000001001beba3
cc1`expand_gimple_stmt(gimple_statement_base*) + 131
    frame #14: 0x00000001001b989b
cc1`expand_gimple_basic_block(basic_block_def*, bool) + 3803
    frame #15: 0x00000001001b6bef cc1`(anonymous
namespace)::pass_expand::execute(function*) + 3199
    frame #16: 0x00000001006c67b1 cc1`execute_one_pass(opt_pass*) + 721
    frame #17: 0x00000001006c709e cc1`execute_pass_list_1(opt_pass*) + 78
    frame #18: 0x00000001006b9732 cc1`execute_pass_list(function*, opt_pass*) +
34
    frame #19: 0x00000001002008dd cc1`cgraph_node::expand() + 365
    frame #20: 0x0000000100203f45 cc1`output_in_order(bool) + 917
    frame #21: 0x00000001002035d2 cc1`symbol_table::compile() + 642
    frame #22: 0x0000000100204363 cc1`symbol_table::finalize_compilation_unit()
+ 179
    frame #23: 0x000000010001c67a cc1`c_write_global_declarations() + 474
    frame #24: 0x00000001007d9c47 cc1`compile_file() + 167
    frame #25: 0x00000001007d8438 cc1`do_compile() + 328
    frame #26: 0x00000001007d7e83 cc1`toplev::main(int, char**) + 371
    frame #27: 0x0000000100b3dbeb cc1`main + 59
    frame #28: 0x00007fff90a6b5ad libdyld.dylib`start + 1
    frame #29: 0x00007fff90a6b5ad libdyld.dylib`start + 1
(lldb)
------------- 8< -------------------------- 8< -------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]