unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compiling Emacs 23.1.92 on Windows fails
@ 2010-02-20 22:46 Christoph
  2010-02-21  4:17 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Christoph @ 2010-02-20 22:46 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1627 bytes --]

Hi,

I have been trying to compile Emacs Pretest 23.1.92 on Windows 7 
(cygwin, MinGW, GnuWin32) but haven't had any luck.

I run

configure.bat --no-debug --with-gcc --without-png -cflags 
-IC:\Progra~2\GnuWin32\include

then

make bootstrap

and everything runs fine until I get this error:

[...]
make[2]: Leaving directory `/cygdrive/d/devel/emacs/emacs-23.1.92/lisp'
cp loaddefs.el-SH /cygdrive/d/devel/emacs/emacs-23.1.92/lisp/loaddefs.el
rm loaddefs.el-SH
Directories: . calc calendar emacs-lisp emulation erc eshell gnus 
international
language mail mh-e net nxml org play progmodes textmodes url cedet 
cedet/ede ced
et/semantic cedet/srecode cedet/semantic/analyze cedet/semantic/bovine 
cedet/sem
antic/decorate cedet/semantic/symref cedet/semantic/wisent
"./../bin/emacs.exe" -batch --no-init-file --no-site-file --multibyte -l 
autoload \
                 --eval '(setq find-file-hook nil 
find-file-suppress-same-file-wa
rnings t)' \
                 -f w32-batch-update-autoloads 
"/cygdrive/d/devel/emacs/emacs-23.
1.92/lisp/loaddefs.el" make . calc calendar emacs-lisp emulation erc 
eshell gnus
  international language mail mh-e net nxml org play progmodes textmodes 
url cede
t cedet/ede cedet/semantic cedet/srecode cedet/semantic/analyze 
cedet/semantic/b
ovine cedet/semantic/decorate cedet/semantic/symref cedet/semantic/wisent
Warning: Could not find simple.el nor simple.elc
Cannot open load file: autoload
make[1]: *** [autoloads] Error 127
make[1]: Leaving directory `/cygdrive/d/devel/emacs/emacs-23.1.92/lisp'
make: *** [bootstrap-gmake] Error 2

Any idea what is causing this?

Thanks,
Christoph

