From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18918 invoked by alias); 13 Apr 2014 10:28:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18335 invoked by uid 48); 13 Apr 2014 10:27:57 -0000 From: "gcc@Denis-Excoffier.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/60830] New: ICE on bootstrapping on cygwin Date: Sun, 13 Apr 2014 10:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc@Denis-Excoffier.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00924.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60830 Bug ID: 60830 Summary: ICE on bootstrapping on cygwin Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: gcc@Denis-Excoffier.org Installed gcc-4.9.0-RC-20140411 on darwin (Mavericks) with no problem. But: On Cygwin 1.7.29-2 (+ latests patches), platform=i686-pc-cygwin (Windows XP SP3, 32 bits), bootstrap stops with: xgcc: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. configure: error: in `/tmp/lcl/tmp/gcc/obj/i686-pc-cygwin/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage2-target-libgcc] Error 1 make[1]: *** [stage2-bubble] Error 2 make: *** [all] Error 2 Indeed, inside /tmp/lcl/tmp/obj/gcc: % echo "int main() { return 0; }" > foo.c % cc1 -quiet -o foo.c foo.c foo.c:1:1: internal compiler error: Aborted int main() { return 0; } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. % The foo.o seems ok. After some investigation, it seems that cc1 receives an unexpected SIGABRT signal, after the end of main(), and strace confirms the kill: % strace -o /tmp/1 cc1 -quiet -o foo.o foo.c (same messages as above) % cat /tmp/1 ... 344 4823227 [main] cc1 3768 close: 0 = close(3) 2019 4825246 [main] cc1 3768 set_signal_mask: setmask 0, newmask FFFEFEDK, mask_bits 0 23 4825269 [main] cc1 3768 kill0: kill (3768, 6) 22 4825291 [main] cc1 3768 sig_send: sendsig 0x784, pid 3768, signal 6, its_me 1 ... % On the other hand, if foo.c is erroneous, all seems ok: % echo "it main() { return 0; }" > foo.c foo.c:1:1: error: unknown type name 'it' it main() { return 0; } ^ foo.c:1: confused by earlier errors, bailing out % I don't know what to do next.