csb337 from cvs HEAD do not build
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Tue Nov 2 16:09:37 UTC 2004
Lars Munch wrote:
> Hello All
>
> I have problems with building cvs HEAD for the csb337 target. The
> inclusion of the mc146818a rtc driver triggered this problems. A quick
> fix is removing the "#include <bsp.h>" from: libchip/rtc/mc146818a.c and
> libchip/rtc/mc146818a_ioreg.c but I am not sure if this will break some
> other targets.
Known.. next in the queue since right now, I can't link any of the
ARM BSPs due to a tool argument/multilib issue.
Without looking I suspect the solution if to make the types in each
file unique by adding a "class" prefix like RTC_ and Serial_.
They should have already had unique names. The real solution will
have to cofirm that this issue is not in other libchip .h files.
> I get the following output:
>
> In file included from ../../../csb337/lib/include/bsp.h:27,
> from
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:28:
> ../../../csb337/lib/include/libchip/serial.h:25: conflicting types for `getRegister_f'
> ../../../csb337/lib/include/libchip/rtc.h:22: previous declaration of `getRegister_f'
> ../../../csb337/lib/include/libchip/serial.h:27: conflicting types for `setRegister_f'
> ../../../csb337/lib/include/libchip/rtc.h:24: previous declaration of `setRegister_f'
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c: In function `mc146818a_probe':
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:48: warning: assignment from incompatible pointer type
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c: In function `mc146818a_initialize':
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:67: warning: assignment from incompatible pointer type
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:68: warning: assignment from incompatible pointer type
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c: In function `mc146818a_get_time':
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:88: warning: assignment from incompatible pointer type
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c: In function `mc146818a_set_time':
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:147: warning: assignment from incompatible pointer type
> ../../../../../rtems-src/c/src/libchip/rtc/mc146818a.c:148: warning: assignment from incompatible pointer type
>
>
> Thanks
> Lars Munch
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list