all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "cedet-semantic@lists.sourceforge.net"
	<cedet-semantic@lists.sourceforge.net>,
	"deng@randomsample.de" <deng@randomsample.de>,
	emacs-devel <emacs-devel@gnu.org>
Subject: RE: [cedet-semantic] Latest CEDET on BZR does not compile with emacs 24.1
Date: Sun, 7 Oct 2012 18:37:11 +0200	[thread overview]
Message-ID: <DUB102-W10AD6C8E03D7DE3CE9D0B184890@phx.gbl> (raw)
In-Reply-To: <83ipam5psf.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 4732 bytes --]


Hello,

> Date: Sun, 7 Oct 2012 16:18:24 +0200
> From: eliz@gnu.org
> Subject: Re: [cedet-semantic] Latest CEDET on BZR does not compile with emacs	24.1
> To: vincent.b.1@hotmail.fr
> CC: deng@randomsample.de; cedet-semantic@lists.sourceforge.net; emacs-devel@gnu.org
> 
> > From: Vincent Belaïche <vincent.b.1@hotmail.fr>
> > CC: "cedet-semantic@lists.sourceforge.net"
> > 	<cedet-semantic@lists.sourceforge.net>, "deng@randomsample.de"
> > 	<deng@randomsample.de>, emacs-devel <emacs-devel@gnu.org>
> > Date: Sun, 7 Oct 2012 13:49:19 +0200
> > 
> > Here is what I get with 
> > 
> > mingw32-make.exe bootstrap MAKE=mingw32-make.exe
> > 
> > , in a cmd.exe console, but with still MSYS in my path (for rm and such likes):
> 
> Keeping MSYS on PATH is a mistake, see below.
> 
> > mkdir "oo-spd"
> > mkdir "oo-spd/i386"
> > echo oo-spd/i386 > stamp_BLD
> > gcc -I ../src -I. -c -gdwarf-2 -g3  -mtune=pentium4 -O2    -I c:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/include -I c:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/src  -o oo-spd/i386/make-docfile.o make-docfile.c
> > In file included from ../src/config.h:1673:0,
> >                  from make-docfile.c:37:
> > ../src/conf_post.h:32:27: fatal error: ms-w32.h: No such file or directory
> > 
> > 
> > 
> > For some reason -I ../nt/inc is dropped, well I could just add --cflags -I   --cflags ../nt/inc  the call of configure.bat. 
> 
> It's MSYS again, no doubt.  Remove MSYS from PATH, and use non-MSYS rm
> and cp.
> 
> 

I just did that, I installed gnuwin32 into c:/msys/1.0/gnuwin32 (well it may seem a stange location, but I have mingw32 also under msys/1.0, so why not), and I am still getting this:
rm stamp_BLD
mingw32-make.exe[1]: Leaving directory `C:/Programme/GNU/installation/emacs-install/emacs/trunk/lib-src'
mingw32-make.exe   -C ../lib-src make-docfile
mingw32-make.exe[1]: Entering directory `C:/Programme/GNU/installation/emacs-install/emacs/trunk/lib-src'
mkdir "oo-spd"
mkdir "oo-spd/i386"
echo oo-spd/i386 > stamp_BLD
gcc -I ../src -I. -c -gdwarf-2 -g3  -mtune=pentium4 -O2    -I C:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/include -I C:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/src  -o oo-spd/i386/make-docfile.o make-docfile.c
In file included from ../src/config.h:1673:0,
                 from make-docfile.c:37:
../src/conf_post.h:32:27: fatal error: ms-w32.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [oo-spd/i386/make-docfile.o] Error 1

Id est, for some mysterious reason -I ../nt/inc again disappeared. The batch file that makes this is the following (with some simplification):
SET PATH=C:\Programme\GNU\installation\emacs-install\libXpm-3.5.7\src;C:\msys\1.0\mingw\bin;C:\msys\1.0\gnuwin32\bin;C:\WINDOWS\system32;C:\WINDOWS
CALL configure.bat --prefix=C:\Programme\GNU\Emacs --without-jpeg --without-tiff --without-gif --without-png  --distfiles C:\Programme\GNU\installation\emacs-install\libXpm-3.5.7\src --cflags -I --cflags "C:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/include" --cflags -I --cflags "C:/Programme/GNU/installation/emacs-install/libXpm-3.5.7/src"
mingw32-make.exe bootstrap MAKE=mingw32-make.exe


