From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ashish@FreeBSD.org (Ashish SHUKLA) Newsgroups: gmane.emacs.bugs Subject: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9) Date: Mon, 15 Feb 2016 11:26:53 +0530 Organization: The FreeBSD Project Message-ID: <86mvr2qzx6.fsf@chateau.d.if> References: <867fkz16lw.fsf@phe.ftfl.ca> <85si0vjkos.fsf@iznogoud.viz> <56C0D9ED.3030002@cs.ucla.edu> <86vb5qty7i.fsf@phe.ftfl.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1455517597 677 80.91.229.3 (15 Feb 2016 06:26:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 06:26:37 +0000 (UTC) Cc: Wolfgang Jenkner , ashish@FreeBSD.org, 22065@debbugs.gnu.org, Dmitry Antipov , Paul Eggert To: Joseph Mingrone Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 07:26:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVCc0-0003ZD-Vi for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 07:26:21 +0100 Original-Received: from localhost ([::1]:56999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVCbz-0000aM-Vq for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Feb 2016 01:26:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVCbv-0000Xr-Dk for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 01:26:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVCbq-00037N-4c for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 01:26:15 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVCbp-00036j-Qj for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 01:26:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVCbi-0000gM-PO for bug-gnu-emacs@gnu.org; Mon, 15 Feb 2016 01:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ashish@FreeBSD.org (Ashish SHUKLA) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Feb 2016 06:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22065 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22065-submit@debbugs.gnu.org id=B22065.14555175302552 (code B ref 22065); Mon, 15 Feb 2016 06:26:02 +0000 Original-Received: (at 22065) by debbugs.gnu.org; 15 Feb 2016 06:25:30 +0000 Original-Received: from localhost ([127.0.0.1]:39270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVCbC-0000f5-CP for submit@debbugs.gnu.org; Mon, 15 Feb 2016 01:25:30 -0500 Original-Received: from mx2.freebsd.org ([8.8.178.116]:26425) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVC9f-0008LG-Ut for 22065@debbugs.gnu.org; Mon, 15 Feb 2016 00:57:04 -0500 Original-Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.freebsd.org (Postfix) with ESMTPS id 7FB406598B; Mon, 15 Feb 2016 05:57:01 +0000 (UTC) (envelope-from ashish@freebsd.org) Original-Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5EF0E1FBB; Mon, 15 Feb 2016 05:57:01 +0000 (UTC) (envelope-from ashish@freebsd.org) Original-Received: from chateau.d.if (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id CAEB0185C; Mon, 15 Feb 2016 05:56:58 +0000 (UTC) (envelope-from ashish@freebsd.org) Original-Received: from chateau.d.if (localhost [IPv6:::1]) by chateau.d.if (OpenSMTPD) with ESMTP id 9a1bf56b; Mon, 15 Feb 2016 11:26:57 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 11:23AM up 1 day, 16:57, 10 users, load averages: 1.08, 0.75, 0.67 X-Operating-System: FreeBSD/FreeBSD 10.2-RELEASE-p10/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7?= Organisation: The FreeBSD Project X-Hashcash: 1:20:160215:wjenkner@inode.at::4820fPqnV+G7Di4l:000000000000000000000000000000000000000000000qM/ X-Hashcash: 1:20:160215:jrm@ftfl.ca::0i45OPGSWRsIP+1C:00000010zy X-Hashcash: 1:20:160215:eggert@cs.ucla.edu::gI9ELcHf+BW+mnuc:00000000000000000000000000000000000000000001ZI0 X-Hashcash: 1:20:160215:22065@debbugs.gnu.org::gntRLt2pjP/nTVqN:00000000000000000000000000000000000000003f/C X-Hashcash: 1:20:160215:dmantipov@yandex.ru::YbE2FGmxlPxcnAwN:0000000000000000000000000000000000000000004Q4X X-Hashcash: 1:20:160215:ashish@freebsd.org::gUNW1xOTqHoAUG45:00000000000000000000000000000000000000000005f3E In-Reply-To: <86vb5qty7i.fsf@phe.ftfl.ca> (Joseph Mingrone's message of "Mon, 15 Feb 2016 00:05:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (amd64-portbld-freebsd10.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-Mailman-Approved-At: Mon, 15 Feb 2016 01:25:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113054 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On Mon, 15 Feb 2016 00:05:37 -0400, Joseph Mingrone said: | Paul Eggert writes: || Wolfgang Jenkner wrote: ||| So, perhaps, the FreeBSD 9 default base cc (a patched gcc 4.2.1) has ||| some stack-related optimization bug, even on amd64? || Thanks for the detective work. It inspired me to search GCC bug reports, where I || found a couple that appear to be directly relevant. The corresponding bug was || fixed in 2008 but GCC 4.2.1 predates the fix. I installed the attached patch || into the emacs-25 branch, and I hope it works around the compiler bug with || stack-allocated Lisp objects on FreeBSD 9. Please give it a try. | Thanks for taking a look at the problem, but unfortunately it persists. A new log is attached. | While the ancient version of gcc is the default compiler in FreeBSD | 9.3, clang is in the base system. I tested using the base clang in | 9.3 and the compiling finished without the error. I'll submit a patch | for the FreeBSD port to use clang. Hi Joseph (and everyone), Thanks much for investigating. The port builds fine with clang, like Joseph said in his reply. I'm building the port with all OPTIONS to catch any possible errors with following diff: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=Makefile.diff Content-Transfer-Encoding: quoted-printable =2D-- /usr/ports/editors/emacs-devel/Makefile 2016-02-08 04:16:55.000000000= +0530 +++ Makefile 2016-02-15 11:24:35.773237763 +0530 @@ -4,6 +4,7 @@ PORTNAME=3D emacs PORTVERSION=3D ${EMACS_VER} PORTEPOCH=3D 2 +PORTREVISION=3D 1 CATEGORIES=3D editors ipv6 MASTER_SITES=3D GNU_ALPHA/emacs/pretest PKGNAMESUFFIX=3D -devel @@ -14,7 +15,6 @@ LICENSE=3D GPLv3 LICENSE_FILE=3D ${WRKSRC}/COPYING =20 =2DBROKEN_FreeBSD_9=3Ddoes not build BROKEN_sparc64=3D fails to compile at bootstrap phase BROKEN_ia64=3D Emacs 24.X does not currently build on ia64 =20 @@ -189,6 +189,12 @@ .endif .endif =20 +.if (${OSVERSION} < 1000000) +CC=3D /usr/bin/clang +CPP=3D /usr/bin/clang-cpp +CXX=3D /usr/bin/clang++ +.endif + .if ${PORT_OPTIONS:MX11} INSTALLS_ICONS=3D yes .if !${PORT_OPTIONS:MXFT} --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable And will commit once, it finishes building. Thanks! =2D-=20 Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 Sent from my Emacs --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWwWilAAoJEMdGz6nnT6SwsFQQALOge79Mkoy82uk5jGRWAVd5 TKyEqc2HvQHquOBfhsqb/W5mBxpJoxbX0bI0wlPpRWHU7OnkTGiWUzSU6htkPPw/ WluiBUB8uIenj8zBAhWmuJs1TQtRpMB63ykKczWlmYMctWV+VEOeec44MX34GzuU uArV8yP2/ummTOgYUdrAdD/JxK/4wm1c75/HlYCPuZbMrscW96VjyXHK30lP7QrI h2YfDzSHL+QxfNgGPYVQB3IaJ8QAUl0Ld3lXSK4JuPnCisfdsS/bseeKyom7U7Pb 326bA2Brg35HgmHjXb3BphS66DX+GMy+WZQExWUgjt9VvJiEN3bMFnl69jsIx32l mOBg8OpLfmsedfPGLC0hs4o+CR15AkOInDNC21gfWqSyVCPXOAsyCHM1R07plKVa kzAvu53EqXg5+ZGHpnjff7lY+aXTKVRXiozbQh6tpVBq0Po+SazyEtd9blNtVVU3 1GuR9rGjWisnE1M/dHoXtd8FEj93nDUTLQOd3jyHL6ZGtL+K7aRdoOkXKaiFVGOy 5I3QzRriUklJzbXXYTH0pYnTTs27WP/9UR/Tf2D3L2uz67xiXNAuDmejR8yU6p1j F3XoI/1PjLPmQh80M/XvLttwSSDJjotS1IvGDBqkqFJsO4Hbd1NPEMz+N9sEYxDP yxsZoD2JC3IGctzwVUym =Na6r -----END PGP SIGNATURE----- --==-=-=--