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: Sat, 23 Mar 2013 17:25:26 +0200

> From: Óscar Fuentes <address@hidden>
> Date: Sat, 23 Mar 2013 15:32:52 +0100
> 
> gcc -I. -c -gdwarf-2 -g3  -mtune=pentium4 -O2    
> -isystemc:/apps/GnuWin32/include -DNO_LDAV=1 -DNO_ARCHIVES=1 -I../lib 
> -I../nt/inc -I../src -DUSE_CRT_DLL=1 -o oo-spd/i386/make-docfile.o 
> make-docfile.c
> In file included from ../src/conf_post.h:32:0,
>                  from ../src/config.h:1726,
>                  from make-docfile.c:37:
> ../nt/inc/ms-w32.h:269:8: error: redefinition of 'struct timespec'
> In file included from ../nt/inc/ms-w32.h:133:0,
>                  from ../src/conf_post.h:32,
>                  from ../src/config.h:1726,
>                  from make-docfile.c:37:
> c:\apps\msys\1.0\mingw\bin\../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/sys/types.h:89:8:
>  note: originally defined here
> In file included from ../src/conf_post.h:32:0,
>                  from ../src/config.h:1726,
>                  from make-docfile.c:37:
> ../nt/inc/ms-w32.h:330:3: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:337:25: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:338:23: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:339:24: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:340:1: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:340:48: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:341:1: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:341:52: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:342:1: error: unknown type name 'sigset_t'
> ../nt/inc/ms-w32.h:371: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/sys/types.h:13,
>                  from ../nt/inc/ms-w32.h:133,
>                  from ../src/conf_post.h:32,
>                  from ../src/config.h:1726,
>                  from make-docfile.c:37:
> 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
> mingw32-make[1]: *** [oo-spd/i386/make-docfile.o] Error 1
> mingw32-make[1]: Leaving directory `D:/dev/emacs/emacs/lib-src'
> mingw32-make: *** [bootstrap-gmake] Error 2
> 
> 
> I tried going back in time on the Emacs sources up to points where I
> know that the build worked with the old MinGW compiler that I used
> before, and there are reports from people using MinGW 4.7.2 for building
> Emacs, so there must be something different on the system headers of
> MinGW W64.

MinGW64 is a different project that MinGW32, developed by different
people.  The header files and libraries they provide are indeed
different from the ones provided by MinGW32.  If you really want to
use this toolchain, you will have to find out what causes these
problems, and suggest patches to avoid them (we will have to find a
preprocessor symbols to distinguish between MinGW32 and MinGW64 for
that to work).

Btw, I assume that you use MinGW64 as a cross-compiler to produce a
32-bit executable, not a 64-bit executable.  The latter needs even
more work to build and work.




reply via email to

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