RTEMS configure error
Gedare Bloom
gedare at rtems.org
Thu Oct 9 18:02:39 UTC 2014
Hi,
Your toolchain is likely outdated. See
http://lists.rtems.org/pipermail/devel/2014-October/008382.html
Maybe try the RSB: http://www.rtems.org/wiki/index.php/RSB
-Gedare
On Thu, Oct 9, 2014 at 1:46 PM, Brad Andrews <bandrews at activepower.com> wrote:
> Need help with rtems configure error. Any help appreciated.
> These are my settings:
> ../rtems/configure --target=powerpc-rtems4.11 --enable-rtemsbsp=icecube
> --enable-tests=samples --disable-posix
>
> Error snippet below-
>
> powerpc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I..
> -I../../cpukit/../../../icecube/lib/include
> -I../../../../../../rtems/c/src/../../cpukit/libmisc/shell -mcpu=603e
> -mstrict-align -meabi -msdata=sysv -fno-common -O2 -g
> -fno-keep-inline-functions -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
> '../../../../../../rtems/c/src/../../cpukit/libmisc/'`shell/main_ping.c
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In
> function 'g_finish':
> ../../../../../../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;
> ^
> ../../../../../../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);
> ^
> ../../../../../../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);
> ^
> ../../../../../../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);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:360:53:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before '__dead2'
> static void g_usage(rtems_shell_globals_t* globals) __dead2;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:364:1:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> {
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:372:12:
> error: storage class specified for parameter 'main_ping'
> static int main_ping(int argc, char *const *argv, rtems_shell_globals_t*
> globals);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:374:1:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> {
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:411:2:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
> int argc;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13:
> error: old-style parameter declarations in prototyped function definition
> static void g_finish(rtems_shell_globals_t* globals) __dead2;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:24:
> error: 'argc' undeclared (first use in this function)
> while ((ch = getopt_r(argc, argv,
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:24:
> note: each undeclared identifier is reported only once for each function it
> appears in
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:473:30:
> error: 'argv' undeclared (first use in this function)
> while ((ch = getopt_r(argc, argv,
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:561:4:
> warning: implicit declaration of function 'inet_aton'
> [-Wimplicit-function-declaration]
> if (inet_aton(optarg, &ifaddr) == 0)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:561:4:
> warning: nested extern declaration of 'inet_aton' [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4:
> warning: implicit declaration of function 'g_usage'
> [-Wimplicit-function-declaration]
> usage();
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4:
> warning: nested extern declaration of 'g_usage' [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:747:3:
> warning: implicit declaration of function 'bzero'
> [-Wimplicit-function-declaration]
> bzero((char *)&sock_in, sizeof(sock_in));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:747:3:
> warning: incompatible implicit declaration of built-in function 'bzero'
> [enabled by default]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:772:2:
> warning: incompatible implicit declaration of built-in function 'bzero'
> [enabled by default]
> bzero(&whereto, sizeof(whereto));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3:
> warning: implicit declaration of function 'g_pinger'
> [-Wimplicit-function-declaration]
> pinger(); /* send the first ping */
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3:
> warning: nested extern declaration of 'g_pinger' [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4:
> warning: implicit declaration of function 'g_pr_pack'
> [-Wimplicit-function-declaration]
> pr_pack((char *)packet_, cc, &from, tv);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4:
> warning: nested extern declaration of 'g_pr_pack' [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1139:3:
> warning: 'return' with a value, in function returning void [enabled by
> default]
> return(0);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1141:3:
> warning: 'return' with a value, in function returning void [enabled by
> default]
> return(2);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1144:2:
> warning: implicit declaration of function 'rtems_shell_ping_exit'
> [-Wimplicit-function-declaration]
> exit(0); /* Make the compiler happy */
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1144:2:
> warning: nested extern declaration of 'rtems_shell_ping_exit'
> [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:438:7:
> warning: unused variable 'ctrl' [-Wunused-variable]
> char ctrl[CMSG_SPACE(sizeof(struct timeval))];
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In
> function 'stopit':
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1155:10:
> error: expected '=', ',', ';', 'asm' or '__attribute__' before '__unused'
> int sig __unused;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top
> level:
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1:
> warning: function declaration isn't a prototype [-Wstrict-prototypes]
> g_pinger(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1:
> warning: conflicting types for 'g_pinger' [enabled by default]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1:
> error: static declaration of 'g_pinger' follows non-static declaration
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:350:18:
> note: previous implicit declaration of 'g_pinger' was here
> #define pinger() g_pinger(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1014:3:
> note: in expansion of macro 'pinger'
> pinger(); /* send the first ping */
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In
> function 'g_pinger':
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1206:4:
> warning: implicit declaration of function 'bcopy'
> [-Wimplicit-function-declaration]
> bcopy((void *)&tv32,
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1206:4:
> warning: incompatible implicit declaration of built-in function 'bcopy'
> [enabled by default]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top
> level:
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1:
> warning: function declaration isn't a prototype [-Wstrict-prototypes]
> g_pr_pack(buf, cc, from, tv, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1:
> warning: conflicting types for 'g_pr_pack' [enabled by default]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1:
> error: static declaration of 'g_pr_pack' follows non-static declaration
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:356:37:
> note: previous implicit declaration of 'g_pr_pack' was here
> #define pr_pack(_a1, _a2, _a3, _a4) g_pr_pack(_a1, _a2, _a3, _a4, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1096:4:
> note: in expansion of macro 'pr_pack'
> pr_pack((char *)packet_, cc, &from, tv);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: In
> function 'g_pr_pack':
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6:
> warning: implicit declaration of function 'g_pr_addr'
> [-Wimplicit-function-declaration]
> pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6:
> warning: nested extern declaration of 'g_pr_addr' [-Wnested-externs]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:23:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:32:
> note: in definition of macro 'pr_addr'
> #define pr_addr(_a1) g_pr_addr(_a1, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:23:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:32:
> note: in definition of macro 'pr_addr'
> #define pr_addr(_a1) g_pr_addr(_a1, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1423:4:
> warning: format '%s' expects argument of type 'char *', but argument 3 has
> type 'int' [-Wformat=]
> pr_addr(from->sin_addr));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1423:4:
> warning: format '%s' expects argument of type 'char *', but argument 3 has
> type 'int' [-Wformat=]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1447:6:
> warning: incompatible implicit declaration of built-in function 'bcopy'
> [enabled by default]
> bcopy(++cp, &ina.s_addr, INADDR_LEN);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1452:12:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> pr_addr(ina));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1452:12:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1476:8:
> warning: implicit declaration of function 'bcmp'
> [-Wimplicit-function-declaration]
> && !bcmp((char *)cp, old_rr, i)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1484:4:
> warning: incompatible implicit declaration of built-in function 'bcopy'
> [enabled by default]
> bcopy((char *)cp, old_rr, i);
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1494:12:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> pr_addr(ina));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1494:12:
> warning: format '%s' expects argument of type 'char *', but argument 2 has
> type 'int' [-Wformat=]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c: At top
> level:
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1615:1:
> error: redefinition of 'g_finish'
> g_finish(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13:
> note: previous definition of 'g_finish' was here
> static void g_finish(rtems_shell_globals_t* globals) __dead2;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1:
> warning: function declaration isn't a prototype [-Wstrict-prototypes]
> g_pr_addr(ina, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1:
> error: conflicting types for 'g_pr_addr'
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:353:22:
> note: previous implicit declaration of 'g_pr_addr' was here
> #define pr_addr(_a1) g_pr_addr(_a1, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1353:6:
> note: in expansion of macro 'pr_addr'
> pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1:
> warning: function declaration isn't a prototype [-Wstrict-prototypes]
> g_usage(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1:
> warning: conflicting types for 'g_usage' [enabled by default]
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1:
> error: static declaration of 'g_usage' follows non-static declaration
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:359:17:
> note: previous implicit declaration of 'g_usage' was here
> #define usage() g_usage(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:704:4:
> note: in expansion of macro 'usage'
> usage();
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1979:5:
> error: 'rtems_shell_main_ping' undeclared here (not in a function)
> rtems_shell_main_ping, /* command */
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:348:13:
> warning: 'g_finish' defined but not used [-Wunused-function]
> static void g_finish(rtems_shell_globals_t* globals) __dead2;
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1177:1:
> warning: 'g_pinger' defined but not used [-Wunused-function]
> g_pinger(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1252:1:
> warning: 'g_pr_pack' defined but not used [-Wunused-function]
> g_pr_pack(buf, cc, from, tv, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1615:1:
> warning: 'g_finish' defined but not used [-Wunused-function]
> g_finish(globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1862:1:
> warning: 'g_pr_addr' defined but not used [-Wunused-function]
> g_pr_addr(ina, globals)
> ^
> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:1956:1:
> warning: 'g_usage' defined but not used [-Wunused-function]
> g_usage(globals)
> ^
> gmake[5]: *** [shell/libshell_a-main_ping.o] Error 1
> gmake[5]: Leaving directory
> `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit/libmisc'
> gmake[4]: *** [all-recursive] Error 1
> gmake[4]: Leaving directory
> `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube/cpukit'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/home/bandrews/Development/icecube/powerpc-rtems4.11/c/icecube'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/home/bandrews/Development/icecube/powerpc-rtems4.11/c'
> make: *** [all-recursive] Error 1
>
>
>
> ________________________________
> This email has been scanned for email related threats and delivered safely
> by Mimecast.
> For more information please visit http://www.mimecast.com
> ________________________________
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
More information about the users
mailing list