Re: make selfcheck

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

 




On 17/07/17 17:30, Ramsay Jones wrote:
> Hi Christopher,
> 
> The 'make selfcheck' target fails very quickly on cygwin, like so:
> 
>   $ make selfcheck
>        CHECK    target.c
>        CHECK    parse.c
>   /usr/include/sys/_default_fcntl.h:163:14: error: redefinition of struct flock
>   make: *** [Makefile:204: parse.sc] Error 1
>   $ 
> 
> This is caused by sparse not defining the '__CYGWIN__' macro, which
> would have been defined by cgcc, so the follwing fixes that:
> 
> -- >8 --
> diff --git a/Makefile b/Makefile
> index 4214e17..a3d3b9c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -201,7 +201,7 @@ c2xml.o c2xml.sc: CFLAGS += $(LIBXML_CFLAGS)
>  	$(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $<
>  
>  %.sc: %.c sparse
> -	$(QUIET_CHECK) ./sparse -c $(ALL_CFLAGS) $<
> +	$(QUIET_CHECK) ./cgcc -c $(ALL_CFLAGS) $<

This should have been './cgcc -no-compile', of course. :(

ATB,
Ramsay Jones
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux