warning removal changes

Joel Sherrill joel.sherrill at oarcorp.com
Mon Sep 4 13:43:43 UTC 2006


Chris Johns wrote:
> Joel Sherrill wrote:
>>
>> Please update your tree and test.  If you see problems or
>> have fixes for other warnings, please help.
>>
>
> I have built multilib kernels without bsps for arm i386 m68k mips 
> powerpc sh sparc tic4x targets. The get the following error with the 
> tic4x:
>
> gmake[6]: Entering directory 
> `/local/tools/rtems/tools/packages/BUILD/rtems-4.7-tic4x-rtems4.7-4.6.99.3/build/tic4x-rtems4.7/cpukit/score/cpu/c4x' 
>
> if tic4x-rtems4.7-gcc --pipe -DHAVE_CONFIG_H   -I../../.. 
> -I../../../../lib/include  -Wall -fasm -g -O2 -MT libscorecpu_a-cpu.o 
> -MD -MP -MF ".deps/libscorecpu_a-cpu.Tpo" -c -o libscorecpu_a-cpu.o 
> `test -f 'cpu.c' || echo 
> '../../../../../../rtems-4.6.99.3/cpukit/score/cpu/c4x/'`cpu.c; \
> then mv -f ".deps/libscorecpu_a-cpu.Tpo" ".deps/libscorecpu_a-cpu.Po"; 
> else rm -f ".deps/libscorecpu_a-cpu.Tpo"; exit 1; fi
> In file included from ../../../../lib/include/rtems/score/cpu.h:28,
>                  from ../../../../lib/include/rtems/system.h:184,
>                  from 
> ../../../../../../rtems-4.6.99.3/cpukit/score/cpu/c4x/cpu.c:15:
> ../../../../lib/include/rtems/score/types.h:36: error: syntax error 
> before "Priority_Bit_map_control"
> ../../../../lib/include/rtems/score/types.h:36: warning: type defaults 
> to `int' in declaration of `Priority_Bit_map_control'
> ../../../../lib/include/rtems/score/types.h:36: warning: data 
> definition has no type or storage class
> gmake[6]: *** [libscorecpu_a-cpu.o] Error 1
>
I haven't compiled the tic4x for a while and this looks like something 
that has been broken a while.
uint16_t is NOT defined for the tic4x. 

Ralf... ?

Also I didn't have the tic4x tools installed and got this error.  
Something is wrong with the
RPM DB on england:

rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database 
environment version mismatch
error: cannot open Packages index using db3 -  (-30974)
warning: cannot open Solve database in 
/usr/lib/rpmdb/i386-redhat-linux/redhat
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database 
environment version mismatch

Any ideas?

> I have errors with the bsps on the m68k target. I do not know the 
> status of the other bsps.
>
I have fixed this.

It made me wonder if we had a .h file "rtems/bspkit.h" and let it set 
the baseline API for a BSP
wouldn't be a good idea.  Even if now it had conditional compilation for 
variations, it would
capture the issues like the pci did.  Then eventually it would be 
included by EVERY bsp and
could be used by libchip and other places as the "guaranteed cross-BSP API"

> I built using contrib/rtemsrpms:
>
>  $ cd contrib/rtemsrpms
>  $ ./bootstrap && ./configure && make 2>&1 | tee build.txt
>
>> We are primarily dealing with 16/32 bit integer issues and
>> pointer mangling that gcc doesn't like.  I would like to
>> be warning free. :)
>
> Does this means we need to test this code before branching ?
We always need to test but this time would be good.

I would like to see the h8300 warnign about isr level going away but it 
is time to stop on warnings
I think.

>
> Regards
> Chris




More information about the users mailing list