[SRILM User List] My makefile fails in cygwin?
Andreas Stolcke
stolcke at icsi.berkeley.edu
Mon Oct 28 14:29:50 PDT 2013
On 10/29/2013 4:53 AM, Veton Kepuska wrote:
>
> Andreas,
>
> Thank you very much for your information. I did that but I am getting
> this error message which hinders my installation even thought I did
> include (serveral times) the stddef package in Cygwin.
>
> >>>>>>>>>>>>>>>>>>>>>
>
> make[1]: Entering directory '/cygdrive/u/public_html/ece5527/srilm'
>
> for subdir in misc dstruct lm flm lattice utils; do \
>
> (cd $subdir/src; make SRILM=/cygdrive/u/public_html/ece5527/srilm MACHIN
>
> E_TYPE=cygwin OPTION= MAKE_PIC= release-libraries) || exit 1; \
>
> done
>
> make[2]: Entering directory
> '/cygdrive/u/public_html/ece5527/srilm/misc/src'
>
> g++ -Wall -Wno-unused-variable -Wno-uninitialized
> -DINSTANTIATE_TEMPLATES -I.
>
> -I../../include -c -g -O2 -o ../obj/cygwin/File.o File.cc
>
> In file included from /usr/include/sys/reent.h:14:0,
>
> from /usr/include/string.h:11,
>
> from File.cc:12:
>
> /usr/include/sys/_types.h:72:20: fatal error: stddef.h: No such file
> or director
>
> y
>
> #include <stddef.h>
>
Very odd. I also have the #include <stddef.h> in sys/_types.h but no
such file exists on my system.
But I don't get this error, so the conditionals in this header don't
fire on my system. I'm using gcc 4.7.3.
I don't really understand how these system header files are supposed to
interact. You could try creating a dummy stddef.h in /usr/include .
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20131029/3154819a/attachment.html>
More information about the SRILM-User
mailing list