unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building fails on Win32
@ 2008-04-11 11:30 AriT93
  2008-04-11 14:38 ` Eli Zaretskii
  2008-04-11 14:46 ` Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: AriT93 @ 2008-04-11 11:30 UTC (permalink / raw)
  To: emacs-devel

Good Morning,

     For the last 2 days I have been getting the following error when building
     from trunk:

,----
| gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -gstabs+ -g3 -m
| no-cygwin -mtune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl  -IC:\gnutools\Free_libs
| \include -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -
| DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -DUSE_FONT_BACKEND=1 -DPURESIZE=5000000 -o oo-spd/
| i386/emacs.o emacs.c
| In file included from ./s/ms-w32.h:461,
|                  from ./config.h:301,
|                  from emacs.c:24:
| ../nt/inc/sys/stat.h:55: error: syntax error before "fstat"
| ../nt/inc/sys/stat.h:55: warning: data definition has no type or storage class
| ../nt/inc/sys/stat.h:56: error: syntax error before "sys_chmod"
| ../nt/inc/sys/stat.h:56: warning: data definition has no type or storage class
| ../nt/inc/sys/stat.h:57: error: syntax error before "stat"
| ../nt/inc/sys/stat.h:57: warning: data definition has no type or storage class
`----

I see that stat.h was just added on 4/4 is there a new dependency that I need to
get?

This is on XP with a fresh checkout using tools from GnuWin32.  Please let me
know if there is any other information that would be needed.
-- 

enjoy every sandwich

           -- W. Zevon





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

* Re: Building fails on Win32
  2008-04-11 11:30 Building fails on Win32 AriT93
@ 2008-04-11 14:38 ` Eli Zaretskii
       [not found]   ` <18431.43379.66028.795860@arit93.ariserve.dynup.net>
  2008-04-11 14:46 ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-11 14:38 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> From: AriT93 <arit93@yahoo.com>
> Date: Fri, 11 Apr 2008 06:30:27 -0500
> 
>      For the last 2 days I have been getting the following error when building
>      from trunk:
> 
> ,----
> | gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -gstabs+ -g3 -m
> | no-cygwin -mtune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl  -IC:\gnutools\Free_libs
> | \include -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -
> | DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -DUSE_FONT_BACKEND=1 -DPURESIZE=5000000 -o oo-spd/
> | i386/emacs.o emacs.c
> | In file included from ./s/ms-w32.h:461,
> |                  from ./config.h:301,
> |                  from emacs.c:24:
> | ../nt/inc/sys/stat.h:55: error: syntax error before "fstat"
> | ../nt/inc/sys/stat.h:55: warning: data definition has no type or storage class
> | ../nt/inc/sys/stat.h:56: error: syntax error before "sys_chmod"
> | ../nt/inc/sys/stat.h:56: warning: data definition has no type or storage class
> | ../nt/inc/sys/stat.h:57: error: syntax error before "stat"
> | ../nt/inc/sys/stat.h:57: warning: data definition has no type or storage class
> `----
> 
> I see that stat.h was just added on 4/4 is there a new dependency that I need to
> get?
> 
> This is on XP with a fresh checkout using tools from GnuWin32.  Please let me
> know if there is any other information that would be needed.

