Problem building gcc-2.95.3

Steven Grunza steven_grunza at ieee.org
Tue Apr 30 15:48:09 UTC 2002


Using binutils-2.10 and then attempting to build gcc-2.95.3 results in
the following under for powerpc-rtems:


gmake[4]: Entering directory
`/usr/home/grunza/src/rtems/tools/b-gcc/powerpc-rtems/nof/newlib/libc'
Making all in stdlib
gmake[5]: Entering directory
`/usr/home/grunza/src/rtems/tools/b-gcc/powerpc-rtems/nof/newlib/libc/stdlib'

/usr/home/grunza/src/rtems/tools/b-gcc/gcc/xgcc
-B/usr/home/grunza/src/rtems/tools/b-gcc/gcc/
-B/usr/home/grunza/src/rtems/tools/b-gcc/powerpc-rtems/newlib/
-B/home/rtems/powerpc-rtems/bin/ -idirafter
/usr/home/grunza/src/rtems/tools/b-gcc/powerpc-rtems/newlib/targ-include
-idirafter
/usr/home/grunza/src/rtems/tools/gcc-2.95.3/newlib/libc/include
-nostdinc -DPACKAGE=\"newlib\" -DVERSION=\"1.9.0\"  -I.
-I../../../../../../gcc-2.95.3/newlib/libc/stdlib  -O2
-DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED
-DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED
-DHAVE_OPENDIR -DNO_EXEC -I../../targ-include
-I../../../../../../gcc-2.95.3/newlib/libc/../libc/include
-fno-builtin      -g -O2  -msoft-float -mrelocatable-lib -mno-eabi
-mstrict-align -c
../../../../../../gcc-2.95.3/newlib/libc/stdlib/__adjust.c
In file included from
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/sys/reent.h:14,

                 from
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/reent.h:48,
                 from
../../../../../../gcc-2.95.3/newlib/libc/stdlib/__adjust.c:6:
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:47:
parse error before `clock'
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:47:
warning: data definition has no type or storage class
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:48:
parse error before `_time2'
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:49:
parse error before `mktime'
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:49:
warning: data definition has no type or storage class
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:50:
parse error before `time'
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:50:
parse error before `*'
../../../../../../gcc-2.95.3/newlib/libc/../libc/include/time.h:50:
warning: data definition has no type or storage class


It appears the include files are wrong or listed in the wrong order
since things like clock_t are not defined.  Does anyone have any ideas
how to get around this problem?  I was able to build the tools and rtems
from the 4.5.0 release but I need the mpc8260ads BSP that isn't in the
4.5.0 release.

If I can get this running I've got a shot at using RTEMS in my company's
next product....

--
"Luke, you're going to find that many | Steven Grunza
of the truths we cling to depend      | voice:  (856) 787 - 2759
greatly on our own point of view."    | fax:    (856) 866 - 2033
 - Obi Wan Kenobi, Return of the Jedi | e-mail: steven_grunza at ieee.org






More information about the users mailing list