HEAD fails on building pc386 BSP.

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Oct 8 05:09:28 UTC 2014


On 07/10/14 23:00, Karel Gardas wrote:
>
> Hello,
>
> I'm trying to build HEAD with latest toolchain available from ftp's SOURCES
> directory (RSB is not working yet for me) on Solaris 11 and while I configured
> pc386 BSP with:
>
> ~/vcs/rtems/configure --target=i386-rtems4.11
> --prefix=/export/home/karel/sfw/rtems-4.11-2014-10-07/bsps/pc386-qemu
> --disable-multiprocessing    --disable-cxx --disable-rdbg
> --enable-maintainer-mode --enable-tests    --enable-networking
> --enable-posix    --disable-itron --disable-deprecated    --disable-ada
> --disable-expada    --enable-rtemsbsp=pc386    USE_COM1_AS_CONSOLE=1
> BSP_PRESS_KEY_FOR_RESET=0
>
>
> taken from the http://www.rtems.org/wiki/index.php/QEMU. It looks like the
> build fails on shell's ping:
>
> i386-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
> -I../../cpukit/../../../pc386/lib/include
> -I/export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell -mtune=i386 -O2
> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs -MT shell/libshell_a-main_ping.o -MD -MP
> -MF shell/.deps/libshell_a-main_ping.Tpo -c -o shell/libshell_a-main_ping.o
> `test -f 'shell/main_ping.c' || echo
> '/export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/'`shell/main_ping.c
> /export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In
> function ‘g_finish’:
> /export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:54:
> error: expected declaration specifiers before ‘__dead2’
>   static void g_finish(rtems_shell_globals_t* globals) __dead2;
>                                                        ^
> /export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:351:13:
> error: storage class specified for parameter ‘g_pinger’
>   static void g_pinger(rtems_shell_globals_t* globals);
>               ^
> /export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:354:14:
> error: storage class specified for parameter ‘g_pr_addr’
>   static char *g_pr_addr(struct in_addr, rtems_shell_globals_t* globals);
>                ^
> /export/home/karel/vcs/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:357:13:
> error: storage class specified for parameter ‘g_pr_pack’
>   static void g_pr_pack(char *, int, struct sockaddr_in *, struct timeval *,
> rtems_shell_globals_t* globals);
>               ^
> [....]
>
>
> is there any workaround for this issue already?

Another FreeBSD stuff from <sys/cdefs.h> slipped in (__dead2).  A workaround is 
to update your tools to the latest version.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list