From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 10:53:18 2010 Received: (at submit) by debbugs.gnu.org; 26 Apr 2010 14:53:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PgT-00006l-Ew for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:53:18 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PNr-0008Oc-4L for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:34:04 -0400 Received: from lists.gnu.org ([199.232.76.165]:59019) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O6PNl-0008QZ-Sl for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:33:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6PNk-0000RP-SO for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:56 -0400 Received: from [140.186.70.92] (port=36424 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6PNi-0000Pb-8C for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6PNf-0002iO-LF for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:54 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:50688) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PNf-0002iC-BZ for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:51 -0400 Received: by wyf19 with SMTP id 19so2028539wyf.0 for ; Mon, 26 Apr 2010 07:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=n4nGDnuH8ZfrsaIZ11iTIMzLKdJp0b6qiM6WhbuDJDw=; b=a61+tLX4kVuDkyoDg6Q1eUqDffiq676EIGSAz4lyM7YdRKBw89D+4DOlKvthhz+HR2 KG0Foxf43KdLTw3vDyZF9jo4EZA3kZOqrhU7QvkUx4QN5KYayLsno4Bsj2hk7q2t0Mpo In8RF+lDnfS31N/yXkV8p1s7+/gQcKNTVVU8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=CKRtmmbFwqurwTUtwhZr+9IVfPjsTkuh861hNojrHXaATIz0t4jh5QsxfYKSltWmj0 5cRVPHBGsjMBh20XivQOJnS374B4cutWYJqlOrS69kGI94Jm1lB9Vkc1NfJsQjuIggMk nxtrKfVwEjEJDrIfXnF65r+P7YzUI2SNuOF9Y= Received: by 10.216.88.148 with SMTP id a20mr101549wef.124.1272292429588; Mon, 26 Apr 2010 07:33:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.51.68 with HTTP; Mon, 26 Apr 2010 07:33:29 -0700 (PDT) From: Vladimir Lomov Date: Mon, 26 Apr 2010 23:33:29 +0900 Message-ID: Subject: Building Emacs BZR with GCC 4.5.0 To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 26 Apr 2010 10:53:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) Hi. (Some response to #6031, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031) I'm trying to compile Emacs from BZR using gcc 4.5.0 $ bzr revno 100035 Compilation went ok but when I try to run Emacs it segfault'ed. Here what I see running compiled Emacs in gdb: ========================================================================================= $ gdb ./emacs GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/USER/tmp/src/emacs-bzr/src/emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x4e7510: file emacs.c, line 430. Temporary breakpoint 2 at 0x504090: file sysdep.c, line 1118. (gdb) run -Q -D Starting program: /home/USER/tmp/src/emacs-bzr/src/emacs -Q -D [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:20842 20842 s->font = s->face->font; (gdb) bt #0 fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:20842 #1 0x0000000000445d44 in draw_glyphs (w=0xfb98e0, x=10, row=, area=TEXT_AREA, start=0, end=1, hl=DRAW_CURSOR, overlaps=0) at xdisp.c:21384 #2 0x000000000044b330 in draw_phys_cursor_glyph (w=0xfb98e0, row=0x128f550, hl=DRAW_CURSOR) at xdisp.c:23566 #3 0x00000000004a51a0 in x_draw_window_cursor (w=0xfb98e0, glyph_row=0x128f550, x=0, y=60, cursor_type=, cursor_width=, on_p=1, active_p=1) at xterm.c:7514 #4 0x000000000044ba63 in display_and_set_cursor (w=0xfb98e0, on=1, hpos=, vpos=, x=0, y=60) at xdisp.c:23790 #5 0x00000000004a6d04 in x_update_window_end (w=0xfb98e0, cursor_on_p=, mouse_face_overwritten_p=0) at xterm.c:650 #6 0x0000000000416992 in update_window (w=, force_p=) at dispnew.c:3984 #7 0x0000000000417d43 in update_window_tree (w=0xfb98e0, force_p=0) at dispnew.c:3613 #8 0x000000000041b573 in update_frame (f=0xfb8c80, force_p=0, inhibit_hairy_id_p=0) at dispnew.c:3540 #9 0x000000000043f51c in redisplay_internal (preserve_echo_area=) at xdisp.c:12243 #10 0x00000000004f5382 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd430, prev_event=12421458, used_mouse_menu=0x7fffffffd53c, end_time=0x0) at keyboard.c:2576 #11 0x00000000004f790c in read_key_sequence (keybuf=, prompt=12421458, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at keyboard.c:9402 #12 0x00000000004f9759 in command_loop_1 () at keyboard.c:1636 #13 0x000000000055d00f in internal_condition_case (bfun=0x4f9590 , handlers=12473314, hfun=0x4ecc70 ) at eval.c:1512 #14 0x00000000004ec2fe in command_loop_2 () at keyboard.c:1356 #15 0x000000000055ceea in internal_catch (tag=12469394, func=0x4ec2e0 , arg=12421458) at eval.c:1248 #16 0x00000000004ece71 in command_loop () at keyboard.c:1335 #17 0x00000000004ecf0a in recursive_edit_1 () at keyboard.c:950 #18 0x00000000004ed047 in Frecursive_edit () at keyboard.c:1012 #19 0x00000000004e8da7 in main (argc=, argv=) at emacs.c:1784 (gdb) quit ========================================================================================= The same happens with emacs-23.1.96 (taken from ftp://alpha.gnu.org/gnu/emacs/pretest/): ========================================================================================= $ gdb ./emacs GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/USER/tmp/emacs-23.1.96/src/emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x4e1480: file emacs.c, line 430. Temporary breakpoint 2 at 0x4fe790: file sysdep.c, line 1129. (gdb) run -Q -D Starting program: /home/USER/tmp/emacs-23.1.96/src/emacs -Q -D [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:19755 19755 s->font = s->face->font; (gdb) bt #0 fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:19755 #1 0x0000000000443f84 in draw_glyphs (w=0x1165820, x=10, row=, area=TEXT_AREA, start=0, end=1, hl=DRAW_CURSOR, overlaps=0) at xdisp.c:20297 #2 0x000000000044952c in draw_phys_cursor_glyph (w=0x1165820, row=0x11fd1b0, hl=DRAW_CURSOR) at xdisp.c:22406 #3 0x000000000049ff10 in x_draw_window_cursor (w=0x1165820, glyph_row=0x11fd1b0, x=0, y=60, cursor_type=, cursor_width=, on_p=1, active_p=1) at xterm.c:7510 #4 0x0000000000449c6b in display_and_set_cursor (w=0x1165820, on=1, hpos=, vpos=, x=0, y=60) at xdisp.c:22628 #5 0x00000000004a1a54 in x_update_window_end (w=0x1165820, cursor_on_p=, mouse_face_overwritten_p=0) at xterm.c:652 #6 0x000000000041680d in update_window (w=, force_p=) at dispnew.c:4375 #7 0x0000000000417bb3 in update_window_tree (w=0x1165820, force_p=0) at dispnew.c:4004 #8 0x000000000041c068 in update_frame (f=0x11655d0, force_p=0, inhibit_hairy_id_p=0) at dispnew.c:3931 #9 0x000000000043d8dc in redisplay_internal (preserve_echo_area=) at xdisp.c:11826 #10 0x00000000004ef892 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd450, prev_event=11659666, used_mouse_menu=0x7fffffffd55c, end_time=0x0) at keyboard.c:2727 #11 0x00000000004f1e1c in read_key_sequence (keybuf=, prompt=11659666, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at keyboard.c:9512 #12 0x00000000004f3c71 in command_loop_1 () at keyboard.c:1643 #13 0x000000000055717f in internal_condition_case (bfun=0x4f3aa0 , handlers=11726930, hfun=0x4e7450 ) at eval.c:1490 #14 0x00000000004e629e in command_loop_2 () at keyboard.c:1360 #15 0x000000000055705a in internal_catch (tag=11719746, func=0x4e6280 , arg=11659666) at eval.c:1226 #16 0x00000000004e7651 in command_loop () at keyboard.c:1339 #17 0x00000000004e76ea in recursive_edit_1 () at keyboard.c:954 #18 0x00000000004e7827 in Frecursive_edit () at keyboard.c:1016 #19 0x00000000004e2d27 in main (argc=, argv=) at emacs.c:1833 (gdb) quit ========================================================================================= In both cases configure script was run with options: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=$HOME/tmp/emacs --libexecdir=/usr/lib --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-x-toolkit=gtk --with-xft --with-libotf --with-dbus --without-sound --enable-maintainer-mode OS: Archlinux x86_64 GCC: 4.5.0 I also tried to compile Emacs (BZR) with gcc 4.4.3 ( the same distro but a bit outdated). After compilation I managed to run Emacs (terminal session). Seems that with gcc 4.4 (http://bugs.gentoo.org/show_bug.cgi?id=317187) Emacs could be compiled and run without errors. --- WBR, Vladimir Lomov From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 11:03:28 2010 Received: (at 6039) by debbugs.gnu.org; 26 Apr 2010 15:03:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PqK-0000CC-CX for submit@debbugs.gnu.org; Mon, 26 Apr 2010 11:03:28 -0400 Received: from pantheon-po38.its.yale.edu ([130.132.50.97]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PqG-0000C6-54 for 6039@debbugs.gnu.org; Mon, 26 Apr 2010 11:03:26 -0400 Received: from furry (dhcp128036014104.central.yale.edu [128.36.14.104]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3QF3JkW028336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Apr 2010 11:03:19 -0400 Received: by furry (Postfix, from userid 1000) id 8B536C055; Mon, 26 Apr 2010 11:03:19 -0400 (EDT) From: Chong Yidong To: Vladimir Lomov Subject: Re: bug#6039: Building Emacs BZR with GCC 4.5.0 References: Date: Mon, 26 Apr 2010 11:03:19 -0400 In-Reply-To: (Vladimir Lomov's message of "Mon, 26 Apr 2010 23:33:29 +0900") Message-ID: <877hnu45oo.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6039 Cc: 6039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Vladimir Lomov writes: > Hi. > > (Some response to #6031, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031) > > I'm trying to compile Emacs from BZR using gcc 4.5.0 > $ bzr revno > 100035 > > Compilation went ok but when I try to run Emacs it segfault'ed. Could you see if the problem also exists on the emacs-23 branch? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 26 23:02:48 2010 Received: (at 6039) by debbugs.gnu.org; 27 Apr 2010 03:02:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6b4S-0006NP-0k for submit@debbugs.gnu.org; Mon, 26 Apr 2010 23:02:48 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6b3X-0006MV-Ms for 6039@debbugs.gnu.org; Mon, 26 Apr 2010 23:01:52 -0400 Received: by fg-out-1718.google.com with SMTP id e21so763618fga.15 for <6039@debbugs.gnu.org>; Mon, 26 Apr 2010 20:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=SwpXjwxxmeu1U8Dw/FR6/97CFMgEIDP/izrWEcZsEFw=; b=C87JKJ3+Nd4UgTQ62FMrPj4Srxp41ViB3GyhkLPG8gHFGN078HhjQ8+q0ube1vtUZz ZEsra4apfq5JyXVtp1JNu2Bp2Sp/bQIZjH38Lbf6tJTggzt2YMTfS5G2WZ6mGZq7VKSF CL8zsiSi0o7LFKK/qO4iXd6Id5ZX30baijUbY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=YG1IllK2C4nHqHBxtrxxhxf02lKYpZAidYOw+5437u8IJGqrBrGT+O1mgKi2NLdZfP Vgl+FDhAaCVH/ewQoc14tnNJ5zQY15mK/nCEQsVGrB9ZYIAnJe6Ye2woCvJ0IIOxCQ8S gySIl9mnLqut6UTOCjdzjIJq5BcpSqaAuU24M= Received: by 10.87.63.1 with SMTP id q1mr3390063fgk.38.1272337306580; Mon, 26 Apr 2010 20:01:46 -0700 (PDT) Received: from smoon2 ([84.237.20.66]) by mx.google.com with ESMTPS id p9sm7937879fkb.33.2010.04.26.20.01.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 20:01:45 -0700 (PDT) Date: Tue, 27 Apr 2010 12:01:53 +0900 From: Vladimir Lomov To: Chong Yidong Subject: Re: bug#6039: Building Emacs BZR with GCC 4.5.0 Message-ID: <20100427030153.GB4272@smoon2> References: <877hnu45oo.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877hnu45oo.fsf@stupidchicken.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6039 X-Mailman-Approved-At: Mon, 26 Apr 2010 23:02:47 -0400 Cc: 6039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) ** Chong Yidong [2010-04-26 11:03:19 -0400]: > Vladimir Lomov writes: >> Hi. >> (Some response to #6031, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031) >> I'm trying to compile Emacs from BZR using gcc 4.5.0 >> $ bzr revno >> 100035 >> Compilation went ok but when I try to run Emacs it segfault'ed. > Could you see if the problem also exists on the emacs-23 branch? > Thanks. Sorry, I can't. I took sources from gnu.org: emacs-23.1.tar.gz emacs-22.3.tar.gz and configured them with the same options as for emacs BZR. But make fails: ================== emacs-23.1 ====================== cd lib-src; make all \ CC='gcc' CFLAGS='-g -O2 -Wno-pointer-sign ' CPPFLAGS='-D_BSD_SOURCE ' \ LDFLAGS='-Wl,-znocombreloc ' MAKE='make' make[1]: Entering directory `/home/USER/tmp/emacs-23.1/lib-src' Makefile:144: *** commands commence before first target. Stop. make[1]: Leaving directory `/home/USER/tmp/emacs-23.1/lib-src' make: *** [lib-src] Error 2 ==================================================== ================== emacs-22.3 ====================== cd lib-src; make all \ CC='gcc' CFLAGS='-g -O2 -Wno-pointer-sign ' CPPFLAGS='-D_BSD_SOURCE ' \ LDFLAGS='-Wl,-znocombreloc ' MAKE='make' make[1]: Entering directory `/home/USER/tmp/emacs-22.3/lib-src' Makefile:148: *** commands commence before first target. Stop. make[1]: Leaving directory `/home/USER/tmp/emacs-22.3/lib-src' make: *** [lib-src] Error 2 ==================================================== Lines 143-144 in lib-src/Makefile: ================== emacs-23.1 ====================== ALL_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} ==================================================== Lines 147-148 in lib-src/Makefile: ================== emacs-22.3 ====================== ALL_CFLAGS = -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} ==================================================== I use $ autoconf --version autoconf (GNU Autoconf) 2.65 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later , This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. $ automake --version automake (GNU automake) 1.11.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey and Alexandre Duret-Lutz . As I already mentioned I could compile emacs with gcc 4.4.3 (my another machine with the same distro). P.S. My previous successful compilation of Emacs BZR was on Sat 2010-04-24, (bzr revno 100014). After that I updated my system and any further compilation (I tried 100014, 100013, EMACS_23_1_BASE) Emacs was successful but all them are segfault'ed (this happened on my home machine). Compilation with ''without-x' option passed to configure didn't help. -- Try to get all of your posthumous medals in advance. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 00:38:38 2010 Received: (at 6039) by debbugs.gnu.org; 27 Apr 2010 04:38:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6cZB-00073M-QW for submit@debbugs.gnu.org; Tue, 27 Apr 2010 00:38:37 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6cZ9-00073H-21 for 6039@debbugs.gnu.org; Tue, 27 Apr 2010 00:38:35 -0400 Received: by fg-out-1718.google.com with SMTP id e21so802652fga.15 for <6039@debbugs.gnu.org>; Mon, 26 Apr 2010 21:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=JvFvw8S2rgROn/3cE+/75veJAk+iT22B/wX9xJZ8eUk=; b=nCOPxoZu3WuFjw59Q/FF/lsyQyo8cXRob9epRQDQ8C62chxusTL90r0vtu2ZBaZsnU NpryiWJnuvavZxz8vWsAA9NlqckbAOcyho12yN7D260C0NkkYb9QaITMmfzhK6CQA5qy gg9CxkIgGwn64FVmBeJMcVoodk73Q0eSdJiZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=LXu8u31yTN44P+FjudOZ58IRnsqx1xZSOoem0j/oFoQbqkwx1JOGfe4QK57ORShP/K MTZZELXS/H7J3u9fiSXPx5SWoBWA9rqWWmLkDlf0o7VDz3CSjeFS7kFmBbfzb2riAEqv s10qOM/3YGz6PVAQmtSrjmtvaNNzDHWM5QJdQ= Received: by 10.87.48.34 with SMTP id a34mr673409fgk.2.1272343110883; Mon, 26 Apr 2010 21:38:30 -0700 (PDT) Received: from smoon2 ([84.237.20.66]) by mx.google.com with ESMTPS id 21sm4301760fks.53.2010.04.26.21.38.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 21:38:30 -0700 (PDT) Date: Tue, 27 Apr 2010 13:38:38 +0900 From: Vladimir Lomov To: Chong Yidong Subject: Re: bug#6039: Building Emacs BZR with GCC 4.5.0 Message-ID: <20100427043838.GC4272@smoon2> References: <877hnu45oo.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877hnu45oo.fsf@stupidchicken.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6039 Cc: 6039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) ** Chong Yidong [2010-04-26 11:03:19 -0400]: > Vladimir Lomov writes: >> Hi. >> (Some response to #6031, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031) >> I'm trying to compile Emacs from BZR using gcc 4.5.0 >> $ bzr revno >> 100035 >> Compilation went ok but when I try to run Emacs it segfault'ed. > Could you see if the problem also exists on the emacs-23 branch? > Thanks. Seems that if I pass option '-fno-optimize-sibling-calls' to configure (CFLAGS="-O2 -fno-optimize-sibling-calls") then compiled emacs works (I run it under gdb with options '-Q -D' and without any options without segfault) but I don't know how this option affects the emacs. -- Interchangeable parts won't. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 11:37:06 2010 Received: (at control) by debbugs.gnu.org; 27 Apr 2010 15:37:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mqQ-000866-Bd for submit@debbugs.gnu.org; Tue, 27 Apr 2010 11:37:06 -0400 Received: from pantheon-po30.its.yale.edu ([130.132.50.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mqO-00085k-3P for control@debbugs.gnu.org; Tue, 27 Apr 2010 11:37:04 -0400 Received: from furry (dhcp128036014104.central.yale.edu [128.36.14.104]) (authenticated bits=0) by pantheon-po30.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3RFau1e029143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Apr 2010 11:36:58 -0400 Received: by furry (Postfix, from userid 1000) id 64438C055; Tue, 27 Apr 2010 11:36:55 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 6031 6039 Date: Tue, 27 Apr 2010 11:36:55 -0400 Message-ID: <87wrvsoqjs.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) merge 6031 6039 thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 11:38:24 2010 Received: (at 6039) by debbugs.gnu.org; 27 Apr 2010 15:38:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mrg-000875-OB for submit@debbugs.gnu.org; Tue, 27 Apr 2010 11:38:24 -0400 Received: from pantheon-po38.its.yale.edu ([130.132.50.97]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6mre-00086z-SZ for 6039@debbugs.gnu.org; Tue, 27 Apr 2010 11:38:23 -0400 Received: from furry (dhcp128036014104.central.yale.edu [128.36.14.104]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o3RFcIla001637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Apr 2010 11:38:18 -0400 Received: by furry (Postfix, from userid 1000) id 4CCA8C055; Tue, 27 Apr 2010 11:38:18 -0400 (EDT) From: Chong Yidong To: Vladimir Lomov Subject: Re: bug#6039: Building Emacs BZR with GCC 4.5.0 References: <877hnu45oo.fsf@stupidchicken.com> <20100427043838.GC4272@smoon2> Date: Tue, 27 Apr 2010 11:38:18 -0400 In-Reply-To: <20100427043838.GC4272@smoon2> (Vladimir Lomov's message of "Tue, 27 Apr 2010 13:38:38 +0900") Message-ID: <87och4oqhh.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6039 Cc: 6039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Vladimir Lomov writes: > Seems that if I pass option '-fno-optimize-sibling-calls' to configure > (CFLAGS="-O2 -fno-optimize-sibling-calls") > then compiled emacs works > (I run it under gdb with options '-Q -D' and without any options > without segfault) but I don't know how this option affects the emacs. Yep, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031 It's a GCC bug. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 27 23:07:00 2010 Received: (at 6039) by debbugs.gnu.org; 28 Apr 2010 03:07:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6xc3-0006hz-Ly for submit@debbugs.gnu.org; Tue, 27 Apr 2010 23:06:59 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6xc1-0006hu-SA for 6039@debbugs.gnu.org; Tue, 27 Apr 2010 23:06:58 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1389695fga.15 for <6039@debbugs.gnu.org>; Tue, 27 Apr 2010 20:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=J1nfoch0oAGiiHTAJ7yXNZ5T1WsHg/bA5xsXhvPUGoo=; b=RTv++OWRT4Tc14Xy0cmsAf4RpI4HR4XXJDvO0ZZ3UePCAT5pRuafZYt9gv4FAJJypp rCmO6DVEzhHsdNIc78tZvjzN0Va/MOvqodo7ZN0k50nsd5QoOZSwOaErvQTIAgb+pVmh kBfhkWdslUPLJkuCn3m3uCLVXbKCHQ9/LBOQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=veOJNE1mzgytaGrlkSTR7rvciglofQDOZMlYxYTxnKN4WG6CN5IZ3Ia9R9ChJ0VpDs a/ie/xN9W8F1mcMSPQ0evIDBGD1tRh75w80DWidPrbP1Zq4RZG1sf/qsMMJZ9T+RnvmX reKpz/9FV2sKRuYz5Nw+rcoje8DMPyBstbsd0= Received: by 10.86.124.4 with SMTP id w4mr3824827fgc.54.1272424013912; Tue, 27 Apr 2010 20:06:53 -0700 (PDT) Received: from smoon2 ([84.237.20.66]) by mx.google.com with ESMTPS id 12sm3909528fks.20.2010.04.27.20.06.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Apr 2010 20:06:52 -0700 (PDT) Date: Wed, 28 Apr 2010 12:07:00 +0900 From: Vladimir Lomov To: Chong Yidong Subject: Re: bug#6039: Building Emacs BZR with GCC 4.5.0 Message-ID: <20100428030659.GD4272@smoon2> References: <877hnu45oo.fsf@stupidchicken.com> <20100427043838.GC4272@smoon2> <87och4oqhh.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87och4oqhh.fsf@stupidchicken.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 6039 Cc: 6039@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) ** Chong Yidong [2010-04-27 11:38:18 -0400]: > Vladimir Lomov writes: >> Seems that if I pass option '-fno-optimize-sibling-calls' to configure >> (CFLAGS="-O2 -fno-optimize-sibling-calls") >> then compiled emacs works >> (I run it under gdb with options '-Q -D' and without any options >> without segfault) but I don't know how this option affects the emacs. > Yep, see > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031 > It's a GCC bug. It is nice :). Actually I found more puzzling thing. If I run configure with the same options as I described earlier but define CFLAGS variable like this CFLAGS="-O3" compile emacs source and run emacs within gdb: (gdb) run -Q -D or (gdb) run it don't segfault. (bzr revno && bzr revno --tree: 100061) May be there are some tests to check compiled executable? -- A guy has to get fresh once in a while so a girl doesn't lose her confidence. From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 23:41:51 2010 Received: (at 6039) by debbugs.gnu.org; 10 May 2010 03:41:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBJsM-0000Ym-Vz for submit@debbugs.gnu.org; Sun, 09 May 2010 23:41:51 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBJsL-0000Yh-9g for 6039@debbugs.gnu.org; Sun, 09 May 2010 23:41:49 -0400 Received: by wyb39 with SMTP id 39so727610wyb.3 for <6039@debbugs.gnu.org>; Sun, 09 May 2010 20:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Divg4ryeUDvgNr8ET4SNruXvdYbgsP7uYrljRVkKeQ4=; b=r0keGB6/G1Xv5fHTevsuwsCiD3Z2/pKLbfK6C6ygIIl1ZZ0LI6ND9BfNILjCbnFw3D SNPOXaMKS6S5QXHNorIpgL9qf+iOPaHaKyxhbd9j8ZlP6SnGVaXbIFhxIKFH06/F1Jed BmSWLAxdHiJGJLypea6xeeJOa0qr50K3b+Dd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=JXSLyRNMALS2llcKLhXm8QT7fc/xp10mOqEpFAyiM4yaB/uZulQUYdXWL1whysB3MG +m9V6GUhwfviYitQnMMgNj63rm0wOKoxjq2rrDbt0ASyGpwepGCjYWqzqjtL/vyNeUCN RRis7TE2j2EMDm0Hccx7EESIXtfbD15ipI0p0= Received: by 10.216.86.193 with SMTP id w43mr2026563wee.16.1273462905191; Sun, 09 May 2010 20:41:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.2.198 with HTTP; Sun, 9 May 2010 20:41:25 -0700 (PDT) In-Reply-To: <87hbmplvmk.fsf@stupidchicken.com> References: <83zl0juhc5.fsf@gnu.org> <86d3xe28vm.fsf@chateau.d.if> <87tyqq74nf.fsf@stupidchicken.com> <83y6g2us9p.fsf@gnu.org> <87iq76uop1.fsf@stupidchicken.com> <87hbmplvmk.fsf@stupidchicken.com> From: Vladimir Lomov Date: Mon, 10 May 2010 12:41:25 +0900 Message-ID: Subject: Re: Emacs 23.1.96 (git HEAD) crashing at startup. To: Chong Yidong , 6039@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 6039 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) Hi. Sorry for later response. 2010/5/3 Chong Yidong : > Elias Pipping writes: > >> Could you make the check and the error message a bit more precise? For >> example, CFLAGS=3D"-O2 -fno-optimize-sibling-calls" should get through >> (CFLAGS=3D"-O1 -foptimize-sibling-calls" should not, but that can >> probably be ignored). It'd also be nice if either the error message or >> the comments in configure.in referred to this bug. > > Sure. =C2=A0Could you test this updated patch? > > > *** configure.in =C2=A0 =C2=A0 =C2=A0 =C2=A02010-04-20 01:29:37 +0000 > --- configure.in =C2=A0 =C2=A0 =C2=A0 =C2=A02010-05-02 23:38:03 +0000 > *************** > *** 2600,2605 **** > --- 2600,2613 ---- > =C2=A0CFLAGS=3D"$REAL_CFLAGS" > =C2=A0CPPFLAGS=3D"$REAL_CPPFLAGS" > > + ## Hack to detect a buggy GCC version. > + if test "x$GCC" =3D xyes \ > + =C2=A0 =C2=A0&& test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'= `" !=3D x \ > + =C2=A0 =C2=A0&& test x"`echo $CFLAGS | grep '\-O[23]'`" !=3D x \ > + =C2=A0 =C2=A0&& test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-cal= ls'`" =3D x; then > + =C2=A0 =C2=A0AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see = etc/PROBLEMS'.]) > + fi > + > =C2=A0#### Find out which version of Emacs this is. > =C2=A0[version=3D`grep 'defconst[ =C2=A0 =C2=A0 =C2=A0]*emacs-version' ${= srcdir}/lisp/version.el \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] > > *** configure =C2=A0 2010-04-20 01:29:37 +0000 > --- configure =C2=A0 2010-05-02 23:38:37 +0000 > *************** > *** 25559,25564 **** > --- 25559,25574 ---- > =C2=A0CFLAGS=3D"$REAL_CFLAGS" > =C2=A0CPPFLAGS=3D"$REAL_CPPFLAGS" > > + ## Hack to detect a buggy GCC version. > + if test "x$GCC" =3D xyes \ > + =C2=A0 =C2=A0&& test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'= `" !=3D x \ > + =C2=A0 =C2=A0&& test x"`echo $CFLAGS | grep '\-O23'`" !=3D x \ > + =C2=A0 =C2=A0&& test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-cal= ls'`" =3D x; then > + =C2=A0 =C2=A0{ { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problem= s compiling Emacs; see etc/PROBLEMS'." >&5 > + $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see et= c/PROBLEMS'." >&2;} > + =C2=A0 =C2=A0{ (exit 1); exit 1; }; } > + fi > + > =C2=A0#### Find out which version of Emacs this is. > =C2=A0version=3D`grep 'defconst[ =C2=A0 =C2=A0 =C2=A0 ]*emacs-version' ${= srcdir}/lisp/version.el \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` > Why you check versus O3 option? I checked that with O3 option GCC 4.5.0 compiles emacs (BZR) fine and it works. Could you please remove this check (actually I rather ask GCC developers to release a bug fix but they have they own schedule). P.S. I make custom builds for my Archlinux system (x86_64). Now I use a patch to remove O3 check so this just a wish. --- WBR, Vladimir Lomov From debbugs-submit-bounces@debbugs.gnu.org Fri May 21 03:07:20 2010 Received: (at control) by debbugs.gnu.org; 21 May 2010 07:07:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFMKG-0005cW-67 for submit@debbugs.gnu.org; Fri, 21 May 2010 03:07:20 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFMKE-0005cR-O2 for control@debbugs.gnu.org; Fri, 21 May 2010 03:07:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OFMKB-0004CF-44; Fri, 21 May 2010 03:07:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19446.12578.798544.901818@fencepost.gnu.org> Date: Fri, 21 May 2010 03:07:14 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: V:>L),[l2w+1JY0EN)U^T7|l1`^w=ov4r2p(ZUCg(n;o:&tVV2XmYlfQ}U*p'T1cr/1_@g X-Debbugs-No-Ack: yes X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) close 6115 close 6134 close 6160 close 6031 From unknown Thu Aug 14 20:56:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Jun 2010 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator