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

From: Gustavo Seabra <gustavo.seabra.gmail.com>
Date: Thu, 12 Feb 2009 12:17:04 -0500

Hi All,

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:
previous declaration of 'wchar_t' was here
WcActCB.c: In function 'WcSpawnACT':
WcActCB.c:539: warning: incompatible implicit declaration of built-in
function 'exit'
WcActCB.c: In function 'WcExitACT':
WcActCB.c:681: warning: incompatible implicit declaration of built-in
function 'exit'
make[3]: *** [WcActCB.o] Error 1
make[3]: Leaving directory `/home/seabra/local/amber11/src/leap/src/Wc'
make[2]: *** [install_xleap] Error 2
make[2]: Leaving directory `/home/seabra/local/amber11/src/leap'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/seabra/local/amber11/src/leap'
make: *** [install] Error 2


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?

Thanks,
Gustavo.

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