This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc-4.2.2 build on solaris-10 failing
- From: Malay HALDER <malay dot halder at alcatel-lucent dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Mar 2008 15:47:47 +0530
- Subject: gcc-4.2.2 build on solaris-10 failing
Hello maintainers,
I am trying to build gcc on solaris-10 i am
using an already existing gcc-3.4.4 build on solais -8 and getting the
below error ..please help me if you can tell the root cause of above
problem>
gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I.
-I/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/../include
-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-one.c
-o pex-one.o
if [ x"`case '-g -fkeep-inline-functions -g -O2 -fno-implicit-templates'
in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I.
-I/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/../include
-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes `case '-g
-fkeep-inline-functions -g -O2 -fno-implicit-templates' in *-fpic* )
echo -fpic ;; * ) echo -fPIC ;; esac`
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c
-o pic/pex-unix.o; \
else true; fi
In file included from
/tools/openbin/gcc/3.4.4/sparc-sun-solaris8/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/sys/signal.h:44,
from /usr/include/signal.h:26,
from
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:261: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:292: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of '__fault'
was here
/usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of '__file'
was here
/usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of '__prof'
was here
/usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl'
was here
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:426: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: ISO C forbids data definition
with no type or storage class
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
/usr/include/sys/siginfo.h:437: error: ISO C forbids data definition
with no type or storage class
In file included from /usr/include/signal.h:26,
from
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/tools/openbin/gcc/3.4.4/sparc-sun-solaris8/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/sys/signal.h:96:
error: parse error before "siginfo_t"
In file included from
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:28:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:
In function `pex_wait':
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:100:
warning: implicit declaration of function `waitpid'
/users/toolsrd/ws/si_ctoolrd/gcc/production/sources/gcc-4.2.2/libiberty/pex-unix.c:103:
warning: implicit declaration of function `wait4'
gmake[4]: *** [pex-unix.o] Error 1
thanks & regards
Malay