Based on your feedback that making EMACS an MSYS application would be ok only if one would not mind a second emacs just to byte compile a few file, and that GNUWin32's rm & cp are preferable to MSYS's ones, I am now realizing that I was in complete misconception about what MSYS is. I thought that MSYS applications could behave like native Win32 applications when launched outside MSYS. But, best is to quote what MSYS's itself says c.f. http://www.mingw.org/wiki/MSYS 
Building for MSYS

To build an application for MSYS (as opposed to using MSYS), users will need to install the MSYS Toolchain. It contains headers and libraries for MSYS along with a patched version of GCC and Binutils. See HOWTO Create an MSYS Build Environment.

It should never be treated as a targeted platform. It is meant only as a means to update the MSYS components or the MSYS runtime DLL itself. Resulting programs will only run under MSYS. 
Actually my misconception stems from this I used MSYS applications quite often outside MSYS and everything worked quite well...
Anyway, thank you very much for your patience.
I am now starting to wonder whether all my troubles aren't coming from this that I may have mistakenly some components of my supposedly MingW32 toolchain patched to build for MSYS, rather than to use MSYS. How can one detect that?...
VBR,    Vincent.
PS: for completeness, I attached a tarzip with the complete compile.log and the batch script
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 5731 bytes --]

[-- Attachment #2: compile.tgz --]
[-- Type: application/x-gzip, Size: 2518 bytes --]

  reply	other threads:[~2012-10-07 16:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <80627pfvx8.fsf@gmail.com>
     [not found] ` <DUB102-W64E66C3E35B19D545EE372849D0@phx.gbl>
     [not found]   ` <87k3vhesof.fsf@randomsample.de>
     [not found]     ` <DUB102-W11A887FEC4D1B295EE9797849C0@phx.gbl>
     [not found]       ` <877grgdmcd.fsf@randomsample.de>
     [not found]         ` <DUB102-W3A224ABBF13767707549184830@phx.gbl>
     [not found]           ` <87mx0bcioh.fsf@randomsample.de>
     [not found]             ` <DUB102-W9B28CE0238E27638C391684800@phx.gbl>
     [not found]               ` <87sj9yb4kw.fsf@randomsample.de>
2012-10-02 20:31                 ` Latest CEDET on BZR does not compile with emacs 24.1 Vincent Belaïche
2012-10-02 21:10                   ` [cedet-semantic] " Eli Zaretskii
2012-10-03 20:02                     ` Vincent Belaïche
2012-10-03 20:28                       ` Eli Zaretskii
2012-10-05  5:18                         ` Vincent Belaïche
2012-10-05  8:10                           ` [cedet-semantic] " Eli Zaretskii
2012-10-06 21:41                             ` Vincent Belaïche
2012-10-07  7:06                               ` Eli Zaretskii
2012-10-07 12:29                                 ` Vincent Belaïche
2012-10-07 14:28                                   ` Eli Zaretskii
2012-10-07  7:52                         ` Vincent Belaïche
2012-10-07  8:42                           ` Eli Zaretskii
2012-10-07 11:49                             ` Vincent Belaïche
2012-10-07 14:18                               ` Eli Zaretskii
2012-10-07 16:37                                 ` Vincent Belaïche [this message]
2012-10-07 17:07                                   ` Eli Zaretskii
2012-10-07 19:36                                     ` Vincent Belaïche
2012-10-06 10:25                       ` David Engster
2012-10-06 19:47                         ` Vincent Belaïche
2012-10-06 19:56                           ` David Engster
2012-10-06 20:11                             ` Vincent Belaïche
2012-10-02 21:57                   ` David Engster

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

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

  git send-email \
    --in-reply-to=DUB102-W10AD6C8E03D7DE3CE9D0B184890@phx.gbl \
    --to=vincent.b.1@hotmail.fr \
    --cc=cedet-semantic@lists.sourceforge.net \
    --cc=deng@randomsample.de \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.