On 7 Oct 01, at 21:59, Per Persson wrote:
Hello!
I have tried to compile gpc-20010924 on a cygwin system (windows-98 Pentium 2). I think I follow the instructions in the Install file thoroughly but the compilation fails. The configuration seems to work without problems (I get promped for the patch for gpc-2.1; I use the gcc-core-2.95.2 source found at the gnu-home-site)
After a few seconds of make, however I get:
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/Persson/gnucomplers/gcc-2.95.2/lib iberty/../include /home/Persson/gnucomplers/gcc-2.95.2/libiberty/strerror.c
/home/Persson/gnucomplers/gcc-2.95.2/libiberty/strerror.c:461: conflicting t ypes for `sys_errlist' /usr/include/sys/errno.h:23: previous declaration of `sys_errlist' make[1]: *** [strerror.o] Error 1 make[1]: Leaving directory `/home/Persson/gnucomplers/gpc-gcc-build/libibert y' make: *** [all-libiberty] Error 2
[...]
Add "-DHAVE_SYS_ERRLIST" to the CFLAGS passed to "make" (e.g.,make "CFLAGS=-O2 -mcpu=pentium -DHAVE_SYS_ERRLIST"). That will solve the problem with "libiberty". I don't know why that problem exists, but it is a new problem. And it seems to be a new problem that arises out of recent Cygwin updates, which, it seems, the gcc 'configure' script does not handle well.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com