[-- Attachment #2: Type: text/html, Size: 2201 bytes --]

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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-20 22:46 Compiling Emacs 23.1.92 on Windows fails Christoph
@ 2010-02-21  4:17 ` Eli Zaretskii
       [not found]   ` <4B80B4B3.3070609@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2010-02-21  4:17 UTC (permalink / raw)
  To: Christoph; +Cc: emacs-devel

> Date: Sat, 20 Feb 2010 15:46:37 -0700
> From: Christoph <cschol2112@googlemail.com>
> 
> I have been trying to compile Emacs Pretest 23.1.92 on Windows 7 
> (cygwin, MinGW, GnuWin32) but haven't had any luck.
> 
> I run
> 
> configure.bat --no-debug --with-gcc --without-png -cflags 
> -IC:\Progra~2\GnuWin32\include
> 
> then
> 
> make bootstrap

If you are building the pretest, you don't need to bootstrap, just
type "make" after the configure step.

If that doesn't help, I suspect that your combination of Cygwin and
MinGW tools does not work to build the native port of Emacs (see
nt/INSTALL for some combinations that are known to work).  E.g., it
looks like your Make is a Cygwin port, which is known to fail.  It is
best to use only MinGW tools for the build.




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

* Re: Compiling Emacs 23.1.92 on Windows fails
       [not found]   ` <4B80B4B3.3070609@gmail.com>
@ 2010-02-23 17:38     ` Stefan Monnier
  2010-02-23 18:27       ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2010-02-23 17:38 UTC (permalink / raw)
  To: Eli Zaretskii, emacs-devel; +Cc: Christoph

> Yes, that turned out to be the problem.
> Using mingw32-make instead of cygwin's make worked and built successfully.

Thanks.  Eli, would it be possible to detect the use of cygwin's make
and output a warning in that case?


        Stefan


> On 2/20/2010 9:17 PM, Eli Zaretskii wrote:
>>> Date: Sat, 20 Feb 2010 15:46:37 -0700
>>> From: Christoph<cschol2112@googlemail.com>
>>> 
>>> I have been trying to compile Emacs Pretest 23.1.92 on Windows 7
>>> (cygwin, MinGW, GnuWin32) but haven't had any luck.
>>> 
>>> I run
>>> 
>>> configure.bat --no-debug --with-gcc --without-png -cflags
>>> -IC:\Progra~2\GnuWin32\include
>>> 
>>> then
>>> 
>>> make bootstrap
>>> 
>> If you are building the pretest, you don't need to bootstrap, just
>> type "make" after the configure step.
>> 
>> If that doesn't help, I suspect that your combination of Cygwin and
>> MinGW tools does not work to build the native port of Emacs (see
>> nt/INSTALL for some combinations that are known to work).  E.g., it
>> looks like your Make is a Cygwin port, which is known to fail.  It is
>> best to use only MinGW tools for the build.
>> 






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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-23 17:38     ` Stefan Monnier
@ 2010-02-23 18:27       ` Eli Zaretskii
  2010-02-23 19:36         ` Óscar Fuentes
  2010-02-24 14:56         ` Sean Sieger
  0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2010-02-23 18:27 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cschol2112, emacs-devel

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: Christoph <cschol2112@googlemail.com>
> Date: Tue, 23 Feb 2010 12:38:35 -0500
> 
> > Yes, that turned out to be the problem.
> > Using mingw32-make instead of cygwin's make worked and built successfully.
> 
> Thanks.  Eli, would it be possible to detect the use of cygwin's make
> and output a warning in that case?

If someone tells what does the Cygwin Make print under --version, and
if there's something Cygwin-specific there, then yes, we could test
that in nt/configure.bat.

Failing that, w32proc.c:w32_executable_type has code to detect Cygwin
executables by scanning their DLL import table for cygwin.dll.  We
could start the build by compiling a simple program to diagnose
make.exe using that method.  Seems a bit gross, though.




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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-23 18:27       ` Eli Zaretskii
@ 2010-02-23 19:36         ` Óscar Fuentes
  2010-02-24 14:56         ` Sean Sieger
  1 sibling, 0 replies; 10+ messages in thread
From: Óscar Fuentes @ 2010-02-23 19:36 UTC (permalink / raw)
  To: emacs-devel; +Cc: Eli Zaretskii

Eli Zaretskii <eliz@gnu.org> writes:

>> Thanks.  Eli, would it be possible to detect the use of cygwin's make
>> and output a warning in that case?
>
> If someone tells what does the Cygwin Make print under --version, and
> if there's something Cygwin-specific there, then yes, we could test
> that in nt/configure.bat.

<<<<<<<<<<<<<<<<
d:/ $ c:/cygwin/bin/make.exe --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-cygwin
>>>>>>>>>>>>>>>>>

My cygwin install is fairly new. I'm not sure if the last line is there
for older versions.





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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-23 18:27       ` Eli Zaretskii
  2010-02-23 19:36         ` Óscar Fuentes
@ 2010-02-24 14:56         ` Sean Sieger
  2010-02-24 15:16           ` Sean Sieger
  1 sibling, 1 reply; 10+ messages in thread
From: Sean Sieger @ 2010-02-24 14:56 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

    > From: Stefan Monnier <monnier@IRO.UMontreal.CA>
    > Cc: Christoph <cschol2112@googlemail.com>
    > Date: Tue, 23 Feb 2010 12:38:35 -0500
    > 
    > > Yes, that turned out to be the problem.
    > > Using mingw32-make instead of cygwin's make worked and built successfully.
    > 
    > Thanks.  Eli, would it be possible to detect the use of cygwin's make
    > and output a warning in that case?

    If someone tells what does the Cygwin Make print under --version, and
    if there's something Cygwin-specific there, then yes, we could test
    that in nt/configure.bat.

    Failing that, w32proc.c:w32_executable_type has code to detect Cygwin
    executables by scanning their DLL import table for cygwin.dll.  We
    could start the build by compiling a simple program to diagnose
    make.exe using that method.  Seems a bit gross, though.

I don't know if this is related, but here is the contents of config.log
when I did,

cmd /c configure.bat --without-png --without-jpeg --without-tiff
--without-gif --cflags -IC:\libXpm-3.5.8\src

gcc -c junk.c 
junk.c:1:29: error: cygwin/version.h: No such file or directory
The failed program was: 
#include "cygwin/version.h" 
main(){} 
gcc  -c junk.c 
gcc -c -O2 -mtune=pentium4 junk.c 
GCC supports -mtune=pentium4 
gcc -c -gdwarf-2 -g3 junk.c 
GCC supports DWARF-2 
Emacs successfully configured. 

'Cept, still no support for the tool-bar icons.

I sure would appreciate any feedback about the configure syntax above.





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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-24 14:56         ` Sean Sieger
@ 2010-02-24 15:16           ` Sean Sieger
  2010-02-24 18:37             ` Eli Zaretskii
  2010-02-25  2:55             ` Christoph
  0 siblings, 2 replies; 10+ messages in thread
From: Sean Sieger @ 2010-02-24 15:16 UTC (permalink / raw)
  To: emacs-devel

Sean Sieger <sean.sieger@gmail.com> writes:

    I don't know if this is related, but here is the contents of config.log
    when I did,

    cmd /c configure.bat --without-png --without-jpeg --without-tiff
    --without-gif --cflags -IC:\libXpm-3.5.8\src

Unrelated because I was using MinGW, solely, for configuration and
build.  Sorry.

    gcc -c junk.c 
    junk.c:1:29: error: cygwin/version.h: No such file or directory
    The failed program was: 
    #include "cygwin/version.h" 
    main(){} 
    gcc  -c junk.c 
    gcc -c -O2 -mtune=pentium4 junk.c 
    GCC supports -mtune=pentium4 
    gcc -c -gdwarf-2 -g3 junk.c 
    GCC supports DWARF-2 
    Emacs successfully configured. 

    'Cept, still no support for the tool-bar icons.

    I sure would appreciate any feedback about the configure syntax above.





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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-24 15:16           ` Sean Sieger
@ 2010-02-24 18:37             ` Eli Zaretskii
  2010-02-25  2:15               ` Sean Sieger
  2010-02-25  2:55             ` Christoph
  1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2010-02-24 18:37 UTC (permalink / raw)
  To: Sean Sieger; +Cc: emacs-devel

> From: Sean Sieger <sean.sieger@gmail.com>
> Date: Wed, 24 Feb 2010 10:16:59 -0500
> 
> Sean Sieger <sean.sieger@gmail.com> writes:
> 
>     I don't know if this is related, but here is the contents of config.log
>     when I did,
> 
>     cmd /c configure.bat --without-png --without-jpeg --without-tiff
>     --without-gif --cflags -IC:\libXpm-3.5.8\src
> 
> Unrelated because I was using MinGW, solely, for configuration and
> build.  Sorry.
> 
>     gcc -c junk.c 
>     junk.c:1:29: error: cygwin/version.h: No such file or directory
>     The failed program was: 
>     #include "cygwin/version.h" 
>     main(){} 
>     gcc  -c junk.c 
>     gcc -c -O2 -mtune=pentium4 junk.c 
>     GCC supports -mtune=pentium4 
>     gcc -c -gdwarf-2 -g3 junk.c 
>     GCC supports DWARF-2 
>     Emacs successfully configured. 
> 
>     'Cept, still no support for the tool-bar icons.
> 
>     I sure would appreciate any feedback about the configure syntax above.

Take a look at the value of the variable image-library-alist.  Do you
have one of the libraries named there which Emacs can use for XPM
image type, and does that library live somewhere on your PATH, or in
the same directory where you have emacs.exe?




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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-24 18:37             ` Eli Zaretskii
@ 2010-02-25  2:15               ` Sean Sieger
  0 siblings, 0 replies; 10+ messages in thread
From: Sean Sieger @ 2010-02-25  2:15 UTC (permalink / raw)
  To: emacs-devel

    Take a look at the value of the variable image-library-alist.  Do you
    have one of the libraries named there which Emacs can use for XPM
    image type, and does that library live somewhere on your PATH, or in
    the same directory where you have emacs.exe?

Yes, in both cases.  Sorry for the delay in the reply.





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

* Re: Compiling Emacs 23.1.92 on Windows fails
  2010-02-24 15:16           ` Sean Sieger
  2010-02-24 18:37             ` Eli Zaretskii
@ 2010-02-25  2:55             ` Christoph
  1 sibling, 0 replies; 10+ messages in thread
From: Christoph @ 2010-02-25  2:55 UTC (permalink / raw)
  To: emacs-devel

On 2/24/2010 8:16 AM, Sean Sieger wrote:
> Sean Sieger<sean.sieger@gmail.com>  writes:
>
>      I don't know if this is related, but here is the contents of config.log
>      when I did,
>
>      cmd /c configure.bat --without-png --without-jpeg --without-tiff
>      --without-gif --cflags -IC:\libXpm-3.5.8\src
>    
I think you are missing something like this

--cflags -IC:\libXpm-3.5.8\include

to include the xpm.h header file.

The src directory just includes the simx.h but to compile Xpm support 
you need the xpm.h, right?

Christoph




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

end of thread, other threads:[~2010-02-25  2:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 22:46 Compiling Emacs 23.1.92 on Windows fails Christoph
2010-02-21  4:17 ` Eli Zaretskii
     [not found]   ` <4B80B4B3.3070609@gmail.com>
2010-02-23 17:38     ` Stefan Monnier
2010-02-23 18:27       ` Eli Zaretskii
2010-02-23 19:36         ` Óscar Fuentes
2010-02-24 14:56         ` Sean Sieger
2010-02-24 15:16           ` Sean Sieger
2010-02-24 18:37             ` Eli Zaretskii
2010-02-25  2:15               ` Sean Sieger
2010-02-25  2:55             ` Christoph

Code repositories for project(s) associated with this public inbox

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

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).