help for building rtems4.10.2

孙陈伟 cwsun at mail.ustc.edu.cn
Sat Aug 18 22:02:10 UTC 2012


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 ?









More information about the users mailing list