From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#20894: make libgnu.a doesn't generate everything it requires Date: Wed, 24 Jun 2015 23:39:26 -0700 Organization: UCLA Computer Science Department Message-ID: <558BA21E.5070703@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435214434 4315 80.91.229.3 (25 Jun 2015 06:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 06:40:34 +0000 (UTC) Cc: 20894@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 08:40:15 2015 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 1Z80pZ-00050s-Mw for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 08:40:13 +0200 Original-Received: from localhost ([::1]:54156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z80pY-0007TJ-Uh for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 02:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z80pV-0007S5-CV for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2015 02:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z80pQ-00016I-Ki for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2015 02:40:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z80pQ-00015w-IQ for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2015 02:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z80pP-00087X-Tv for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2015 02:40:04 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jun 2015 06:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20894 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20894-submit@debbugs.gnu.org id=B20894.143521437731174 (code B ref 20894); Thu, 25 Jun 2015 06:40:03 +0000 Original-Received: (at 20894) by debbugs.gnu.org; 25 Jun 2015 06:39:37 +0000 Original-Received: from localhost ([127.0.0.1]:56872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z80oy-00086j-M9 for submit@debbugs.gnu.org; Thu, 25 Jun 2015 02:39:37 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35487) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z80ov-00086Q-I4 for 20894@debbugs.gnu.org; Thu, 25 Jun 2015 02:39:34 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C34801601CB; Wed, 24 Jun 2015 23:39:27 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GjKGf7Oc6_fj; Wed, 24 Jun 2015 23:39:26 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D4C9516026C; Wed, 24 Jun 2015 23:39:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LqkRyGkJp_pt; Wed, 24 Jun 2015 23:39:26 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B8A301601CB; Wed, 24 Jun 2015 23:39:26 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:104326 Archived-At: > 'make libgnu.a' doesn't generate the lib/ version of fcntl.h, which is > what defines O_BINARY. > > In contrast, 'make all' (in lib) does. That's a known problem with Automake, when dependency checking is turned = on.=20 The short version is that it can't compute dependencies until it has the = .h=20 files, and it can't make the .h files until it knows the dependencies. T= he=20 usual workaround is BUILT_SOURCES, but as the Automake manual says in=20 : =3D=3D=3D=3D=3D It might be important to emphasize that BUILT_SOURCES is honored only by = =E2=80=98make=20 all=E2=80=99, =E2=80=98make check=E2=80=99 and =E2=80=98make install=E2=80= =99. This means you cannot build a specific=20 target (e.g., =E2=80=98make foo=E2=80=99) in a clean tree if it depends o= n a built source.=20 However it will succeed if you have run =E2=80=98make all=E2=80=99 earlie= r, because accurate=20 dependencies are already available. =3D=3D=3D=3D=3D Ways to work around this issue are described in=20 .=20 They are all a bit of a pain, though, and the simplest thing is probabl= y to=20 say =E2=80=9Cdon't try to make libgnu.a by hand without doing an ordinary= make first=E2=80=9D.... > (I would like 'make -C src emacs' to work). *That* we can arrange. > Perhaps it should call 'make -C lib all' instead (an Emacs issue); Yes, that's an easy way to arrange things. I installed that as part of c= ommit=20 319eeeb0fb154a0cd1d36ec33c68029ff9d6c290. Good enough?