chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Build failure on Cygwin from git


From: Felix
Subject: Re: [Chicken-users] Build failure on Cygwin from git
Date: Wed, 07 Jul 2010 14:23:24 +0200 (CEST)

From: John Cowan <address@hidden>
Subject: [Chicken-users] Build failure on Cygwin from git
Date: Tue, 6 Jul 2010 11:43:47 -0400

> New job, back to Windows, back to Chicken on Cygwin.
> 
> I loaded the current state of the git repository plus the Windows
> bootstrap, and did
> 
> $ make PLATFORM=cygwin CHICKEN=./chicken-boot-4.4.1-mingw-msys-x86.exe
> 
> All went well until I got this warning:
> 
> gcc  -L. chicken-profile.o -o chicken-profile.exe \
>           -lchicken -Wl,--dll-search-prefix=cyg -Wl,--export-dynamic -lm
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld:
> warning: --export-dynamic is not supported for PE targets, did you
> mean --export-all-symbols?
> 

This may be non-critical. Can you remove this option (see Makefile.cygwin)
and look how far we get?

> And then immediately afterward this fatal error:
> 
> ./chicken-boot-4.4.1-mingw-msys-x86.exe csc.scm -optimize-level 2
> -include-path . -include-path ./ -inline -ignore-repository
> -no-warnings  -no-lambda-info -local -no-trace -output-file csc.c
> gcc -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES
> -I. -I./ -DPIC \
>           -c -Os -fomit-frame-pointer csc.c -o csc.o
> csc.c: In function ‘f_1209’:
> csc.c:2756: error: ‘C_TARGET_FEATURES’ undeclared (first use in this function)
> csc.c:2756: error: (Each undeclared identifier is reported only once
> csc.c:2756: error: for each function it appears in.)
> make[1]: *** [csc.o] Error 1
> make[1]: Leaving directory `/opt/chicken/chicken-core'
> make: *** [all] Error 2

Sorry, a missing piece in Makefile.cygwin. Patch is attached, alternatively
git-pull from the repository.


cheers,
felix
diff --git a/Makefile.cygwin b/Makefile.cygwin
index f062d51..0cb7364 100644
--- a/Makefile.cygwin
+++ b/Makefile.cygwin
@@ -199,6 +199,9 @@ chicken-defaults.h:
        echo "#ifndef C_TARGET_LDFLAGS" >>$@
        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) 
$(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
        echo "#endif" >>$@
+       echo "#ifndef C_TARGET_FEATURES" >>$@
+       echo "# define C_TARGET_FEATURES \"$(TARGET_FEATURES)\"" >>$@
+       echo "#endif" >>$@
        echo "#ifndef C_CROSS_CHICKEN" >>$@
        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
        echo "#endif" >>$@

reply via email to

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