From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Build failure in gettimeofday Date: Wed, 16 Sep 2020 17:41:58 +0300 Message-ID: <83r1r17phl.fsf@gnu.org> References: <64c1de46-bd43-411f-bae9-93b509bb8815@gmx.at> <83blifkoir.fsf@gnu.org> <53692dbf-b983-0ef6-c591-77b67401ed00@gmx.at> <83k0ww9vqk.fsf@gnu.org> <6e3a05c3-f66a-93cf-e5ba-9d1115154686@gmx.at> <83mu1r844v.fsf@gnu.org> <3a0bcac5-7a7a-6334-03d3-57d32086b886@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34836"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 16 16:47:04 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIYi8-0008xD-0j for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Sep 2020 16:47:04 +0200 Original-Received: from localhost ([::1]:33076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIYi6-0006V6-W7 for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Sep 2020 10:47:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIYd4-00016m-Uf for emacs-devel@gnu.org; Wed, 16 Sep 2020 10:41:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41515) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIYd4-0006po-BP; Wed, 16 Sep 2020 10:41:50 -0400 Original-Received: from [176.228.60.248] (port=2409 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kIYd2-0003V1-W1; Wed, 16 Sep 2020 10:41:49 -0400 In-Reply-To: <3a0bcac5-7a7a-6334-03d3-57d32086b886@gmx.at> (message from martin rudalics on Wed, 16 Sep 2020 10:21:56 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255884 Archived-At: > Cc: emacs-devel@gnu.org > From: martin rudalics > Date: Wed, 16 Sep 2020 10:21:56 +0200 > > 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 > ^ > compilation terminated. > make[1]: *** [emacs.o] Error 1 ??? How did the -O0 build get past this problem? Header file inclusion doesn't depend on optimizations. Are you sure you have a clean working tree, devoid of stale object files? Anyway, it sounds like you don't have GMP installed? In that case, running configure is supposed to create lib/gmp.h, and the above inclusion in bignum.h is supposed to find it. It works for me on a system where there's no libgmp. Do you have lib/gmp.h? If you do, then perhaps this is a compiler bug: it should be able to find that file, because the compiler switches include "-I../lib". If you don't have lib/gmp.h, then your tree is mis-configured somehow. Or maybe this is another aspect of our less-than-ideal support for out-of-tree builds. > 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=] That's because of your ancient version of GCC. You will have to live with this. > ../../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]; > ^ That's the usual noise with GCC 4.x when compiling mini-gmp. I reported this as a bug, but no one wants to fix it, so I guess us providing mini-gmp is just a lip service, and you are advised to install libgmp if you are annoyed enough by these warnings.