unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Build failure in gettimeofday
Date: Wed, 16 Sep 2020 10:21:56 +0200	[thread overview]
Message-ID: <3a0bcac5-7a7a-6334-03d3-57d32086b886@gmx.at> (raw)
In-Reply-To: <83mu1r844v.fsf@gnu.org>

 > Please try the latest master, I tried
 > to fix this.

Thank you.  A -O0 -g3 build succeeds now but a -O3 build currently
fails thusly:

In file included from ../../src/emacs.c:68:0:
../../src/bignum.h:25:17: fatal error: gmp.h: No such file or directory
  #include <gmp.h>
                  ^
compilation terminated.
make[1]: *** [emacs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/c/emacs-git/trunk/opt/src'
make: *** [src] Error 2

My -O0 builds have, for historically reasons, also

-Wno-logical-op --Wno-missing-braces

and

--enable-checking=yes --enable-gcc-warnings=warn-only --enable-check-lisp-object-type=warn-only

but I doubt that these can be relevant.  Any clues?  A couple of
warnings from the -O0 build just in case they could hint at anything.

   CC       menu.o
../../src/xdisp.c: In function 'move_it_in_display_line_to':
../../src/xdisp.c:9557:10: warning: unknown conversion type character 't' in format [-Wformat=]
           IT_CHARPOS (*it));
           ^
../../src/xdisp.c:9557:10: warning: too many arguments for format [-Wformat-extra-args]
../../src/xdisp.c: In function 'move_it_to':
../../src/xdisp.c:9925:8: warning: unknown conversion type character 't' in format [-Wformat=]
         move_trace ("move_it: from %td\n", IT_CHARPOS (*it));
         ^
../../src/xdisp.c:9925:8: warning: too many arguments for format [-Wformat-extra-args]
../../src/xdisp.c:9928:8: warning: unknown conversion type character 't' in format [-Wformat=]
         move_trace ("move_it: to %td\n", IT_CHARPOS (*it));
         ^
../../src/xdisp.c:9928:8: warning: too many arguments for format [-Wformat-extra-args]
../../src/xdisp.c: In function 'move_it_vertically':
../../src/xdisp.c:10321:7: warning: unknown conversion type character 't' in format [-Wformat=]
        move_trace ("move_it_v: from %td, %d\n", IT_CHARPOS (*it), dy);
        ^
../../src/xdisp.c:10321:7: warning: too many arguments for format [-Wformat-extra-args]
../../src/xdisp.c:10324:7: warning: unknown conversion type character 't' in format [-Wformat=]
        move_trace ("move_it_v: to %td\n", IT_CHARPOS (*it));
        ^
../../src/xdisp.c:10324:7: warning: too many arguments for format [-Wformat-extra-args]

   CC       pdumper.o
../../src/pdumper.c: In function 'dump_queue_dequeue':
../../src/pdumper.c:1221:6: warning: unknown conversion type character 't' in format [-Wformat=]
       XHASH_TABLE (dump_queue->link_weights)->count);
       ^
../../src/pdumper.c:1221:6: warning: too many arguments for format [-Wformat-extra-args]
   CC       data.o
   CC       doc.o
../../src/data.c: In function 'bignum_arith_driver':
../../src/data.c:2821:9: warning: assignment from incompatible pointer type [enabled by default]
    accum = &mpz[0];
          ^
../../src/data.c:2843:13: warning: assignment from incompatible pointer type [enabled by default]
        accum = &mpz[0];
              ^
../../src/data.c: In function 'Flogcount':
../../src/data.c:3157:11: warning: assignment from incompatible pointer type [enabled by default]
     nonneg = &mpz[0];
            ^
   CC       editfns.o
   CC       callint.o
   CC       eval.o
   CC       floatfns.o
../../src/floatfns.c: In function 'rescale_for_division':
../../src/floatfns.c:374:10: warning: assignment from incompatible pointer type [enabled by default]
        pn = t;
           ^
../../src/floatfns.c:382:10: warning: assignment from incompatible pointer type [enabled by default]
        pn = t;
           ^

   CC       atimer.o
../../src/timefns.c: In function 'frac_to_double':
../../src/timefns.c:622:9: warning: assignment from incompatible pointer type [enabled by default]
        d = &mpz[1];
          ^
../../src/timefns.c:630:9: warning: assignment from incompatible pointer type [enabled by default]
        n = &mpz[0];
          ^
../../src/timefns.c: In function 'lisp_to_timespec':
../../src/timefns.c:923:21: warning: initialization from incompatible pointer type [enabled by default]
    mpz_t const *qt = q;
                      ^
../../src/timefns.c: In function 'time_arith':
../../src/timefns.c:1151:10: warning: assignment from incompatible pointer type [enabled by default]
     hzmin = hzmin1;
           ^
../../src/timefns.c: In function 'time_cmp':
../../src/timefns.c:1265:10: warning: assignment from incompatible pointer type [enabled by default]
        za = &mpz[0];
           ^
../../src/timefns.c:1266:10: warning: assignment from incompatible pointer type [enabled by default]
        zb = &mpz[1];
           ^

Thanks again, martin



  reply	other threads:[~2020-09-16  8:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09  8:44 Build failure in gettimeofday martin rudalics
2020-09-09 14:34 ` Eli Zaretskii
2020-09-14  8:10   ` martin rudalics
2020-09-14 16:19     ` Eli Zaretskii
2020-09-15  8:06       ` martin rudalics
2020-09-15 15:13         ` Eli Zaretskii
2020-09-16  8:21           ` martin rudalics [this message]
2020-09-16 14:41             ` Eli Zaretskii
2020-09-17  8:14               ` martin rudalics
2020-09-17 13:42                 ` Eli Zaretskii
2020-09-18  7:48                   ` martin rudalics
2020-09-18  8:03                     ` Eli Zaretskii
2020-09-18  8:18                       ` martin rudalics
2020-09-18  8:25                         ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a0bcac5-7a7a-6334-03d3-57d32086b886@gmx.at \
    --to=rudalics@gmx.at \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).