nios2 build failure on RTEMS
Chris Johns
chrisj at rtems.org
Wed Jul 16 22:54:55 UTC 2014
On 17/07/2014 8:47 am, Joel Sherrill wrote:
>
> 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. :)
The current tools are the Altera versions that have been patched.
Nothing could go upstream and there is only a tarball and no patch.
I am sure they could be extracted and moved over. I do not have the time
to do this and never bothered because nothing was broken until this driver.
>>> ../../../../../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.
I would prefer the 4.9.x path removing our dependence on the old Altera
tools. Binutils is fine. I have used the latest with old gcc.
Chris
More information about the devel
mailing list