All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libglvnd: needs __sync_*_4 intrinsics
@ 2022-01-13  7:58 Fabrice Fontaine
  2022-01-13 17:52 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-13  7:58 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure raised since the addition of the package
in commit 0378e2e5d9ce9d5676975dfbff501360094fdc1a:

/tmp/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src/EGL/libEGL.so.1.1.0.p/libegl.c.o: in function `AtomicIncrement':
libegl.c:(.text+0x614): undefined reference to `__sync_add_and_fetch_4'

Fixes:
 - http://autobuild.buildroot.org/results/a204953020a714057ec6690e63a3ad8ac621acd5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libglvnd/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/libglvnd/Config.in b/package/libglvnd/Config.in
index 2d99be8632..cd19fde582 100644
--- a/package/libglvnd/Config.in
+++ b/package/libglvnd/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBGLVND
 	bool "libglvnd"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
 	depends on !BR2_STATIC_LIBS # dlfcn.h
 	help
 	  The GL Vendor-Neutral Dispatch library
@@ -45,4 +46,5 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
 endif
 
 comment "libglvnd needs a toolchain w/ dynamic library"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_STATIC_LIBS
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libglvnd: needs __sync_*_4 intrinsics
  2022-01-13  7:58 [Buildroot] [PATCH 1/1] package/libglvnd: needs __sync_*_4 intrinsics Fabrice Fontaine
@ 2022-01-13 17:52 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2022-01-13 17:52 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

Fabrice, All,

On 2022-01-13 08:58 +0100, Fabrice Fontaine spake thusly:
> Fix the following build failure raised since the addition of the package
> in commit 0378e2e5d9ce9d5676975dfbff501360094fdc1a:
> 
> /tmp/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src/EGL/libEGL.so.1.1.0.p/libegl.c.o: in function `AtomicIncrement':
> libegl.c:(.text+0x614): undefined reference to `__sync_add_and_fetch_4'
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a204953020a714057ec6690e63a3ad8ac621acd5
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/libglvnd/Config.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/libglvnd/Config.in b/package/libglvnd/Config.in
> index 2d99be8632..cd19fde582 100644
> --- a/package/libglvnd/Config.in
> +++ b/package/libglvnd/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_LIBGLVND
>  	bool "libglvnd"
> +	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
>  	depends on !BR2_STATIC_LIBS # dlfcn.h
>  	help
>  	  The GL Vendor-Neutral Dispatch library
> @@ -45,4 +46,5 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
>  endif
>  
>  comment "libglvnd needs a toolchain w/ dynamic library"
> +	depends on BR2_TOOLCHAIN_HAS_SYNC_4
>  	depends on BR2_STATIC_LIBS
> -- 
> 2.34.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-01-13 17:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13  7:58 [Buildroot] [PATCH 1/1] package/libglvnd: needs __sync_*_4 intrinsics Fabrice Fontaine
2022-01-13 17:52 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.