<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - mesa fails to check for gcc atomic primitives before using them"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93089#c21">Comment # 21</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - mesa fails to check for gcc atomic primitives before using them"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93089">bug 93089</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop@eckner.net" title="freedesktop@eckner.net">freedesktop@eckner.net</a>
</span></b>
<pre>This also popped up on archlinux32 when trying to package mesa for i486:
/usr/bin/ld: src/intel/vulkan/libanv_common.a(anv_allocator.c.o): in function
`anv_block_pool_alloc_new':
anv_allocator.c:(.text+0x1aa): undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: anv_allocator.c:(.text+0x307): undefined reference to
`__sync_lock_test_and_set_8'
/usr/bin/ld: src/intel/vulkan/libanv_common.a(anv_allocator.c.o): in function
`anv_free_list_pop':
anv_allocator.c:(.text+0x440): undefined reference to
`__sync_val_compare_and_swap_8'
/usr/bin/ld: src/intel/vulkan/libanv_common.a(anv_allocator.c.o): in function
`anv_free_list_push':
anv_allocator.c:(.text+0x526): undefined reference to
`__sync_val_compare_and_swap_8'
/usr/bin/ld: src/intel/vulkan/libanv_common.a(anv_allocator.c.o): in function
`anv_state_pool_alloc_no_vg':
anv_allocator.c:(.text+0x755): undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: anv_allocator.c:(.text+0x7a3): undefined reference to
`__sync_lock_test_and_set_8'
I seem unable to find a source file (only the mentioned *.a and *.o) which
actually tries to use these atomics - any idea, where I should look / try to
patch?
<span class="quote">> gcc --version</span >
gcc (GCC) 8.2.1 20180831
<span class="quote">> uname -a</span >
Linux arch32-i486-bs0 4.17.6-1-ARCH #1 SMP PREEMPT Wed Jul 18 08:34:04 UTC 2018
i486 GNU/Linux
Best Regards,
Erich</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>