nios2 build failure on RTEMS

Joel Sherrill joel.sherrill at
Wed Jul 16 22:47:53 UTC 2014

On 7/16/2014 5:27 PM, Chris Johns wrote:
> On 17/07/2014 6:25 am, Joel Sherrill wrote:
>> Hi
>> <sys/cdefs.h> in the nios2 tools is too old to build the current RTEMS.
>> Newer versions provide __DEVOLATILE
> Support is in 4.9.x but it is lacking the RTEMS specifics to allow us to 
> built it.
Which parts? Didn't we have these for the current configuration? Can't be
very much. :)
>> ../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:
>> warning: implicit declaration of function '__DEVOLATILE'
>> ../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:
>> warning: nested extern declaration of '__DEVOLATILE'
>> ../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814: error:
>> expected expression before 'void'
>> ../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:814:
>> warning: initialization makes pointer from integer without a cast
>> ../../../../../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: error:
>> expected expression before 'void'
>> ../../../../../rtems/c/src/libchip/network/dwmac-desc-enh.c:851:
>> warning: passing argument 1 of 'memset' makes pointer from integer
>> without a cast
> Can this code provide the macro is not present as a work around ?
It could but I would rather not. It will end up being a permanent piece
of code
covering up a temporary problem. I see two options:

+ update the nios2 tools
+ provide a small patch to the nios2 tools to define this.
> Chris
> _______________________________________________
> devel mailing list
> devel at

Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the devel mailing list