Hi,
I tried with gpc-20051116 on HP-UX11i v2 (Itanium),i am geeting an error like
ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' echo '{ rts-config.inc. Generated automatically from rts-config.h. }' > rts-config.inc sed -e 's,/*,{,g;s,*/,},g;s,^[ \t]*#(.*),{$\1},' rts-config.h >> rts-config.inc ../.././xgpc -B../.././ -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/gcc/gcc-3.4.3/gcc/p/rts --automake --print-needed-options "/gcc/gcc-3.4.3/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep '^[^-]' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`" >&2; rm -f "needed-options"; false; else true; fi needed-options: /gcc/gcc-3.4.3/gcc/p/rts/endian.pas:37: error: module/unit interface `Error' could not be imported make[2]: *** [needed-options] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2
can any one help on this.
Regards Prasad
----- Original Message ----- From: "Waldek Hebisch" hebisch@math.uni.wroc.pl To: gpc@gnu.de Subject: Re: Getting an error while compiling GPC-20050331 on HP-UX11i v2 (Itanium Date: Fri, 27 Jan 2006 15:53:27 +0100 (CET)
prasad svr wrote:
I am trying to compile GPC-20050331 on HP-UX11i v2 (Itanium 64 bit) Using gcc-3.4.3.While compiling Iam getting an error like bellow.
gcc ?c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC -W -Wall -Wwrite-string -Wstrict-prototypes -Wmissing -Prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOT_FILE -I. ?I.
-I/gcc/gcc-3.4.3/gcc -I/gcc/gcc-3.4.3/gcc/. ?I/gcc/gcc-3.4.3/gcc/../include -I ../intl /gcc/gcc-3.4.3/gcc/gcov-iov.c -o gcov-iov.o
In file included from /gcc/gcc-3.4.3/gcc/gcov-iov.c: 27:
/gcc/gcc-3.4.3/gcc/version.c: 8 error: Conflicting type for `version string' /gcc/gcc-3.4.3/gcc/version.h: 3 error: previous declaration of `version string' was here /gcc/gcc-3.4.3/gcc/version.c: 8 error: conflicting types for `version string' /gcc/gcc-3.4.3/gcc/version.h: 3 error: previous declaration of `version string' was here
First suspect is incorrectly patched backend: gpc contains a patch which modifies both `version.c' and `version.h'. If only one of them is patched you will get errors as above.
gpc-20050331 is likely to have problems on IA-64, but the above is _not_ one of expected problems. To avoid other problems I would suggerst to use gpc-20051116 version from:
http://www.math.uni.wroc.pl/~hebisch/gpc/gpc-20051116.tar.bz2
or search the mailing list archives for patches.
-- Waldek Hebisch hebisch@math.uni.wroc.pl
prasad svr wrote:
I tried with gpc-20051116 on HP-UX11i v2 (Itanium),i am geeting an error like
ocal/ia64-hp-hpux11.23/include -isystem /usr/local/ia64-hp-hpux11.23/sys-include' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's,(-[BI])([^/][^:]),\1../../\2,g;s,^([^/][^:]*/),../../\1,'`" GCC_VERSION="3.4.3" SHELL="/bin/sh" CFLAGS="-g -O2" PFLAGS="" AR_FLAGS="rc" RTSFLAGS="" DESTDIR="../.." AR="ar" RANLIB="ranlib" RANLIB_TEST="" all make[2]: Entering directory `/gcc/gpcbuild/gcc/p/rts' echo '{ rts-config.inc. Generated automatically from rts-config.h. }' > rts-config.inc sed -e 's,/*,{,g;s,*/,},g;s,^[ \t]*#(.*),{$\1},' rts-config.h >> rts-config.inc ../.././xgpc -B../.././ -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/gcc/gcc-3.4.3/gcc/p/rts --automake --print-needed-options "/gcc/gcc-3.4.3/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep '^[^-]' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`" >&2; rm -f "needed-options"; false; else true; fi needed-options: /gcc/gcc-3.4.3/gcc/p/rts/endian.pas:37: error: module/unit interface `Error' could not be imported make[2]: *** [needed-options] Error 1 make[2]: Leaving directory `/gcc/gpcbuild/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2
can any one help on this.
Just few remarks:
1) "needed-options" for gpc-20051116 is na empty file, so you may try to do
touch /gcc/gpcbuild/gcc/p/rts/needed-options
to create the file and restart the build.
2) gpc is trying to compile "endian.pas". However "--print-needed-options" should disable normal compilation, so something is wrong with command line processing.
3) Similar problem was already reported for HP-UX (ATM with no resolution):
http://www.gnu-pascal.de/crystal/gpc/en/mail13084.html