help for building rtems4.10.2

Ralf Corsepius ralf.corsepius at rtems.org
Sun Aug 19 04:57:07 UTC 2012


On 08/19/2012 12:02 AM, 孙陈伟 wrote:
>
> Hi,everybody.
>    I have a problem when I build rtems4.10.2 with gcc4.3.2,newlib1.6.0. The errors are bellow:
>
> mv -f src/.deps/libcsupport_a-symlink.Tpo src/.deps/libcsupport_a-symlink.Po
> powerpc-rtems4.10-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../score603e/lib/include   -mcpu=603e -Dppc603e -O2 -g -fno-keep-inline-functions -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libcsupport_a-readlink.o -MD -MP -MF src/.deps/libcsupport_a-readlink.Tpo -c -o src/libcsupport_a-readlink.o `test -f 'src/readlink.c' || echo '../../../../../../rtems-4.10.2/c/src/../../cpukit/libcsupport/'`src/readlink.c
> ../../../../../../rtems-4.10.2/c/src/../../cpukit/libcsupport/src/readlink.c:21: error: conflicting types for ‘readlink’
> /home/tom/rtems/tools/rtems-4.10/lib/gcc/powerpc-rtems4.10/4.3.2/../../../../powerpc-rtems4.10/include/sys/unistd.h:228: error: previous declaration of ‘readlink’ was here
> gmake[5]: *** [src/libcsupport_a-readlink.o] Error 1
> gmake[5]: Leaving directory `/home/tom/rtems/build/build-rtems/powerpc-rtems4.10/c/score603e/cpukit/libcsupport'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory `/home/tom/rtems/build/build-rtems/powerpc-rtems4.10/c/score603e/cpukit'
> gmake[3]: *** [all] Error 2
>
> Can Anybody tell me how to fix it ?

Where have you got your toolchain from?

It's hopelessly outdated. The current rtems-4.10 toolchain consists of
gcc-4.4.7 + newlib-1.18.0

Or is there are typo in your initial sentence?
Did you mean newlib-1.16.0 instead of newlib-1.6.0?

This could indicate you are trying to use an rtems-4.9 toolchain to 
build rtems4.10 - This doesn't work. Building rtems-4.9 and rtems-4.10 
need different versions of the toolchains.

Ralf





More information about the users mailing list