emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone building Emacs trunk with MinGW w64 (32 bits)


From: Eli Zaretskii
Subject: Re: Anyone building Emacs trunk with MinGW w64 (32 bits)
Date: Tue, 26 Mar 2013 15:54:37 +0200

> From: Óscar Fuentes <address@hidden>
> Date: Tue, 26 Mar 2013 12:48:37 +0100
> 
> gcc -I. -c -gdwarf-2 -g3  -mtune=pentium4 -O2    
> -isystemc:/apps/GnuWin32/include -Demacs=1 -I../lib -I../nt/inc 
> -DUSE_CRT_DLL=1 -DPURESIZE=5000000 -o oo-spd/i386/w32.o w32.c
> In file included from w32.c:32:0:
> ../nt/inc/sys/time.h:27:45: warning: 'struct timeval' declared inside 
> parameter list [enabled by default]
> ../nt/inc/sys/time.h:27:45: warning: its scope is only this definition or 
> declaration, which is probably not what you want [enabled by default]
> ../nt/inc/sys/time.h:34:19: error: field 'it_interval' has incomplete type
> ../nt/inc/sys/time.h:35:19: error: field 'it_value' has incomplete type
> In file included from w32.c:35:0:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/time.h:260:8:
>  error: redefinition of 'struct timezone'
> In file included from w32.c:32:0:
> ../nt/inc/sys/time.h:20:8: note: originally defined here

Still working on this part.

> In file included from ./conf_post.h:32:0,
>                  from ./config.h:1726,
>                  from w32.c:39:
> ../nt/inc/ms-w32.h:134:0: warning: "_WIN32_WINNT" redefined [enabled by 
> default]
> 
> In file included from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/crtdefs.h:10:0,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/stddef.h:7,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/include/stddef.h:1,
>                  from w32.c:22:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/_mingw.h:252:0:
>  note: this is the location of the previous definition
> w32.c:73:0: warning: "_ANONYMOUS_UNION" redefined [enabled by default]
> In file included from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/crtdefs.h:10:0,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/stddef.h:7,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/include/stddef.h:1,
>                  from w32.c:22:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/_mingw.h:575:0:
>  note: this is the location of the previous definition
> w32.c:74:0: warning: "_ANONYMOUS_STRUCT" redefined [enabled by default]
> In file included from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/crtdefs.h:10:0,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/stddef.h:7,
>                  from 
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/include/stddef.h:1,
>                  from w32.c:22:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/_mingw.h:576:0:
>  note: this is the location of the previous definition
> w32.c:103:16: error: redefinition of 'struct _PROCESS_MEMORY_COUNTERS_EX'
> In file included from w32.c:95:0:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/psapi.h:84:18:
>  note: originally defined here
> w32.c:115:3: error: conflicting types for 'PROCESS_MEMORY_COUNTERS_EX'
> In file included from w32.c:95:0:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/psapi.h:96:5:
>  note: previous declaration of 'PROCESS_MEMORY_COUNTERS_EX' was here
> w32.c:115:31: error: conflicting types for 'PPROCESS_MEMORY_COUNTERS_EX'
> In file included from w32.c:95:0:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/psapi.h:97:39:
>  note: previous declaration of 'PPROCESS_MEMORY_COUNTERS_EX' was here

These should hopefully be fixed with the latest trunk, please check.

> w32.c:2392:1: error: conflicting types for 'gettimeofday'
> In file included from w32.c:32:0:
> ../nt/inc/sys/time.h:27:6: note: previous declaration of 'gettimeofday' was 
> here

This is due to the same problem as the first error above, so not fixed
yet.

> w32.c:3216:1: warning: 'sys_chmod' redeclared without dllimport attribute: 
> previous dllimport ignored [-Wattributes]

This should now be fixed, please check.

> w32.c: In function 'readlink':
> w32.c:4725:7: error: unknown type name 'REPARSE_DATA_BUFFER'
> w32.c:4725:44: error: 'REPARSE_DATA_BUFFER' undeclared (first use in this 
> function)

This got me puzzled: the definition of REPARSE_DATA_BUFFER is now
guarded by this:

 #ifndef MAXIMUM_REPARSE_DATA_BUFFER_SIZE

Are you saying that MAXIMUM_REPARSE_DATA_BUFFER_SIZE is defined in the
MinGW64 build, but REPARSE_DATA_BUFFER is not?  Which MinGW64 headers
define MAXIMUM_REPARSE_DATA_BUFFER_SIZE and REPARSE_DATA_BUFFER?

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]