RTEMS 4.12 tool chain update (Sebastian Huber)

Heinz P. Junkes junkes at fhi-berlin.mpg.de
Mon Jun 12 11:42:11 UTC 2017


beatnik BSP compile isse after that upgrade:

../../rtems/configure --enable-maintainer-mode 
--prefix=/home/h1/RTEMS/rtems/4.12 --target=powerpc-rtems4.12 
--enable-rtemsbsp="beatnik" --enable-posix --enable-cxx --enable-networking

...
mv -f .deps/network_support_rel-early_link_status.Tpo 
.deps/network_support_rel-early_link_status.Po
powerpc-rtems4.12-gcc --pipe -B../../../../../.././lib/ 
-B../../../../../.././beatnik/lib/ -specs bsp_specs -qrtems 
-DHAVE_CONFIG_H   -isystem ../../../../../.././beatnik/lib/include 
-mcpu=7400 -D__ppc_generic  -O2 -g -ffunction-sections -fdata-sections 
-Wall -Wmissing-prototypes -Wimplicit-function-declaration 
-Wstrict-prototypes -Wnested-externs -MT 
network_support_rel-bsp_attach.o -MD -MP -MF 
.deps/network_support_rel-bsp_attach.Tpo -c -o 
network_support_rel-bsp_attach.o `test -f 'network/support/bsp_attach.c' 
|| echo 
'../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/'`network/support/bsp_attach.c
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/support/bsp_attach.c:229:1: 
warning: no previous prototype for 'BSP_availableNetIFs' 
[-Wmissing-prototypes]
  BSP_availableNetIFs(void)
  ^~~~~~~~~~~~~~~~~~~
mv -f .deps/network_support_rel-bsp_attach.Tpo 
.deps/network_support_rel-bsp_attach.Po
powerpc-rtems4.12-gcc --pipe -B../../../../../.././lib/ 
-B../../../../../.././beatnik/lib/ -specs bsp_specs -qrtems -mcpu=7400 
-D__ppc_generic  -O2 -g -ffunction-sections -fdata-sections -Wall 
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes 
-Wnested-externs -qnolinkcmds -nostdlib -r  -o network_support.rel 
network_support_rel-early_link_status.o network_support_rel-bsp_attach.o
powerpc-rtems4.12-gcc --pipe -B../../../../../.././lib/ 
-B../../../../../.././beatnik/lib/ -specs bsp_specs -qrtems 
-DHAVE_CONFIG_H   -isystem ../../../../../.././beatnik/lib/include 
-DDISABLE_DETACHING   -mcpu=7400 -D__ppc_generic  -O2 -g 
-ffunction-sections -fdata-sections -Wall -Wmissing-prototypes 
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT 
network_if_mve_tmp_rel-mv643xx_eth.o -MD -MP -MF 
.deps/network_if_mve_tmp_rel-mv643xx_eth.Tpo -c -o 
network_if_mve_tmp_rel-mv643xx_eth.o `test -f 
'network/if_mve/mv643xx_eth.c' || echo 
'../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/'`network/if_mve/mv643xx_eth.c
In file included from 
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:112:0:
../../../../../.././beatnik/lib/include/sys/mbuf.h:193:15: error: 
'MCLBYTES' undeclared here (not in a function); did you mean 'BMCR_CTEST'?
   char mcl_buf[MCLBYTES];
                ^~~~~~~~
                BMCR_CTEST
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:387:0: 
warning: "_ALIGN" redefined
  #define _ALIGN(b, a) ((((uint32_t)(b)) + (a)-1) & (~((a)-1)))

In file included from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/machine/param.h:39:0,
                  from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/sys/_cpuset.h:36,
                  from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/sys/cpuset.h:45,
                  from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/sys/_pthreadtypes.h:24,
                  from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/sys/types.h:239,
                  from 
/home/h1/RTEMS/rtems-4.12/powerpc-rtems4.12/include/sys/time.h:43,
                  from 
../../../../../.././beatnik/lib/include/rtems/score/timestamp.h:43,
                  from 
../../../../../.././beatnik/lib/include/rtems/score/thread.h:36,
                  from 
../../../../../.././beatnik/lib/include/rtems/score/heap.h:22,
                  from 
../../../../../.././beatnik/lib/include/rtems/rtems/types.h:26,
                  from ../../../../../.././beatnik/lib/include/rtems.h:31,
                  from 
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:84:
../../../../../.././beatnik/lib/include/machine/_align.h:21:0: note: 
this is the location of the previous definition
  #define _ALIGN(_p) (((__uintptr_t)(_p) + _ALIGNBYTES) & ~_ALIGNBYTES)

In file included from 
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:112:0:
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c: 
In function 'repackage_chain':
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:1917:2: 
error: 'MCLSHIFT' undeclared (first use in this function); did you mean 
'TRASHIT'?
   MCLGET(m, M_DONTWAIT);
   ^
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:1917:2: 
note: each undeclared identifier is reported only once for each function 
it appears in
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c: 
At top level:
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:2135:1: 
warning: no previous prototype for 'BSP_mve_send_buf_raw' 
[-Wmissing-prototypes]
  BSP_mve_send_buf_raw(
  ^~~~~~~~~~~~~~~~~~~~
In file included from 
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:112:0:
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c: 
In function 'alloc_mbuf_rx':
../../../../../../../../../rtems/c/src/lib/libbsp/powerpc/beatnik/network/if_mve/mv643xx_eth.c:2659:2: 
error: 'MCLSHIFT' undeclared (first use in this function); did you mean 
'TRASHIT'?
   MCLGET(m, M_DONTWAIT);
   ^
make[7]: *** [network_if_mve_tmp_rel-mv643xx_eth.o] Error 1
make[7]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik/lib/libbsp/powerpc/beatnik'
make[6]: *** [beatnik] Error 2
make[6]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik/lib/libbsp/powerpc'
make[5]: *** [powerpc] Error 2
make[5]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik/lib/libbsp'
make[4]: *** [libbsp] Error 2
make[4]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik/lib'
make[3]: *** [lib] Error 2
make[3]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c/beatnik'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/h1/RTEMS_DEV/build/b-beatnik/powerpc-rtems4.12/c'
make: *** [all-recursive] Error 1

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 7 Jun 2017 15:38:28 +0200
> From: Sebastian Huber <sebastian.huber at embedded-brains.de>
> To: RTEMS <users at rtems.org>
> Subject: RTEMS 4.12 tool chain update
> Message-ID: <75653157-67ad-4705-44ae-2658777b4350 at embedded-brains.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hello,
>
> I updated the tool chain (RSB) to use the latest Newlib snapshot with
> patches to move some POSIX header files to Newlib:
>
> https://devel.rtems.org/ticket/2833
>
> The legacy network stack and the libbsd (I have to update it tomorrow)
> use now the same standard header files provided by Newlib.
>
> This tool chain update is a preparation step for the RTEMS 4.12 release.
> Now is a good time to test your favourite BSP.
>



More information about the users mailing list