From: charles@aurox.ch (Charles A. Roelli)
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: esq@lawlist.com, 27736@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: bug#27736: OSX 10.6.8: Building from master branch fails.
Date: Wed, 28 Mar 2018 20:54:36 +0200 [thread overview]
Message-ID: <m2605g2fpv.fsf@aurox.ch> (raw)
In-Reply-To: <46d25462-4eb0-0bd0-f5ab-2b28bae98ee6@cs.ucla.edu> (message from Paul Eggert on Tue, 27 Mar 2018 14:19:22 -0700)
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Tue, 27 Mar 2018 14:19:22 -0700
>
> > > (<= m -1034058203136)
> > > (<= m -1034058203135))
> Unfortunately these numbers don't fit into a 30-bit integer and so they
> run afoul of a portability issue, namely, that files byte-compiled on a
> 64-bit Emacs should run on a 32-bit Emacs and vice versa. I noticed this
> problem when preparing a patch to catch this sort of issue. To fix this
> particular instance of the problem, I attempted to migrate the localtime
> workaround into editfns.c (so that the fix is more-general, and is not
> limited to org-clock), by installing the attached patches into master.
> Please give them a try, since I don't have easy access to Mac OS X. I'm
> still a bit fuzzy on exactly which timestamps cause Mac OS X localtime
> to go belly-up (is it timezone dependent?), so quite possibly the magic
> numbers in these patches need to be adjusted a bit so that the code will
> work in any timezone from TZ=AAA-24:59:59 to TZ=ZZZ24:59:59; please let
> me know.
Thank you for looking into this. At the moment, on an affected
system, ./configure has the following output:
checking whether localtime loops forever near extrema... no
and config.log shows:
configure:30520: checking whether localtime loops forever near extrema
configure:30554: gcc -std=gnu99 -o conftest -O0 -g3 conftest.c >&5
configure:30554: $? = 0
configure:30554: ./conftest
configure:30554: $? = 0
configure:30562: result: no
Bizarrely, the problem doesn't seem to show itself exactly in the
range I had quoted last July on bug-gnulib, so I applied the following
small change, with which the hang was detected.
--- a/m4/time_rz.m4
+++ b/m4/time_rz.m4
@@ -26,7 +26,7 @@ AC_DEFUN
#include <unistd.h>
#include <time.h>
]], [[
- time_t t = -67768038400665600;
+ time_t t = -67768038400666600;
struct tm *tm;
char *tz = getenv ("TZ");
if (! (tz && strcmp (tz, "QQQ0") == 0))
And then I got the following in the output of ./configure:
checking whether localtime loops forever near extrema... ./configure: line 30561: 35760 Alarm clock TZ=QQQ0 ./conftest$EXEEXT
yes
(The rest of the compilation process worked fine, so this change is on
the right track.)
I will try to find the exact boundary of the hang again. And the hang
is timezone-dependent, so that complicates things too.
next prev parent reply other threads:[~2018-03-28 18:54 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-17 15:18 bug#27736: OSX 10.6.8: Building from master branch fails Keith David Bershatsky
2017-07-17 15:29 ` Noam Postavsky
2017-07-17 16:10 ` Keith David Bershatsky
2017-07-17 16:38 ` Noam Postavsky
2017-07-17 18:05 ` Keith David Bershatsky
2017-07-17 18:48 ` Noam Postavsky
2017-07-17 19:43 ` Alan Third
2017-07-17 20:48 ` Charles A. Roelli
2017-07-17 21:37 ` Keith David Bershatsky
2017-07-18 5:08 ` Charles A. Roelli
2017-07-18 6:56 ` Keith David Bershatsky
2017-07-18 14:34 ` Eli Zaretskii
2017-07-18 16:07 ` Keith David Bershatsky
2017-07-18 18:42 ` Charles A. Roelli
2017-07-19 19:58 ` Charles A. Roelli
2017-07-19 22:48 ` Alan Third
2017-07-23 9:28 ` Charles A. Roelli
2017-07-24 15:50 ` Glenn Morris
2017-07-30 16:32 ` Charles A. Roelli
2017-11-05 18:03 ` Keith David Bershatsky
2017-11-05 18:15 ` Noam Postavsky
2017-11-05 20:01 ` Keith David Bershatsky
2017-11-06 2:20 ` Keith David Bershatsky
2017-11-06 19:41 ` Charles A. Roelli
2017-11-06 20:41 ` Charles A. Roelli
2017-11-07 2:13 ` Keith David Bershatsky
2017-11-07 20:20 ` Charles A. Roelli
2017-11-08 5:18 ` Keith David Bershatsky
2017-11-08 19:55 ` Charles A. Roelli
2018-03-27 21:19 ` Paul Eggert
2018-03-28 17:15 ` Glenn Morris
2018-03-28 19:02 ` Charles A. Roelli
2018-03-28 19:33 ` Paul Eggert
2018-03-28 22:08 ` Paul Eggert
2018-03-28 22:08 ` Paul Eggert
2018-03-28 18:54 ` Charles A. Roelli [this message]
2018-03-28 21:29 ` Paul Eggert
[not found] ` <805d95e1-bfc0-bb40-ced7-c10bb5a7256e@cs.ucla.edu>
2018-03-31 15:02 ` Charles A. Roelli
[not found] ` <m21sg02sr4.fsf@aurox.ch>
2018-04-01 20:32 ` Paul Eggert
[not found] <m2a800ve9b.wl%esq@lawlist.com>
2017-11-05 20:54 ` Charles A. Roelli
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=m2605g2fpv.fsf@aurox.ch \
--to=charles@aurox.ch \
--cc=27736@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=esq@lawlist.com \
--cc=npostavs@users.sourceforge.net \
/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.