https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63686
Bug ID: 63686 Summary: compile tcl packet encounter gcc: internal compiler error: Segmentation fault (program cc1) Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gaojian2014 at fiberhome dot com.cn recently I tried to make filesystem on my mips64 board(broadcom netlogic xlp208) by CLFS. When I made the gcc on mips64 and compile tcl packet on the board, I encounter an error. my gcc version is as below: root:/boot# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/tools/libexec/gcc/mips64-unknown-linux-gnu/4.8.3/lto-wrapper Target: mips64-unknown-linux-gnu Configured with: ../gcc-4.8.3/configure --prefix=/tools --libdir=/tools/lib64 --build=x86_64-cross-linux-gnu --host=mips64-unknown-linux-gnu --target=mips64-unknown-linux-gnu --with-local-prefix=/tools --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch --with-abi=64 --with-system-zlib --enable-checking=release --enable-libstdcxx-time --with-native-system-header-dir=/tools/include Thread model: posix gcc version 4.8.3 (GCC) the error is as below: CPU 0 Unable to handle kernel paging request at virtual address c000000013fe0000, epc == ffffffffc020dcd8, ra == ffffffffc0332118 Oops[#1]: CPU: 0 PID: 14550 Comm: cc1 Not tainted 3.10.19-WR6.0.0.5_standard+ #1 task: c00000011be34fb0 ti: c000000113640000 task.ti: c000000113640000 $ 0 : 0000000000000000 ffffffffc03320c8 c000000000000000 0000000013fe0000 $ 4 : c000000013fe0000 0000000000000000 c000000013feff80 0000000000000001 $ 8 : ffffffffc0f10000 c000000040980000 ffffffffc0b69668 0000000000000000 $12 : c00000011364fb50 0000000000000001 000000000000000b 0000000000000003 $16 : 000000ffe2070002 c00000011bd8f200 c00000fff1f90000 c000000001195f90 $20 : ffffffffc0af8320 c000000013fe0000 c000000112b0fd00 c0000001138a3ff8 $24 : ffffffffc08c53f0 ffffffffc08c0000 $28 : c000000113640000 c00000011364fb58 c00000011364fb58 ffffffffc0332118 Hi : 0000000000003bfa Lo : 00000000000013fe epc : ffffffffc020dcd8 clear_page+0x18/0x128 Not tainted ra : ffffffffc0332118 handle_pte_fault+0xab0/0xef0 Status: 7400f8e3 KX SX UX KERNEL EXL IE Cause : 0080000c BadVA : c000000013fe0000 PrId : 000c1202 (Broadcom XLPII) Modules linked in: Process cc1 (pid: 14550, threadinfo=c000000113640000, task=c00000011be34fb0, tls=000000fff2b03a10) Stack : 0000000000000029 c00000011be34fb0 ffffffffc0f10000 ffffffffc08a3c3c c00000011364fb88 c00000011364fb88 000000ffe2070002 000000ffe2070002 000000ffe2070002 0000000000000029 c00000011be34fb0 c00000011bd8f200 0000000000000001 c00000011364fe58 c00000011bd8f270 c000000112b0fd00 c00000011364fbe8 ffffffffc08a5b78 0000000000000000 0000000000000000 c00000011364fc08 c00000011364fc08 c00000011be34fb0 0000000000000001 0000000000000000 c00000011364fc20 c00000011364fc20 ffffffffc0287998 000000d2268e7d19 c00000011be34fb0 c000000001570ac0 c00000011364fc58 c00000011364fe58 c000000001570ac0 c000000001570ac0 c0000000015708d0 c00000011364fc88 c00000011364fc88 c000000001570220 0000000000000000 ... Call Trace: [<ffffffffc020dcd8>] clear_page+0x18/0x128 [<ffffffffc0332118>] handle_pte_fault+0xab0/0xef0 [<ffffffffc08a5b78>] do_page_fault+0x160/0x530 [<ffffffffc01f3a64>] resume_userspace_check+0x0/0x10 Code: cc9e0040 cc9e0060 cc9e0080 <fc800000> fc800008 fc800010 fc800018 64840040 cc9e0060 ---[ end trace 248ee2b369c3a6b1 ]--- note: cc1[14550] exited with preempt_count 1 {standard input}: Assembler messages: {standard input}:89595: Warning: end of file not at end of a line; newline inserted {standard input}:89783: Error: missing ')' {standard input}:89783: Error: invalid operands `ld $25,%call16(memcpy)($' {standard input}: Warning: missing .end at end of assembly gcc: internal compiler error: Segmentation fault (program cc1) 0x12001354b execute ../../gcc-4.8.3/gcc/gcc.c:2823 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make[1]: *** [tclsqlite3.o] Error 4 make: *** [packages] Error 2 it looks like something wrong when assemble the code. Someone who can tell me how to fix this ?