Please post what GCC prints if you invoke it with "gcc --version", and
also the version of MinGW you have installed (you can find the version
at the end of the `_mingw.h' header file).

My crystal ball says that somehow either _CRTIMP or __cdecl are not
being defined, which is why the compiler barfs on these 3 lines.




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

* Re: Building fails on Win32
  2008-04-11 11:30 Building fails on Win32 AriT93
  2008-04-11 14:38 ` Eli Zaretskii
@ 2008-04-11 14:46 ` Eli Zaretskii
  1 sibling, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-11 14:46 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> From: AriT93 <arit93@yahoo.com>
> Date: Fri, 11 Apr 2008 06:30:27 -0500
> 
>      For the last 2 days I have been getting the following error when building
>      from trunk:

One more thing: please remove all the *.o files from the
src/oo-spd/i386 directory, so that they are recompiled, because the
new definition of `struct stat' is incompatible with the previous one,
which could cause all kinds of weird bugs.  (I don't think this is the
cause of the failure to compile, though.)




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

* Re: Building fails on Win32
       [not found]   ` <18431.43379.66028.795860@arit93.ariserve.dynup.net>
@ 2008-04-11 18:24     ` AriT93
  2008-04-11 19:24       ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: AriT93 @ 2008-04-11 18:24 UTC (permalink / raw)
  To: emacs-devel, Eli Zaretskii

AriT93 writes:
 > Eli Zaretskii writes:
 >  > > From: AriT93 <arit93@yahoo.com>
 >  > > Date: Fri, 11 Apr 2008 06:30:27 -0500
 >  > > 
 >  > >      For the last 2 days I have been getting the following error when building
 >  > >      from trunk:
 >  > > 
 >  > > ,----
 >  > > | gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -gstabs+ -g3 -m
 >  > > | no-cygwin -mtune=pentium4 -O2  -Di386 -D_CRTAPI1=_cdecl  -IC:\gnutools\Free_libs
 >  > > | \include -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -
 >  > > | DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -DUSE_FONT_BACKEND=1 -DPURESIZE=5000000 -o oo-spd/
 >  > > | i386/emacs.o emacs.c
 >  > > | In file included from ./s/ms-w32.h:461,
 >  > > |                  from ./config.h:301,
 >  > > |                  from emacs.c:24:
 >  > > | ../nt/inc/sys/stat.h:55: error: syntax error before "fstat"
 >  > > | ../nt/inc/sys/stat.h:55: warning: data definition has no type or storage class
 >  > > | ../nt/inc/sys/stat.h:56: error: syntax error before "sys_chmod"
 >  > > | ../nt/inc/sys/stat.h:56: warning: data definition has no type or storage class
 >  > > | ../nt/inc/sys/stat.h:57: error: syntax error before "stat"
 >  > > | ../nt/inc/sys/stat.h:57: warning: data definition has no type or storage class
 >  > > `----
 >  > > 
 >  > > I see that stat.h was just added on 4/4 is there a new dependency that I need to
 >  > > get?
 >  > > 
 >  > > This is on XP with a fresh checkout using tools from GnuWin32.  Please let me
 >  > > know if there is any other information that would be needed.
 >  > 
 >  > Please post what GCC prints if you invoke it with "gcc --version", and
 >  > also the version of MinGW you have installed (you can find the version
 >  > at the end of the `_mingw.h' header file).
 >  > 
 >  > My crystal ball says that somehow either _CRTIMP or __cdecl are not
 >  > being defined, which is why the compiler barfs on these 3 lines.
 >  > 
 >  > 
 > 
 > gcc --version
 > gcc (GCC) 3.4.2 (mingw-special)
 > Copyright (C) 2004 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.
 > 
 > #define __MINGW32_VERSION 3.12
 > #define __MINGW32_MAJOR_VERSION 3
 > #define __MINGW32_MINOR_VERSION 12
 > 
 > 
 > to address the other email I had run make clean and also tried on a fresh checkout.
 > -- 
 > 
 > enjoy every sandwich
 > 
 >            -- W. Zevon

Upgragding mingw seems to have corrected this.  How at 3.14 and it's building
the bootstrap emacs and compiling the lisp files. 

_CRTIMP and __cdecl were being defined from what I could see int he _mingw.h
file. 
-- 

enjoy every sandwich

           -- W. Zevon





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

* Re: Building fails on Win32
  2008-04-11 18:24     ` AriT93
@ 2008-04-11 19:24       ` Eli Zaretskii
  2008-04-11 19:31         ` AriT93
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-11 19:24 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> From: AriT93 <arit93@yahoo.com>
> Date: Fri, 11 Apr 2008 13:24:55 -0500
> 
>  > #define __MINGW32_VERSION 3.12
>  > #define __MINGW32_MAJOR_VERSION 3
>  > #define __MINGW32_MINOR_VERSION 12
>  > 
>  > 
>  > to address the other email I had run make clean and also tried on a fresh checkout.
>  > -- 
>  > 
>  > enjoy every sandwich
>  > 
>  >            -- W. Zevon
> 
> Upgragding mingw seems to have corrected this.  How at 3.14 and it's building
> the bootstrap emacs and compiling the lisp files. 

I think I see now what was the problem: it was the __MINGW_NOTHROW
thing.  It was introduced only in MinGW 3.13.  I've checked in a fix
now, so if you can still try building with MinGW 3.12, please see if
the problem went away.

Thanks for reporting the bug and for helping me solve it.




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

* Re: Building fails on Win32
  2008-04-11 19:24       ` Eli Zaretskii
@ 2008-04-11 19:31         ` AriT93
  2008-04-12  7:52           ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: AriT93 @ 2008-04-11 19:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: AriT93, emacs-devel

Eli Zaretskii writes:
 > > From: AriT93 <arit93@yahoo.com>
 > > Date: Fri, 11 Apr 2008 13:24:55 -0500
 > > 
 > >  > #define __MINGW32_VERSION 3.12
 > >  > #define __MINGW32_MAJOR_VERSION 3
 > >  > #define __MINGW32_MINOR_VERSION 12
 > >  > 
 > >  > 
 > >  > to address the other email I had run make clean and also tried on a fresh checkout.
 > >  > -- 
 > >  > 
 > >  > enjoy every sandwich
 > >  > 
 > >  >            -- W. Zevon
 > > 
 > > Upgragding mingw seems to have corrected this.  How at 3.14 and it's building
 > > the bootstrap emacs and compiling the lisp files. 
 > 
 > I think I see now what was the problem: it was the __MINGW_NOTHROW
 > thing.  It was introduced only in MinGW 3.13.  I've checked in a fix
 > now, so if you can still try building with MinGW 3.12, please see if
 > the problem went away.
 > 
 > Thanks for reporting the bug and for helping me solve it.
 > 
 > 
I'll revert and give it a go. I am on way out today but should be able to try it
tomorrow or monday.


-- 

enjoy every sandwich

           -- W. Zevon





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

* Re: Building fails on Win32
  2008-04-11 19:31         ` AriT93
@ 2008-04-12  7:52           ` Eli Zaretskii
  2008-04-14 11:49             ` AriT93
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-12  7:52 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> Date: Fri, 11 Apr 2008 14:31:14 -0500
> Cc: AriT93 <arit93@yahoo.com>,
>     emacs-devel@gnu.org
> From: AriT93 <arit93@yahoo.com>
> 
>  > I think I see now what was the problem: it was the __MINGW_NOTHROW
>  > thing.  It was introduced only in MinGW 3.13.  I've checked in a fix
>  > now, so if you can still try building with MinGW 3.12, please see if
>  > the problem went away.
>  > 
>  > Thanks for reporting the bug and for helping me solve it.
>  > 
>  > 
> I'll revert and give it a go. I am on way out today but should be able to try it
> tomorrow or monday.

Thank you.




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

* Re: Building fails on Win32
  2008-04-12  7:52           ` Eli Zaretskii
@ 2008-04-14 11:49             ` AriT93
  2008-04-14 18:38               ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: AriT93 @ 2008-04-14 11:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: AriT93, emacs-devel

Eli Zaretskii writes:
 > > Date: Fri, 11 Apr 2008 14:31:14 -0500
 > > Cc: AriT93 <arit93@yahoo.com>,
 > >     emacs-devel@gnu.org
 > > From: AriT93 <arit93@yahoo.com>
 > > 
 > >  > I think I see now what was the problem: it was the __MINGW_NOTHROW
 > >  > thing.  It was introduced only in MinGW 3.13.  I've checked in a fix
 > >  > now, so if you can still try building with MinGW 3.12, please see if
 > >  > the problem went away.
 > >  > 
 > >  > Thanks for reporting the bug and for helping me solve it.
 > >  > 
 > >  > 
 > > I'll revert and give it a go. I am on way out today but should be able to try it
 > > tomorrow or monday.
 > 
 > Thank you.
 > 
 > 
I cannot seem to find a copy of MinGW 3.12 anywhere.  the sourceforge site only
has 3.13 and 3.14 available and google is turning up nothing but rpms and the
cygwin package.  I'll keep looking though.


-- 

enjoy every sandwich

           -- W. Zevon





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

* Re: Building fails on Win32
  2008-04-14 11:49             ` AriT93
@ 2008-04-14 18:38               ` Eli Zaretskii
  2008-04-14 19:16                 ` AriT93
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-14 18:38 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> Date: Mon, 14 Apr 2008 06:49:03 -0500
> Cc: AriT93 <arit93@yahoo.com>,
>     emacs-devel@gnu.org
> From: AriT93 <arit93@yahoo.com>
> 
> I cannot seem to find a copy of MinGW 3.12 anywhere.  the sourceforge site only
> has 3.13 and 3.14 available and google is turning up nothing but rpms and the
> cygwin package.  I'll keep looking though.

Look at this page:

  http://sourceforge.net/project/showfiles.php?group_id=2435

under "Previous", you will find there all the older versions of the
MinGW runtime.




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

* Re: Building fails on Win32
  2008-04-14 18:38               ` Eli Zaretskii
@ 2008-04-14 19:16                 ` AriT93
  2008-04-15  3:06                   ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: AriT93 @ 2008-04-14 19:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: AriT93, emacs-devel

Eli Zaretskii writes:
 > > Date: Mon, 14 Apr 2008 06:49:03 -0500
 > > Cc: AriT93 <arit93@yahoo.com>,
 > >     emacs-devel@gnu.org
 > > From: AriT93 <arit93@yahoo.com>
 > > 
 > > I cannot seem to find a copy of MinGW 3.12 anywhere.  the sourceforge site only
 > > has 3.13 and 3.14 available and google is turning up nothing but rpms and the
 > > cygwin package.  I'll keep looking though.
 > 
 > Look at this page:
 > 
 >   http://sourceforge.net/project/showfiles.php?group_id=2435
 > 
 > under "Previous", you will find there all the older versions of the
 > MinGW runtime.
 > 
 > 
Couldn't find 3.12 there but was able to build successfully with 3.11.  

Thank you for fixing this.  
-- 

enjoy every sandwich

           -- W. Zevon





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

* Re: Building fails on Win32
  2008-04-14 19:16                 ` AriT93
@ 2008-04-15  3:06                   ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2008-04-15  3:06 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

> Date: Mon, 14 Apr 2008 14:16:37 -0500
> Cc: AriT93 <arit93@yahoo.com>,
>     emacs-devel@gnu.org
> From: AriT93 <arit93@yahoo.com>
> 
>  >   http://sourceforge.net/project/showfiles.php?group_id=2435
>  > 
>  > under "Previous", you will find there all the older versions of the
>  > MinGW runtime.
>  > 
>  > 
> Couldn't find 3.12 there but was able to build successfully with 3.11.  
> 
> Thank you for fixing this.  

Thanks again for testing.




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

end of thread, other threads:[~2008-04-15  3:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 11:30 Building fails on Win32 AriT93
2008-04-11 14:38 ` Eli Zaretskii
     [not found]   ` <18431.43379.66028.795860@arit93.ariserve.dynup.net>
2008-04-11 18:24     ` AriT93
2008-04-11 19:24       ` Eli Zaretskii
2008-04-11 19:31         ` AriT93
2008-04-12  7:52           ` Eli Zaretskii
2008-04-14 11:49             ` AriT93
2008-04-14 18:38               ` Eli Zaretskii
2008-04-14 19:16                 ` AriT93
2008-04-15  3:06                   ` Eli Zaretskii
2008-04-11 14:46 ` Eli Zaretskii

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