From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Merging feature/android Date: Sat, 4 Mar 2023 01:13:47 -0800 Organization: UCLA Computer Science Department Message-ID: <368d31cc-c080-b3f7-334e-a4f6789754db@cs.ucla.edu> References: <87edq7ztks.fsf.ref@yahoo.com> <87edq7ztks.fsf@yahoo.com> <83pm9reccn.fsf@gnu.org> <87v8jjxxo9.fsf@yahoo.com> <382933e4-deb5-e107-9165-d41e55949f0a@cs.ucla.edu> <87h6v1wfat.fsf@yahoo.com> <83fsalasos.fsf@gnu.org> <871qm5vt09.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23220"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: emacs-devel@gnu.org To: Po Lu , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 04 10:14:32 2023 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 1pYNyH-0005pX-Nu for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Mar 2023 10:14:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYNxk-0001Oo-Kp; Sat, 04 Mar 2023 04:13:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYNxj-0001Ob-BK for emacs-devel@gnu.org; Sat, 04 Mar 2023 04:13:55 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYNxh-0006r1-IS; Sat, 04 Mar 2023 04:13:55 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 286841600C0; Sat, 4 Mar 2023 01:13:49 -0800 (PST) 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 cPKncIsi6EWe; Sat, 4 Mar 2023 01:13:48 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 540891600C2; Sat, 4 Mar 2023 01:13:48 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 540891600C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1677921228; bh=pe6l6NMn0lWOdW2zUpzD+WjfTBb9rQvOnAM2oAGugFY=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding; b=RhaF1XfbgY0qe1spmgUtECyaTZgvW18emhsPDGkwmgwvG+2Bcp0d+jKqb73vYB0Cx EMxxbrfzZujEzjcKxTbbgqBRgrXOPM1yNcovBFXROZ1YF5mp4CQWouI3sJ5sqZmQdM aQmwVNXaFM2VruxSWFtW49hJunh72Rmi8Wp+3png= 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 rRon61OUTizA; Sat, 4 Mar 2023 01:13:48 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1A8F91600C0; Sat, 4 Mar 2023 01:13:48 -0800 (PST) Content-Language: en-US In-Reply-To: <871qm5vt09.fsf@yahoo.com> Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303939 Archived-At: On 2023-03-04 00:08, Po Lu wrote: > If gnulib provided a list of its C files, we could arrange for autoconf > to symlink the files in lib/ to cross/lib/ during configuration. But I > could not find any such list. m4/gnulib-comp.m4 has gl_FILE_LIST. Although this lists all files not just C files, it should be easy enough to extract the C files. > the C compiler doesn't understand GNU > make vpath directives, so the includes in lib/ are: > > -I$(srcdir) -I. > > while the includes in cross/src/lib are: > > -I$(top_srcdir)/lib -I$(srcdir) -I. > > and as a result, when a file in -I$(top_srcdir)/lib then includes: > > #include "stdio.h" > > it gets the stdio.h in lib, and not cross/lib, leading to silent > problems later on. I'm not quite following, since I'm not sure whether we're talking about an in-tree build or an out-of-tree build. That being said, can we address the problem by changing the order of the includes in cross/src/lib/Makefile?