chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] mathh does not compile on cygwin


From: Kon Lovett
Subject: Re: [Chicken-users] mathh does not compile on cygwin
Date: Tue, 18 Sep 2007 08:45:36 -0700


On Sep 17, 2007, at 10:34 PM, Terrence Brannon wrote:

address@hidden /tmp : chicken-setup mathh

The extension mathh does not exist.
Do you want to download it ? (yes/no/abort) [yes]
downloading mathh.egg from (www.call-with-current-continuation.org eggs 80)
  gunzip -c ../mathh.egg | tar xf -
.  /usr/local/bin/csc -feature compiling-extension -s -O2 -d1
mathh-int.scm -o mathh-int.dll -check-imports -emit-exports
mathh-int.exports -feature has-long-long-type
mathh-int.c:1: warning: -fPIC ignored for target (all code is position
independent)
mathh-int.c:19: error: conflicting types for 'uint32_t'
/usr/include/stdint.h:28: error: previous declaration of 'uint32_t' was here
*** Shell command terminated with exit status 1: gcc mathh-int.c -o
mathh-int.o -c -DHAVE_CHICKEN_CONFIG -Os -fomit-frame-pointer
-fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized
-DC_ENABLE_PTABLES -DC_NO_PIC_NO_DLL -fPIC -DPIC -DC_SHARED -I
/usr/local/include
Error: shell invocation failed with non-zero return status
"/usr/local/bin/csc -feature compiling-extension -s -O2 -d1
mathh-int.scm -o ma...
1
address@hidden /tmp :

This is caused by the change in the build system. At one time stdint or sys/types.h were always included by chicken.h, now only when 64- bit cpu target. Further, the defines, such as HAVE_STDINT_H, were always available from chicken.h, now only if HAVE_CONFIG_H or HAVE_CHICKEN_CONFIG_H are defined when compiling.

I suspect you have a 64-bit cpu, so stdint.h is included by chicken.h, but, since chicken-config.h is not automatically included by chicken.h when compiling mathh-int.c it doesn't know that HAVE_STDINT_H is true, so it includes sys/types.h & thus "conflicting types"

Be nice if the eggs could rely on the config machinery like before. & why stdint.h or sys/types.h is only included for a 64-bit cpu is a little odd.

Please wait for a day, some consultation is needed.

Sorry,
Kon



_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users





reply via email to

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