Hi,
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
make[1]: *** [gcov-iov.o] Error 1 make[1]: Leaving directory `/gcc/gpcbuild/gcc' make: *** [all-gcc] Error 2
any one can help on this problem.
Regards Prasad
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.
This looks like a problem building gcc on hp-ux11 rather than a gpc specific problem. There are instructions on how to build gcc on hpux at http://gcc.gnu.org/install/specific.html#hppa-hp-hpux11. Maybe those instructions will get you around the building problem.
Regards,
Adriaan van Os
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.