Build error on CVS HEAD

Christian Poessinger xcp at mixed-mode.de
Mon Jun 23 12:22:32 UTC 2008


Hallo,

when building RTEMS from the CVS HEAD I get the following Compile error
when invoking 'make all' after '../rtems/configure --target=i386-rtems
--prefix=/data/RTEMS'

i386-rtems-gcc --pipe -DHAVE_CONFIG_H   -I..
-I../../cpukit/../../../i386ex/lib/include
-I../../../../../../rtems/c/src/../../cpukit/libmisc/shell  -Wall -fasm
-msoft-float -O2 -g -MT shell/libshell_a-main_chroot.o -MD -MP -MF
shell/.deps/libshell_a-main_chroot.Tpo -c -o
shell/libshell_a-main_chroot.o `test -f 'shell/main_chroot.c' || echo
'../../../../../../rtems/c/src/../../cpukit/libmisc/'`shell/main_chroot.c
mv -f shell/.deps/libshell_a-main_chroot.Tpo
shell/.deps/libshell_a-main_chroot.Po
i386-rtems-gcc --pipe -DHAVE_CONFIG_H   -I..
-I../../cpukit/../../../i386ex/lib/include
-I../../../../../../rtems/c/src/../../cpukit/libmisc/shell  -Wall -fasm
-msoft-float -O2 -g -MT shell/libshell_a-main_cp.o -MD -MP -MF
shell/.deps/libshell_a-main_cp.Tpo -c -o shell/libshell_a-main_cp.o `test
-f 'shell/main_cp.c' || echo
'../../../../../../rtems/c/src/../../cpukit/libmisc/'`shell/main_cp.c
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c: In
function 'main_cp':
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:124:
error: storage size of 'getopt_reent' isn't known
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:127:
error: 'getopt_data' undeclared (first use in this function)
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:127:
error: (Each undeclared identifier is reported only once
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:127:
error: for each function it appears in.)
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:129:
warning: implicit declaration of function 'getopt_r'
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:124:
warning: unused variable 'getopt_reent'
make[5]: *** [shell/libshell_a-main_cp.o] Error 1
make[5]: Leaving directory
`/home/xcp/Desktop/build-rtems/i386-rtems/c/i386ex/cpukit/libmisc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/xcp/Desktop/build-rtems/i386-rtems/c/i386ex/cpukit'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/xcp/Desktop/build-rtems/i386-rtems/c/i386ex/cpukit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/xcp/Desktop/build-rtems/i386-rtems/c/i386ex'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xcp/Desktop/build-rtems/i386-rtems/c'
make: *** [all-recursive] Error 1


# i386-rtems-gcc -v
Using built-in specs.
Target: i386-rtems
Configured with: ../gcc-4.0.1/configure --target=i386-rtems -with-gnu-as
--with-gnu-ld --with-newlib --verbose --enable-threads
--enable-languages=c,c++ --prefix=/data/RTEMS
Thread model: rtems
gcc version 4.0.1


Is this a know issue with a workaround availible?

Best regards,
Christian






More information about the users mailing list