On 3/09/2014 12:05 pm, 贾超 wrote:
tools: sparc-rtems4.11.
host: x86_64ubuntu.
When I compile the source code in the sparc-rtems4.11 target, always
appear the following error.
../../../sis/lib/include/rtems/rtems_bsdnet_internal.h:54:7: note:
expected 'void *' but argument is of type 'volatile struct
dwmac_desc_ext_erx *'
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c: In function
'dwmac_desc_enh_destroy_tx_desc':
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:3:
warning: implicit declaration of function '__DEVOLATILE'
[-Wimplicit-function-declaration]
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:3:
warning: nested extern declaration of '__DEVOLATILE' [-Wnested-externs]
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:34:
error: expected expression before 'void'
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c: In function
'dwmac_desc_enh_release_tx_bufs':
../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:850:29:
error: expected expression before 'void'.
what cause this error?
Your tool set. A change in newlib related to this patch fixes the issue ...
https://sourceware.org/ml/newlib/2013/msg00250.html
Sebastian's email provides a solution ....
http://lists.rtems.org/pipermail/devel/2014-March/006265.html
Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel