I was compiling gcc today on a brand new linux system (fedora core 7, i686-pc-linux) using the following configure line: ../gcc/configure --disable-nls --prefix=/opt/myroot --with-sysroot=/opt/myroot --without-headers --enable-languages=c --target=x86_64-pc-mingw32 I redirected stdout to /dev/null and stderr to the screen so I could see just the errors. This is what happened: In file included from ../../gcc/fixincludes/fixincl.c:102: ../../gcc/fixincludes/fixincl.x:77: warning: string length '4756' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:232: warning: string length '552' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:277: warning: string length '532' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:321: warning: string length '808' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:407: warning: string length '5139' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:2720: warning: string length '729' is greater than the length '509' ISO C89 compilers are required to support ../../gcc/fixincludes/fixincl.x:7854: warning: string length '575' is greater than the length '509' ISO C89 compilers are required to support configure: WARNING: decimal float is not supported for this target /opt/gcc/gcc/gcc/configure: line 14035: test: too many arguments Links are now set up to build a cross-compiler from i686-pc-linux-gnu to x86_64-pc-mingw32. In file included from ../../../gcc/fixincludes/fixincl.c:102: ../../../gcc/fixincludes/fixincl.x:77: warning: string length '4756' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:232: warning: string length '552' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:277: warning: string length '532' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:321: warning: string length '808' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:407: warning: string length '5139' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:2720: warning: string length '729' is greater than the length '509' ISO C89 compilers are required to support ../../../gcc/fixincludes/fixincl.x:7854: warning: string length '575' is greater than the length '509' ISO C89 compilers are required to support *** glibc detected *** /bin/sh: double free or corruption (out): 0x09f89fe8 *** ======= Backtrace: ========= /lib/libc.so.6[0xc20f41] /lib/libc.so.6(cfree+0x90)[0xc24580] /bin/sh[0x807a911] /bin/sh(delete_job+0x98)[0x807b9b8] /bin/sh[0x807be1e] /bin/sh(wait_for+0x1f4)[0x807c0c4] /bin/sh(execute_command_internal+0x260)[0x806e1d0] /bin/sh[0x8070a07] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command_internal+0x702)[0x806e672] /bin/sh[0x8070a07] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command_internal+0x702)[0x806e672] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x807076f] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x8070705] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh(execute_command_internal+0x53b)[0x806e4ab] /bin/sh[0x8070a07] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80704be] /bin/sh(execute_command_internal+0x3a5)[0x806e315] /bin/sh[0x8070a07] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh[0x80709c3] /bin/sh(execute_command_internal+0xa5b)[0x806e9cb] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh(execute_command_internal+0x585)[0x806e4f5] /bin/sh(execute_command+0x63)[0x806f923] /bin/sh(reader_loop+0x81)[0x805ef61] /bin/sh(main+0x12b0)[0x805ea70] /lib/libc.so.6(__libc_start_main+0xe0)[0xbcef70] /bin/sh[0x805c6c1] ======= Memory map: ======== 00a1b000-00a30000 r-xp 00000000 fd:00 67779 /lib/libtinfo.so.5.6 00a30000-00a33000 rwxp 00014000 fd:00 67779 /lib/libtinfo.so.5.6 00b9a000-00bb5000 r-xp 00000000 fd:00 65070 /lib/ld-2.6.so 00bb5000-00bb6000 r-xp 0001a000 fd:00 65070 /lib/ld-2.6.so 00bb6000-00bb7000 rwxp 0001b000 fd:00 65070 /lib/ld-2.6.so 00bb9000-00d07000 r-xp 00000000 fd:00 65117 /lib/libc-2.6.so 00d07000-00d09000 r-xp 0014e000 fd:00 65117 /lib/libc-2.6.so 00d09000-00d0a000 rwxp 00150000 fd:00 65117 /lib/libc-2.6.so 00d0a000-00d0d000 rwxp 00d0a000 00:00 0 00d0f000-00d12000 r-xp 00000000 fd:00 65119 /lib/libdl-2.6.so 00d12000-00d13000 r-xp 00002000 fd:00 65119 /lib/libdl-2.6.so 00d13000-00d14000 rwxp 00003000 fd:00 65119 /lib/libdl-2.6.so 04b35000-04b40000 r-xp 00000000 fd:00 65148 /lib/libgcc_s-4.1.2-20070503.so.1 04b40000-04b41000 rwxp 0000a000 fd:00 65148 /lib/libgcc_s-4.1.2-20070503.so.1 08047000-080f5000 r-xp 00000000 fd:00 1818913 /bin/bash 080f5000-080fa000 rwxp 000ad000 fd:00 1818913 /bin/bash 080fa000-080ff000 rwxp 080fa000 00:00 0 09f75000-09f96000 rwxp 09f75000 00:00 0 40000000-40001000 r-xp 40000000 00:00 0 [vdso] 40001000-40008000 r-xs 00000000 fd:00 360551 /usr/lib/gconv/gconv-modules.cache 40008000-40009000 rwxp 40008000 00:00 0 40012000-40014000 rwxp 40012000 00:00 0 40014000-40214000 r-xp 00000000 fd:00 360288 /usr/lib/locale/locale-archive 40225000-4022f000 r-xp 00000000 fd:00 65001 /lib/libnss_files-2.6.so 4022f000-40230000 r-xp 00009000 fd:00 65001 /lib/libnss_files-2.6.so 40230000-40231000 rwxp 0000a000 fd:00 65001 /lib/libnss_files-2.6.so 40300000-40321000 rw-p 40300000 00:00 0 40321000-40400000 ---p 40321000 00:00 0 bfbcf000-bfbe6000 rw-p bfbcf000 00:00 0 [stack] /bin/sh: line 17: 16297 Aborted /bin/sh ${libsrcdir}/configure --cache-file=./config.cache '--disable-nls' '--prefix=/opt/myroot' '--with-sysroot=/opt/myroot' '--without-headers' '--enable-languages=c' --program-transform-name='s,^,x86_64-pc-mingw32-,' --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=x86_64-pc-mingw32 ${srcdiroption} make[1]: *** [configure-libdecnumber] Error 1 make: *** [all] Error 2 Has anyone seen sh crash during a build before?