Hi all
I have just tried to build gpc on a cygwin installation on my Windows machine. Usually I fire of the following commands on a Linux-box and it works like a charm.
cd /home/prb/program/gpc tar xzf gpc-20010924.tar.gz tar xzf gcc-core-2.95.2.tar.gz cd gpc-20010924 mv p ../gcc-2.95.2/gcc/ cd .. mkdir gpc-build cd gpc-build /home/prb/program/gpc/gcc-2.95.2/configure --enable-languages=pascal --prefix=/home/prb/program/gpc/ make cd gcc make pascal.install
However on my cygwin installation, the make command fails with an error:
test x"no" != xyes || \ gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty /../include /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c -o pic/strer ror.o gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty/. ./include /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c:461: conflicting types 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/prb/program/gpc/gpc-build/libiberty' make: *** [all-libiberty] Error 2
Can anyone tell me what I'm doing wrong?
Best regards
Preben Bohn
===== The two rules for success are: 1. Never tell them everything you know.
____________________________________________________________ Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
On 31 Oct 2001, at 9:39, Preben Mikael Bohn wrote:
[...]
However on my cygwin installation, the make command fails with an error:
test x"no" != xyes || \ gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty /../include /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c -o pic/strer ror.o gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty/. ./include /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c /home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c:461: conflicting types 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/prb/program/gpc/gpc-build/libiberty' make: *** [all-libiberty] Error 2
Can anyone tell me what I'm doing wrong?
Pass "-DHAVE_SYS_ERRLIST" at the command line (in the "CFLAGS" argument to "make").
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Author of Chief's Installer Pro for Win32 Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/
OK, this helped... However, now it comes out with another error:
anlib -o -f /bin/ranlib ] ); then ranlib ../../libgpc.a; else true; fi make[2]: Leaving directory `/home/prb/program/gpc/gpc-build/gcc/p/rts' /home/prb/program/gpc/gpc-build/gcc/xgcc -B/home/prb/program/gpc/gpc-build/gcc/ -B/home/prb/program/gpc//i686-pc-cygwin32/bin/ -I/home/prb/program/gpc//i686-pc- cygwin32/include -dumpspecs > tmp-specs mv tmp-specs specs /home/prb/program/gpc/gcc-2.95.2/gcc/p/script/pas2texi /home/prb/program/gpc/gcc -2.95.2/gcc/p/rts/gpc.pas /home/prb/program/gpc/gcc-2.95.2/gcc/p/doc/generated/g pcpas.texi trap: bad signal INT
Sorry, I could not find a non-crippled version of `sed' (one that understands regular expressions, in particular `|'). If or when you have installed one, e.g., GNU sed, available from ftp://ftp.gnu.org/pub/gnu/sed/ please install it as `sed', `gsed', or point the environment variable `SED' to it, and re-run.
make[1]: *** [/home/prb/program/gpc/gcc-2.95.2/gcc/p/doc/generated/gpcpas.texi] Error 1 make[1]: Leaving directory `/home/prb/program/gpc/gpc-build/gcc' make: *** [all-gcc] Error 2
Now, this seems to be a problem with sed, however sed is installed, and it have been run a number of times before the error occurs... I know this is really OT, but have anyone tried doing this succesfully, or should I just drop it?
Best regards
Preben Bohn
--- "Prof. A Olowofoyeku (The African Chief)" african_chief@bigfoot.com wrote: > On 31 Oct 2001, at 9:39, Preben Mikael Bohn wrote:
[...]
However on my cygwin installation, the make command fails with
an
error:
test x"no" != xyes || \ gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty /../include
/home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c
-o pic/strer ror.o gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/prb/program/gpc/gcc-2.95.2/libiberty/. ./include
/home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c
/home/prb/program/gpc/gcc-2.95.2/libiberty/strerror.c:461: conflicting types 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/prb/program/gpc/gpc-build/libiberty' make: *** [all-libiberty] Error 2
Can anyone tell me what I'm doing wrong?
Pass "-DHAVE_SYS_ERRLIST" at the command line (in the "CFLAGS" argument to "make").
Best regards, The Chief
Prof. Abimbola Olowofoyeku (The African Chief) Author of Chief's Installer Pro for Win32 Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/
===== The two rules for success are: 1. Never tell them everything you know.
____________________________________________________________ Nokia Game is on again. Go to http://uk.yahoo.com/nokiagame/ and join the new all media adventure before November 3rd.
On 31 Oct 2001, at 13:17, Preben Mikael Bohn wrote:
OK, this helped... However, now it comes out with another error:
[...]
/home/prb/program/gpc/gcc-2.95.2/gcc/p/doc/generated/g pcpas.texi trap: bad signal INT
Sorry, I could not find a non-crippled version of `sed' (one that understands regular expressions, in particular `|'). If or when you have installed one, e.g., GNU sed, available from ftp://ftp.gnu.org/pub/gnu/sed/ please install it as `sed', `gsed', or point the environment variable `SED' to it, and re-run.
Get the most recent version of GNU sed and install it (and also the latest version of texinfo). These might help.
However, by the time you get this error, the compile and RTS have been built successfully. The errors relates to the GPC documentation being built. If you can like without full docs, then you can just run: "make -i -k pascal.install".
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Author of Chief's Installer Pro for Win32 Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/