chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Chicken 4.5.0 on Windows?


From: Felix
Subject: Re: [Chicken-users] Chicken 4.5.0 on Windows?
Date: Wed, 12 May 2010 16:42:14 +0200 (CEST)

From: Jeronimo Pellegrini <address@hidden>
Subject: [Chicken-users] Chicken 4.5.0 on Windows?
Date: Wed, 12 May 2010 08:50:33 -0300

> Hi,
> 
> Is Windows a currently supported platform?

Yes, Windows is fully supported.

> The only problem I found was to get Chicken working on Windows.
> I've tried compiling using MinGW and also cross-compiling, but
> using Windows is not something I really like to do, but it's
> important that student can choose the platform they feel more
> comfortable with...
> 
> Anyway, I tried and found some problems.
> 
> Compiling directly on Windows:
> 
> X:\chicken-4.5.0>mingw32-make PLATFORM=mingw

(You should provide a PREFIX argument here, but that's not related
to the problems you encounter)

> mingw32-make -f ./Makefile.mingw CONFIG= all
> mingw32-make[1]: Entering directory `X:/chicken-4.5.0'
> gcc -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -I. -I.\ \
>           -c -Os \
>            \
>           -DC_BUILDING_LIBCHICKEN library.c -o library-static.o
> In file included from 
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/
> stdio.h:26,
>                  from chicken.h:80,
>                  from library.c:11:
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/include/stddef.h:213: error: syntax 
> error
> before string constant
> In file included from chicken.h:80,
>                  from library.c:11:
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdio.h:191: error: 
> syntax error before ‘size_t’
> 

Can you show me line 213 in stddef.h and 191 of stdio.h ?

> 
> Cross-compiling was a bit trickier, because the name of mingw32-gcc and 
> mingw32-ar
> on Debian unstable seem to be different (but I think I got that working).
> 
> Anyway, compilation stopped with the same error:
> 
> make PLATFORM=cross-linux-mingw CHICKEN=./chicken-boot-4.3.7-linux-x86 
> C_COMPILER=/usr/bin/i586-mingw32msvc-gcc-4.4.2
> make -f ./Makefile.cross-linux-mingw CONFIG= all
> make[1]: Entering directory `/home/jeronimo/win/chicken-4.5.0'
> /usr/bin/i586-mingw32msvc-gcc-4.4.2 -fno-strict-aliasing 
> -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -I. -I./ \
>       -c -Os -fomit-frame-pointer \
>        \
>       -DC_BUILDING_LIBCHICKEN library.c -o library-static.o
> In file included from chicken.h:45,
>                  from library.c:11:
> chicken-config.h:1: error: expected identifier or ‘(’ before string constant
> In file included from chicken.h:80,
>                  from library.c:11:
> /usr/lib/gcc/i586-mingw32msvc/4.4.2/../../../../i586-mingw32msvc/include/stdio.h:191:
>  error: expected declaration specifiers or ‘...’ before ‘size_t’
> 
> It seems that chicken-config.h is not being properly generated:
> 
> "/* GENERATED */" 
> "#define HAVE_DIRENT_H 1" 
> "#define HAVE_INTTYPES_H 1" 
> "#define HAVE_LIMITS_H 1" 
> "#define HAVE_LONG_LONG 1" 
> ...
> "#define C_STACK_GROWS_DOWNWARD 1" 
> "#define C_HACKED_APPLY" 
> 
> (The double-quotes around each like should probably not have been there, I 
> suppose?)

Can you run "make ... confclean" and try again, sending me the output?


cheers,
felix

reply via email to

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