Re: [AMBER-Developers] Coompiling AmberTools under Cygwin with gcc-4

From: David A. Case <case.biomaps.rutgers.edu>
Date: Thu, 12 Feb 2009 12:27:03 -0500

On Thu, Feb 12, 2009, Gustavo Seabra wrote:
>
> I had the following error when compiling AT in Cygwin using:
> $ gcc --version
> gcc (GCC) 4.3.2 20080827 (alpha-testing) 1
>
> $ ./configure_at -cygwin gcc
> [...]
>
> $ make -f Makefile_at
> [...]
> gcc -c -I/usr/include -DCYGWIN -m32 -DUSE_AMBER_C9XCOMPLEX -DSYSV
> -DBINTRAJ -o WcActCB.o WcActCB.c
> In file included from /usr/include/X11/Intrinsic.h:56,
> from /usr/include/X11/IntrinsicP.h:54,
> from WcActCB.c:22:
> /usr/include/X11/Xlib.h:81: error: conflicting types for 'wchar_t'
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/include/stddef.h:326: error:


>
> It is probably a bad hack, but I could get it to compile ok and pass
> the tests by removing the '-DSYSV' from config.h. I wonder if anyone
> has seen anything similar before?

Sounds like a good idea. Cygwin just recently completely changed their
X11 libraries, upgrading(?) to current xorg standards. So, lots of
things presumably broke. I'm no longer running Windows, so I don't keep
up with cygwin any more.

I'd go ahead and just commit removing -DSYSV; it might be that people
that haven't yet upgraded to the new cygwin stuff will find problems.
If so, Scott can fix them :-) More likely, we'll just require an
up-to-date cygwin.

[One idea: if /usr/X11R6/lib exists, we are probably in the old R6-land;
if not, libraries are probably in /usr/lib.]

...dac


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Fri Feb 13 2009 - 01:20:09 PST
Custom Search