[RTEMS Project] #3067: RTEMS 4.11.2 M32C build fails

RTEMS trac trac at rtems.org
Tue Jul 11 01:12:50 UTC 2017


#3067: RTEMS 4.11.2 M32C build fails
-------------------------+--------------------
 Reporter:  Chris Johns  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  4.11.3
Component:  General      |    Version:  4.11
 Severity:  normal       |   Keywords:
-------------------------+--------------------
 CPU Top does not build:
 {{{
 m32c-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
 -I../../cpukit/../../../m32csim/lib/include   -g -O0 -MT monitor/mon-
 queue.o -MD -MP -MF $depbase.Tpo -c -o monitor/mon-queue.o
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/monitor/mon-
 queue.c &&\
 mv -f $depbase.Tpo $depbase.Po
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:
 In function 'print_memsize':
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:159:20:
 warning: integer overflow in expression [-Woverflow]
    if (size > (1024 * 1024))
                     ^
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:161:40:
 warning: integer overflow in expression [-Woverflow]
                            size / (1024 * 1024), label);
                                         ^
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:161:32:
 warning: division by zero [-Wdiv-by-zero]
                            size / (1024 * 1024), label);
                                 ^
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:
 In function 'rtems_cpuusage_top_thread':
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:309:33:
 warning: cast to pointer from integer of different size [-Wint-to-pointer-
 cast]
    rtems_cpu_usage_data*  data = (rtems_cpu_usage_data*) arg;
                                  ^
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:
 In function 'rtems_cpu_usage_top_with_plugin':
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/cpuuse/cpuusagetop.c:617:36:
 warning: cast from pointer to integer of different size [-Wpointer-to-int-
 cast]
      id, rtems_cpuusage_top_thread, (rtems_task_argument) &data
                                     ^
 depbase=`echo monitor/mon-driver.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
 m32c-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
 -I../../cpukit/../../../m32csim/lib/include   -g -O0 -MT monitor/mon-
 driver.o -MD -MP -MF $depbase.Tpo -c -o monitor/mon-driver.o
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/monitor/mon-
 driver.c &&\
 mv -f $depbase.Tpo $depbase.Po
 depbase=`echo monitor/mon-itask.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
 m32c-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
 -I../../cpukit/../../../m32csim/lib/include   -g -O0 -MT monitor/mon-
 itask.o -MD -MP -MF $depbase.Tpo -c -o monitor/mon-itask.o
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/monitor/mon-
 itask.c &&\
 mv -f $depbase.Tpo $depbase.Po
 In file included from
 ../../../../../../rtems-4.11.2/c/src/../../cpukit/libmisc/dummy/default-
 configuration.c:113:0:
 ../../cpukit/../../../m32csim/lib/include/rtems/confdefs.h: At top level:
 ../../cpukit/../../../m32csim/lib/include/rtems/confdefs.h:1483:46:
 warning: cast from pointer to integer of different size [-Wpointer-to-int-
 cast]
    #define CONFIGURE_INIT_TASK_ARGUMENTS     ((rtems_task_argument)
 &bsp_boot_cmdline)
                                               ^
 ../../cpukit/../../../m32csim/lib/include/rtems/confdefs.h:1514:7: note:
 in expansion of macro 'CONFIGURE_INIT_TASK_ARGUMENTS'
        CONFIGURE_INIT_TASK_ARGUMENTS
        ^
 ../../cpukit/../../../m32csim/lib/include/rtems/confdefs.h:1515:5: error:
 initializer element is not constant
      }
      ^
 ../../cpukit/../../../m32csim/lib/include/rtems/confdefs.h:1515:5: error:
 (near initialization for 'Initialization_tasks[0].argument')
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3067>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list