X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Grant Edwards Subject: gcc 3.4.4 crashing with segfault Date: Mon, 5 Jan 2009 20:04:44 +0000 (UTC) Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com While trying to build a gcc 3.2.1 cross-compiler on a current Cygwin install, I get a repeatable segfault/internal-error from gcc 3.4.4 [see below]. Building the exact same thing (identical sources and configure options) on Linux with gcc 3.4.6 works fine. It also built fine on older versions of Cygwin. Unfortunately, I've updated all my Cygwin installs, so I don't know how far back you have to go to get it to work. Any ideas? It's actually the 3.2.1 cross-compiler that's crashing, right? [...] /bin/sh ../libtool --tag CXX --mode=compile /home/grante/toolchain/build-gcc/gcc/xgcc -shared-libgcc -B/home/grante/toolchain/build-gcc/gcc/ -nostdinc++ -L/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/src -L/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/src/.libs -nostdinc -B/home/grante/toolchain/build-gcc/arm-elf/newlib/ -isystem /home/grante/toolchain/build-gcc/arm-elf/newlib/targ-include -isystem /home/grante/toolchain/src/gcc-3.2.1/newlib/libc/include -B/home/grante/toolchain/gnutools/arm-elf/bin/ -B/home/grante/toolchain/gnutools/arm-elf/lib/ -isystem /home/grante/toolchain/gnutools/arm-elf/include -nostdinc++ -I/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include/arm-elf -I/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include -I/home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/libsupc++ -I/home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c /home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/src/locale-inst.cc /home/grante/toolchain/build-gcc/gcc/xgcc -shared-libgcc -B/home/grante/toolchain/build-gcc/gcc/ -nostdinc++ -L/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/src -L/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/src/.libs -nostdinc -B/home/grante/toolchain/build-gcc/arm-elf/newlib/ -isystem /home/grante/toolchain/build-gcc/arm-elf/newlib/targ-include -isystem /home/grante/toolchain/src/gcc-3.2.1/newlib/libc/include -B/home/grante/toolchain/gnutools/arm-elf/bin/ -B/home/grante/toolchain/gnutools/arm-elf/lib/ -isystem /home/grante/toolchain/gnutools/arm-elf/include -nostdinc++ -I/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include/arm-elf -I/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include -I/home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/libsupc++ -I/home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c /home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/src/locale-inst.cc -o locale-inst.o /home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include/bits/locale_facets.tcc: In member function `_OutIter std::money_put<_CharT, _OutIter>::do_put(_OutIter, bool, std::ios_base&, _CharT, const std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) const [with _CharT = char, _OutIter = std::ostreambuf_iterator >]': /home/grante/toolchain/src/gcc-3.2.1/libstdc++-v3/src/locale-inst.cc:48: instantiated from here /home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/include/bits/locale_facets.tcc:1361: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[3]: *** [locale-inst.lo] Error 1 make[3]: Leaving directory `/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/home/grante/toolchain/build-gcc/arm-elf/libstdc++-v3' make: *** [all-target-libstdc++-v3] Error 2 make: Leaving directory `/home/grante/toolchain/build-gcc' -- Grant Edwards grante Yow! Now we can become at alcoholics! visi.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/