Subject: Re: bug#12661: 24.2.50; Build error with --with-w32 --enable-check-lisp-object-type

From: Eli Zaretskii <[email-masked]>
Date: Wed, 17 Oct 2012 17:40:04 +0200

> Date: Wed, 17 Oct 2012 06:57:14 +0900
> From: OKAZAKI Tetsurou <[email-masked]>
> 
> 
> On cygwin, building bzr current emacs with
> 
>     ./autogen.sh
>     ./configure --with-w32 --enable-check-lisp-object-type
>     make bootstrap
> 
> reports following errors:
> 
> 1)
>     make[1]: Entering directory `/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src'
>     gcc -std=gnu99 -c  -Demacs  -I. -I/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src  -I../lib -I/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src/../lib           -I/usr/include/libxml2           -MMD -MF deps/cygw32.d -MP   -I/usr/include/p11-kit-1      -ggdb3 -O2 cygw32.c
>     cygw32.c: In function 'Fcygwin_convert_path_to_windows':
>     cygw32.c:148:52: error: invalid operands to binary == (have 'Lisp_Object' and 'Lisp_Object')
>     cygw32.c: In function 'Fcygwin_convert_path_from_windows':
>     cygw32.c:159:53: error: invalid operands to binary == (have 'Lisp_Object' and 'Lisp_Object')
>     Makefile:325: recipe for target `cygw32.o' failed
>     make[1]: *** [cygw32.o] Error 1
>     make[1]: Leaving directory `/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src'
>     Makefile:335: recipe for target `src' failed
>     make: *** [src] Error 2
> 
> 
> 2)
>     gcc -std=gnu99 -c  -Demacs  -I. -I/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src  -I../lib -I/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src/../lib           -I/usr/include/libxml2           -MMD -MF deps/w32fns.d -MP   -I/usr/include/p11-kit-1      -ggdb3 -O2 w32fns.c
>     w32fns.c: In function 'w32_msg_pump':
>     w32fns.c:2427:8: error: conversion to non-scalar type requested
>     w32fns.c:2427:8: error: conversion to non-scalar type requested
>     w32fns.c:2435:3: error: conversion to non-scalar type requested
>     Makefile:325: recipe for target `w32fns.o' failed
>     make[1]: *** [w32fns.o] Error 1
>     make[1]: Leaving directory `/home/foo/Checkout/bzr.savannah.gnu.org/emacs/local/src'
>     Makefile:335: recipe for target `src' failed
>     make: *** [src] Error 2

Should be fixed in revision 110567.  Please test, I don't have Cygwin
installed.