Current head compilation problem

Sree Harsha Konduri sreehars at
Sat Aug 17 06:38:29 UTC 2013


After applying the patch that Joel has sent out, there is a new bug that is
occuring in smpatomic tests.

The bug is shown below,

gmake[6]: Entering directory
i386-rtems4.11-gcc -B../../../../../pc386/lib/ -specs bsp_specs -qrtems
  -mtune=i386 -O2 -g -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
tasks.o -MD -MP -MF .deps/tasks.Tpo -c -o tasks.o
In file included from
../../../../../pc386/lib/include/rtems/score/cpustdatomic.h: In function
../../../../../pc386/lib/include/rtems/score/cpustdatomic.h:83:3: error:
invalid memory model for '__atomic_load'
   return atomic_load_explicit( object, order );
../../../../../pc386/lib/include/rtems/score/cpustdatomic.h:91:3: error:
invalid memory model for '__atomic_load'
   return atomic_load_explicit( object, order );
gmake[6]: *** [tasks.o] Error 1
gmake[6]: Leaving directory
gmake[5]: *** [all-recursive] Error 1


On Fri, Aug 16, 2013 at 4:57 PM, Joel Sherrill <joel.sherrill at>wrote:

> I think the change from #ifdef to #if changed this.
> string rather than a numeric value. I added
> did some other clean up on the driver.
> With the attached patch, it compiles again and
> ticker runs.
> Please review and let me know if OK to commit.
> On 8/16/2013 11:03 AM, Gedare Bloom wrote:
>> OK. If you find the bug in the modified clockdrv_shell.h think about
>> how it might be fixed.
>> On Fri, Aug 16, 2013 at 11:49 AM, Vipul Nayyar <nayyar_vipul at>
>> wrote:
>>> Hello,
>>> Will look more closely into the matter.
>>> FWIW, I compiled the pc386 bsp giving the same configure statement as
>>> Sree
>>> gave, in my personal fork of rtems from github which is about 18 or so
>>> commits behind the master( that means my fork does not contain Sebastian
>>> &
>>> Chris' #define -> #if patches).
>>> And it compiled successfully, without giving any errors.
>>> What I feel, is that the following two patches that modified
>>> clockdrv_shell.h need to be checked again..
>>> **94aad6a117<>
>>> **bfb8beaac8<>
>>> My patches for pc386 were checked carefully by Sebastian, but will have
>>> to
>>> look more closely to find any bug caused due to my patches.
>>> Regards
>>> Vipul Nayyar
> --
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list