Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5
@ 2017-06-06 17:13 Khem Raj
  2017-06-06 17:32 ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-06-06 17:13 UTC (permalink / raw)
  To: openembedded-core

This is wrongly detected by configure since it only checks for
__sync_add_and_fetch and not __atomic_fetch_add, it decides
to let compiler emit references to atomic functions which
it expects to be provided by libgcc, but thats not the
case for armv5 arch

[YOCTO #11616]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 67039a9962..014044f381 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -79,6 +79,8 @@ PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
 # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
 FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
+CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS"
+
 # Multiple virtual/gl providers being built breaks staging
 EXCLUDE_FROM_WORLD = "1"
 
-- 
2.13.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5
  2017-06-06 17:13 [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5 Khem Raj
@ 2017-06-06 17:32 ` Burton, Ross
  2017-06-06 17:33   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-06-06 17:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

On 6 June 2017 at 18:13, Khem Raj <raj.khem@gmail.com> wrote:

> This is wrongly detected by configure since it only checks for
> __sync_add_and_fetch and not __atomic_fetch_add, it decides
> to let compiler emit references to atomic functions which
> it expects to be provided by libgcc, but thats not the
> case for armv5 arch
>

Is the true fix to adjust configure to look for the right operations?

Ross

[-- Attachment #2: Type: text/html, Size: 829 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5
  2017-06-06 17:32 ` Burton, Ross
@ 2017-06-06 17:33   ` Khem Raj
  2017-06-06 18:02     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-06-06 17:33 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Tue, Jun 6, 2017 at 10:32 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 6 June 2017 at 18:13, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> This is wrongly detected by configure since it only checks for
>> __sync_add_and_fetch and not __atomic_fetch_add, it decides
>> to let compiler emit references to atomic functions which
>> it expects to be provided by libgcc, but thats not the
>> case for armv5 arch
>
>
> Is the true fix to adjust configure to look for the right operations?
>

yes. and there is such a patch proposed as well to mesa but
it has got some feedback so I did not bring that in. This patch
instead is surgical.

> Ross


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5
  2017-06-06 17:33   ` Khem Raj
@ 2017-06-06 18:02     ` Burton, Ross
  2017-06-06 18:04       ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-06-06 18:02 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

On 6 June 2017 at 18:33, Khem Raj <raj.khem@gmail.com> wrote:

> yes. and there is such a patch proposed as well to mesa but
> it has got some feedback so I did not bring that in. This patch
> instead is surgical.
>

Cool.  Just got to remember to back this out when upstream is fixed.

Thanks,
Ross

[-- Attachment #2: Type: text/html, Size: 746 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5
  2017-06-06 18:02     ` Burton, Ross
@ 2017-06-06 18:04       ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2017-06-06 18:04 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Tue, Jun 6, 2017 at 11:02 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 6 June 2017 at 18:33, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> yes. and there is such a patch proposed as well to mesa but
>> it has got some feedback so I did not bring that in. This patch
>> instead is surgical.
>
>
> Cool.  Just got to remember to back this out when upstream is fixed.
>

yes, although effects will be same.

> Thanks,
> Ross


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-06 18:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-06 17:13 [PATCH] mesa: Add define to indicate missing 64bit atomics on armv5 Khem Raj
2017-06-06 17:32 ` Burton, Ross
2017-06-06 17:33   ` Khem Raj
2017-06-06 18:02     ` Burton, Ross
2017-06-06 18:04       ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox