unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Newbie: Compiling Emacs 21.2 with MinGW
@ 2003-09-02 12:06 Kai Grossjohann
  2003-09-02 13:41 ` Matthias Rempe
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Kai Grossjohann @ 2003-09-02 12:06 UTC (permalink / raw)


I'm trying to compile Emacs 21.2 (it's the most recent tarball I could
find,
emacs-21.3.tar.gz seems to be still down) with MinGW.  I have no
experience
whatsoever using Windows and MinGW...

Anyhow, I installed MinGW and MSYS.  I added c:\mingw\bin and
c:\msys\1.0\bin to %PATH%.  Then I went to the emacs-21.2/nt directory
and invoked:

    configure --prefix=c:\programme\emacs-21.2

It told me to run gmake.  I don't have gmake.  So I ran make instead,
which
gave an error.  Running make again gives the following output:

E:\src\emacs\emacs-21.2\nt>make
[Please ignore a syntax error on the next line - it is intentional]
/bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"'
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
Using /bin/sh.exe as shell.
make - --unix -C ../lib-src all
[Please ignore a syntax error on the next line - it is intentional]
/bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"'
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make[1]: Entering directory `/e/src/emacs/emacs-21.2/lib-src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/e/src/emacs/emacs-21.2/lib-src'
make - --unix -C ../src all
[Please ignore a syntax error on the next line - it is intentional]
/bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"'
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make[1]: Entering directory `/e/src/emacs/emacs-21.2/src'
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -g 
-mcpu=i686
-O2  -Di386 -D_CRTAPI1=_cdecl   -Demacs=1 -DWINDOWSNT -DDOS_NT
-DHAVE_CONFIG_H -
I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -o
oo-spd/i386/w32fns.o w32
fns.c
w32fns.c: In function `w32_to_all_x_charsets':
w32fns.c:6142: warning: return makes integer from pointer without a
cast
w32fns.c: In function `Ffile_system_info':
w32fns.c:13600: warning: passing arg 2 of pointer to function from
incompatible
pointer type
w32fns.c:13600: warning: passing arg 3 of pointer to function from
incompatible
pointer type
w32fns.c:13600: warning: passing arg 4 of pointer to function from
incompatible
pointer type
w32fns.c:13973:1: directives may not be used inside a macro argument
w32fns.c:13963:16: unterminated argument list invoking macro
"DEFVAR_LISP"
w32fns.c: In function `syms_of_w32fns':
w32fns.c:13974: `DEFVAR_LISP' undeclared (first use in this function)
w32fns.c:13974: (Each undeclared identifier is reported only once
w32fns.c:13974: for each function it appears in.)
w32fns.c:13974: parse error before string constant
make[1]: *** [oo-spd/i386/w32fns.o] Error 1
make[1]: Leaving directory `/e/src/emacs/emacs-21.2/src'
make: *** [all-other-dirs-gmake] Error 2

E:\src\emacs\emacs-21.2\nt>

So, what do I do now?

Is it fixed in 21.3?  Then where can I get that?

Kai

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
@ 2003-09-02 13:41 ` Matthias Rempe
  2003-09-04  9:46   ` Kai Grossjohann
  2003-09-02 14:13 ` Peter Lee
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Matthias Rempe @ 2003-09-02 13:41 UTC (permalink / raw)


[compiling Emacs-21.3 with MingW]

Kai, if you would like to use a precompliled version of Emacs on
Windows, take a look at

<URL:http://ftp.codefactory.se/pub/gnu/windows/emacs/21.3/>

or

<URL: http://www.crasseux.com/emacs/>
-- 
Matthias

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
  2003-09-02 13:41 ` Matthias Rempe
@ 2003-09-02 14:13 ` Peter Lee
  2003-09-02 14:37 ` lawrence mitchell
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Peter Lee @ 2003-09-02 14:13 UTC (permalink / raw)



    Kai> Anyhow, I installed MinGW and MSYS.  I added c:\mingw\bin and
    Kai> c:\msys\1.0\bin to %PATH%.  Then I went to the emacs-21.2/nt
    Kai> directory and invoked:

    Kai>     configure --prefix=c:\programme\emacs-21.2

    Kai> It told me to run gmake.  I don't have gmake.  So I ran make
    Kai> instead, which gave an error.  Running make again gives the
    Kai> following output:

I've never been able to successfully compile Emacs with MinGW or
cygwin... even with 21.3.  With MSVC there are issues such as
having to change all the *.tit files under leim dir to be unix coding
system, but once that's done I didn't have any other issues.

I seem to recall that if you have both MinGW and cygwin installed on
the same box to make sure the MinGW/bin dir is before cygwin/bin in
the path.  Maybe do 'which make' to ensure you are calling the right
make.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
  2003-09-02 13:41 ` Matthias Rempe
  2003-09-02 14:13 ` Peter Lee
@ 2003-09-02 14:37 ` lawrence mitchell
  2003-09-02 20:28   ` Jason Rumney
  2003-09-02 20:26 ` Jason Rumney
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: lawrence mitchell @ 2003-09-02 14:37 UTC (permalink / raw)


Kai Grossjohann wrote:

> I'm trying to compile Emacs 21.2 (it's the most recent tarball I could
> find,
> emacs-21.3.tar.gz seems to be still down) with MinGW.  I have no
> experience
> whatsoever using Windows and MinGW...

> Anyhow, I installed MinGW and MSYS.  I added c:\mingw\bin and
> c:\msys\1.0\bin to %PATH%.  Then I went to the emacs-21.2/nt directory
> and invoked:

I've never compiled a release tarball for Emacs with mingw,
however, I can offer my experiences for compiling the CVS
version.  I think the one problem you might find (and that I
certainly ran into a few times) is the problem of end-of-lines in
files needing to be unix rather than dos.  With the wincvs port
of cvs, this involved checking out files using the --lf option.
If you unpack tarballs with winzip, I think there's an option to
"preserve end of line encoding" or something similar.

Other than that, none of the steps you went through seemed
unreasonable ;).

[...]


-- 
lawrence mitchell <wence@gmx.li>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
                   ` (2 preceding siblings ...)
  2003-09-02 14:37 ` lawrence mitchell
@ 2003-09-02 20:26 ` Jason Rumney
  2003-09-03 13:02   ` Vladimir Grul
  2003-09-03  7:19 ` Vladimir Grul
  2003-09-03 11:46 ` Eli Zaretskii
  5 siblings, 1 reply; 11+ messages in thread
From: Jason Rumney @ 2003-09-02 20:26 UTC (permalink / raw)


Kai.Grossjohann@gmx.net (Kai Grossjohann) writes:

> I'm trying to compile Emacs 21.2 (it's the most recent tarball I could
> find,
> emacs-21.3.tar.gz seems to be still down) with MinGW.  I have no
> experience
> whatsoever using Windows and MinGW...
> 
> Anyhow, I installed MinGW and MSYS.  I added c:\mingw\bin and
> c:\msys\1.0\bin to %PATH%.  Then I went to the emacs-21.2/nt directory
> and invoked:
> 
>     configure --prefix=c:\programme\emacs-21.2

Windows batch files cannot (easily) understand --option=value, so you
need to use "configure --prefix c:\programme\emacs-21.2". If you are
using sh.exe (I am not sure it works, only cmd.exe and Cygwin
bash.exe have been tested), then you will need to use forward slashes
and include the .bat extension I think.

> It told me to run gmake.  I don't have gmake.  So I ran make instead,
> which gave an error.  Running make again gives the following output:
> 
> E:\src\emacs\emacs-21.2\nt>make
> [Please ignore a syntax error on the next line - it is intentional]
> /bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"'
> /bin/sh.exe: -c: line 2: syntax error: unexpected end of file

It looks like you are using sh.exe. As I said, this is untested, so
maybe you should try starting from scratch using the native Windows
shell. If that does not work, Cygwin bash should (that is what I use
when building with gcc).

> w32fns.c:13973:1: directives may not be used inside a macro argument
> w32fns.c:13963:16: unterminated argument list invoking macro
> "DEFVAR_LISP"

This is suspicious. Can you look at line 13963 of that file and see
what it says?

> w32fns.c: In function `syms_of_w32fns':
> w32fns.c:13974: `DEFVAR_LISP' undeclared (first use in this function)
> w32fns.c:13974: (Each undeclared identifier is reported only once
> w32fns.c:13974: for each function it appears in.)
> w32fns.c:13974: parse error before string constant
> make[1]: *** [oo-spd/i386/w32fns.o] Error 1
> make[1]: Leaving directory `/e/src/emacs/emacs-21.2/src'
> make: *** [all-other-dirs-gmake] Error 2
> 
> E:\src\emacs\emacs-21.2\nt>
> 
> So, what do I do now?
> 
> Is it fixed in 21.3?

Unlikely. There were no Windows specific fixes in 21.3 that I know
of.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 14:37 ` lawrence mitchell
@ 2003-09-02 20:28   ` Jason Rumney
  0 siblings, 0 replies; 11+ messages in thread
From: Jason Rumney @ 2003-09-02 20:28 UTC (permalink / raw)


lawrence mitchell <wence@gmx.li> writes:

> I've never compiled a release tarball for Emacs with mingw,
> however, I can offer my experiences for compiling the CVS
> version.  I think the one problem you might find (and that I
> certainly ran into a few times) is the problem of end-of-lines in
> files needing to be unix rather than dos.

This only affects CVS users. The reason the line-ends appear broken
in CVS to Windows users is so they work in the released tar file
(which is built on a GNU machine).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
                   ` (3 preceding siblings ...)
  2003-09-02 20:26 ` Jason Rumney
@ 2003-09-03  7:19 ` Vladimir Grul
  2003-09-03 11:46 ` Eli Zaretskii
  5 siblings, 0 replies; 11+ messages in thread
From: Vladimir Grul @ 2003-09-03  7:19 UTC (permalink / raw)


I've just successfully compiled Emacs 21.3 on WindowsXP with MinGW and
MSYS bins in cmd shell path.

If you want, I can send you emacs-21.3.tar.gz (and leim-21.3.tar.gz).

Vladimir

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
                   ` (4 preceding siblings ...)
  2003-09-03  7:19 ` Vladimir Grul
@ 2003-09-03 11:46 ` Eli Zaretskii
  5 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2003-09-03 11:46 UTC (permalink / raw)


> From: Kai.Grossjohann@gmx.net (Kai Grossjohann)
> Newsgroups: gnu.emacs.help
> Date: 2 Sep 2003 05:06:55 -0700
> 
> Anyhow, I installed MinGW and MSYS.  I added c:\mingw\bin and
> c:\msys\1.0\bin to %PATH%.  Then I went to the emacs-21.2/nt directory
> and invoked:
> 
>     configure --prefix=c:\programme\emacs-21.2
> 
> It told me to run gmake.  I don't have gmake.  So I ran make instead,
> which
> gave an error.  Running make again gives the following output:
> 
> E:\src\emacs\emacs-21.2\nt>make
> [Please ignore a syntax error on the next line - it is intentional]
> /bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"'
> /bin/sh.exe: -c: line 2: syntax error: unexpected end of file
> Using /bin/sh.exe as shell.
> make - --unix -C ../lib-src all

Does this mean you have a Cygwin port of Bash (identified above as
"/bin/sh") and a Cygwin port of GNU Make?  If so, please make sure
you are not using a version of Make that is marked as "fails" in the
nt/INSTALL file.

In general, unless you already did, please read the file nt/INSTALL
in its entirety, especially the Troubleshooting section, and see if
something there applies to your installation.

Finally, what version of GCC do you have?

> w32fns.c:13973:1: directives may not be used inside a macro argument
> w32fns.c:13963:16: unterminated argument list invoking macro
> "DEFVAR_LISP"
> w32fns.c: In function `syms_of_w32fns':
> w32fns.c:13974: `DEFVAR_LISP' undeclared (first use in this function)
> w32fns.c:13974: (Each undeclared identifier is reported only once
> w32fns.c:13974: for each function it appears in.)
> w32fns.c:13974: parse error before string constant

Please show the offending lines cited by the compiler, and the
definition of DEFVAR_LISP (on lisp.h, IIRC) in that version of Emacs
(sorry, I don't have that version handy to look at it).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 20:26 ` Jason Rumney
@ 2003-09-03 13:02   ` Vladimir Grul
  2003-09-03 21:11     ` Jason Rumney
  0 siblings, 1 reply; 11+ messages in thread
From: Vladimir Grul @ 2003-09-03 13:02 UTC (permalink / raw)


jasonr (Jason Rumney) @  f2s.com writes:

> > w32fns.c: In function `syms_of_w32fns':
> > w32fns.c:13974: `DEFVAR_LISP' undeclared (first use in this function)
> > w32fns.c:13974: (Each undeclared identifier is reported only once
> > w32fns.c:13974: for each function it appears in.)
> > w32fns.c:13974: parse error before string constant
> > make[1]: *** [oo-spd/i386/w32fns.o] Error 1
> > make[1]: Leaving directory `/e/src/emacs/emacs-21.2/src'
> > make: *** [all-other-dirs-gmake] Error 2
> > 
> > E:\src\emacs\emacs-21.2\nt>
> > 
> > So, what do I do now?
> > 
> > Is it fixed in 21.3?
> 
> Unlikely. There were no Windows specific fixes in 21.3 that I know
> of.

With the same steps as Kai I have the same error with version 21.2. But the
version 21.3 compiles without problems.

Vladimir

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-03 13:02   ` Vladimir Grul
@ 2003-09-03 21:11     ` Jason Rumney
  0 siblings, 0 replies; 11+ messages in thread
From: Jason Rumney @ 2003-09-03 21:11 UTC (permalink / raw)


Vladimir Grul <vgrul@volny.cz> writes:

> > Unlikely. There were no Windows specific fixes in 21.3 that I know
> > of.
> 
> With the same steps as Kai I have the same error with version 21.2. But the
> version 21.3 compiles without problems.

Maybe there were some Windows specific fixes I wasn't aware of then
:-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Newbie: Compiling Emacs 21.2 with MinGW
  2003-09-02 13:41 ` Matthias Rempe
@ 2003-09-04  9:46   ` Kai Grossjohann
  0 siblings, 0 replies; 11+ messages in thread
From: Kai Grossjohann @ 2003-09-04  9:46 UTC (permalink / raw)


Matthias Rempe <mhrempe@web.de> wrote in message news:<uy8x7nw88.fsf@rempe-online.de>...
> [compiling Emacs-21.3 with MingW]
> 
> Kai, if you would like to use a precompliled version of Emacs on
> Windows, take a look at
> 
> <URL:http://ftp.codefactory.se/pub/gnu/windows/emacs/21.3/>

Really nice!  I downloaded this, installed it, and now it works.

Thanks a lot.

Kai

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-09-04  9:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-02 12:06 Newbie: Compiling Emacs 21.2 with MinGW Kai Grossjohann
2003-09-02 13:41 ` Matthias Rempe
2003-09-04  9:46   ` Kai Grossjohann
2003-09-02 14:13 ` Peter Lee
2003-09-02 14:37 ` lawrence mitchell
2003-09-02 20:28   ` Jason Rumney
2003-09-02 20:26 ` Jason Rumney
2003-09-03 13:02   ` Vladimir Grul
2003-09-03 21:11     ` Jason Rumney
2003-09-03  7:19 ` Vladimir Grul
2003-09-03 11:46 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).