From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs from a new MinGW environment Date: Mon, 16 Sep 2013 18:48:24 +0200 Message-ID: References: <83sixwfdjk.fsf@gnu.org> <834n9nhhp6.fsf@gnu.org> <83ppsbfoe7.fsf@gnu.org> <83mwnffkom.fsf@gnu.org> <83k3ijfhk0.fsf@gnu.org> <83hadnf7gs.fsf@gnu.org> <83hadmqvql.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1379350110 5677 80.91.229.3 (16 Sep 2013 16:48:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2013 16:48:30 +0000 (UTC) Cc: Emacs development discussions To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 16 18:48:33 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VLbyT-00011S-76 for ged-emacs-devel@m.gmane.org; Mon, 16 Sep 2013 18:48:33 +0200 Original-Received: from localhost ([::1]:36360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbyS-0008W6-Lv for ged-emacs-devel@m.gmane.org; Mon, 16 Sep 2013 12:48:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbyP-0008W1-HD for emacs-devel@gnu.org; Mon, 16 Sep 2013 12:48:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLbyO-0003nU-5z for emacs-devel@gnu.org; Mon, 16 Sep 2013 12:48:29 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:59501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbyM-0003n5-4V; Mon, 16 Sep 2013 12:48:26 -0400 Original-Received: by mail-la0-f52.google.com with SMTP id ev20so3255445lab.25 for ; Mon, 16 Sep 2013 09:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1kbJ4Zudtlna63HyfIgGjZvQVwZ4LpGhCWw6NwlGf5E=; b=M12SbwgZntvkTnVEjpSngiyrwICH1xLQjWtcSpqQDipHO/eJw0P5dv47ot3ugIR3cZ R1i2iwE7L7rVvl0acDio0SU3MZ7gTBcBvYmPIuKSSJsYHgtqtXg/+scQlG4Yfd0v1OqX f14ZY2tzA/pVnt1KERSkwrMRGT9y1z9zbZVSAPJYWBnc+p/Y2Bsov+M8VN5nZEUFGF+8 IXwrjswKQ09lCg8I2Zv0u7HQfDWq7mAd6V/h92rUuqJrL/mG+crlwrwZ9ZRWl/UabS7K yLj0d6yURLyp0ioQfVtrSaICS2F/1StQZWRcS0dDBuYE452Wm++HckhXVAjUSyiQns4O 6WDw== X-Received: by 10.152.115.176 with SMTP id jp16mr25647185lab.17.1379350104241; Mon, 16 Sep 2013 09:48:24 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Mon, 16 Sep 2013 09:48:24 -0700 (PDT) In-Reply-To: <83hadmqvql.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163370 Archived-At: >> Configured for `i686-pc-mingw32'. >> >> Where should the build process find the source code? /home/dani/emacs/emacs.git > > No, this is already wrong: the source directory should be something > like /c/msys/home/dani/emacs/emacs.git, i.e. the full Windows file > name in MSYS format. Something is still not working correctly. Mmm, but I don't see what wrong with a path like "/home/dani/whatever". It is a perfectly legitimate MSYS path (like "/c/msys/home/dani/whatever" or "c:/msys/home/dani/whatever"), isn't it? Why that should be the culprit of the lack of expansion of "%emacs_dir%"? > Are you sure you restored the MSYS tools correctly? Well, my MSYS is exactly the same I used many times for building my Emacs binaries: the pre-packaged version from MinGW-builds released on 2013-05-15: http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/ IOW: the only thing that have changed wrt my previous build environment (which compiled emacs successfully a couple of weeks ago) is the MinGW part of the environment, which is now "handmade". > E.g., do you have > dirname.exe and sed.exe in C:/MSYS/bin, and are those MSYS > executables? I think so: $ type -a dirname dirname is /bin/dirnam $ type -a sed sed is /bin/sed > Also, which version of MSYS Bash do you have? $ bash --version GNU bash, version 3.1.17(1)-release (i686-pc-msys) Copyright (C) 2005 Free Software Foundation, Inc. > The configure script computes the source directory in a fragment that > starts with this comment: > > # Find the source files, if location was not specified. > > Perhaps add 'echo' there in strategical places to see what is not > working, and why. At the end of that fragment (which begins with "# Find the source files, if location was not specified."), srcdir holds "../emacs.git". And looking at the configure script, I think that the fragment responsible for making that path absolute is a bit later in the file. It is a fairly simple and short fragment which begins with "#### Make srcdir absolute, if it isn't already.". I've seen that, after that second fragment, "srcdir" holds its definitive value: "/home/dani/emacs/emacs.git". If you look at that code, you'll see that the "srcdir" variable can be updated with either (a) the output of the "pwd" or (b) the contents of the PWD variable. But if I try those options in my MSYS bash, both give me the same MSYS path "/home/dani/emacs/emacs.git". Perhaps the key factor here is the fact that, in my case, the directory holding the source code is inside the MSYS tree (under my MSYS "home" directory). I guess that in your case that directory is outside the MSYS tree, so that its absolute path in MSYS has necessarily the form "/X/some/dir" (where X is the letter of some windows drive). -- Dani Moncayo