From: ashish@FreeBSD.org (Ashish SHUKLA)
To: Joseph Mingrone <jrm@ftfl.ca>
Cc: Wolfgang Jenkner <wjenkner@inode.at>,
ashish@FreeBSD.org, 22065@debbugs.gnu.org,
Dmitry Antipov <dmantipov@yandex.ru>,
Paul Eggert <eggert@cs.ucla.edu>
Subject: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9)
Date: Mon, 15 Feb 2016 11:26:53 +0530 [thread overview]
Message-ID: <86mvr2qzx6.fsf@chateau.d.if> (raw)
In-Reply-To: <86vb5qty7i.fsf@phe.ftfl.ca> (Joseph Mingrone's message of "Mon, 15 Feb 2016 00:05:37 -0400")
[-- Attachment #1.1: Type: text/plain, Size: 1227 bytes --]
On Mon, 15 Feb 2016 00:05:37 -0400, Joseph Mingrone <jrm@ftfl.ca> said:
| Paul Eggert <eggert@cs.ucla.edu> 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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: Makefile.diff --]
[-- Type: text/x-patch, Size: 775 bytes --]
--- /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= emacs
PORTVERSION= ${EMACS_VER}
PORTEPOCH= 2
+PORTREVISION= 1
CATEGORIES= editors ipv6
MASTER_SITES= GNU_ALPHA/emacs/pretest
PKGNAMESUFFIX= -devel
@@ -14,7 +15,6 @@
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_FreeBSD_9=does not build
BROKEN_sparc64= fails to compile at bootstrap phase
BROKEN_ia64= Emacs 24.X does not currently build on ia64
@@ -189,6 +189,12 @@
.endif
.endif
+.if (${OSVERSION} < 1000000)
+CC= /usr/bin/clang
+CPP= /usr/bin/clang-cpp
+CXX= /usr/bin/clang++
+.endif
+
.if ${PORT_OPTIONS:MX11}
INSTALLS_ICONS= yes
.if !${PORT_OPTIONS:MXFT}
[-- Attachment #1.3: Type: text/plain, Size: 161 bytes --]
And will commit once, it finishes building.
Thanks!
--
Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0
Sent from my Emacs
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-02-15 5:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 22:10 bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9) Joseph Mingrone
2015-12-26 21:22 ` Lars Ingebrigtsen
2016-02-13 1:08 ` Paul Eggert
2016-02-14 16:12 ` Wolfgang Jenkner
2016-02-14 19:47 ` Paul Eggert
2016-02-15 4:05 ` Joseph Mingrone
2016-02-15 5:56 ` Ashish SHUKLA [this message]
2016-02-15 8:17 ` Paul Eggert
2016-02-15 13:08 ` Wolfgang Jenkner
2016-02-15 18:51 ` Joseph Mingrone
2016-02-15 18:51 ` Joseph Mingrone
2016-02-17 3:38 ` Joseph Mingrone
2016-02-17 7:56 ` Paul Eggert
2016-02-17 13:23 ` Wolfgang Jenkner
2016-02-17 15:35 ` Joseph Mingrone
2016-02-17 17:49 ` Wolfgang Jenkner
2016-02-17 22:45 ` Joseph Mingrone
2016-02-18 13:39 ` Wolfgang Jenkner
2016-03-20 2:40 ` Paul Eggert
[not found] ` <handler.22065.D22065.145844160912708.notifdone@debbugs.gnu.org>
2016-03-20 2:52 ` bug#22065: closed (Re: bug#22065: core dumped during compilation (emacs-25 branch on FreeBSD 9)) Joseph Mingrone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86mvr2qzx6.fsf@chateau.d.if \
--to=ashish@freebsd.org \
--cc=22065@debbugs.gnu.org \
--cc=dmantipov@yandex.ru \
--cc=eggert@cs.ucla.edu \
--cc=jrm@ftfl.ca \
--cc=wjenkner@inode.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.