All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8
@ 2024-03-04 16:19 Fabrice Fontaine
  2024-03-04 21:49 ` Peter Korsgaard
  2024-03-19 16:34 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-03-04 16:19 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine

Fix the following build failure with gcc 4.8 raised since bump to
version 2.20.0 in commit e926c83928e08c0ecd6cd4383e1cca151a8a4d2c and
https://github.com/intel/libva/commit/4f5a4345fc9f92565763ca22026891475e3cf835:

../va/va.c: In function 'va_new_opendriver':
../va/va.c:695:9: error: 'for' loop initial declarations are only allowed in C99 mode
         for (unsigned int i = 0; i < num_drivers; i++)
         ^
../va/va.c:695:9: note: use option -std=c99 or -std=gnu99 to compile your code

Fixes: e926c83928e08c0ecd6cd4383e1cca151a8a4d2c
 - http://autobuild.buildroot.org/results/b9dbd104fa05c59883d87f74e6522c55620a4252

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libva/libva.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libva/libva.mk b/package/libva/libva.mk
index 9e9d5d698c..4481be9e7b 100644
--- a/package/libva/libva.mk
+++ b/package/libva/libva.mk
@@ -10,6 +10,7 @@ LIBVA_LICENSE = MIT
 LIBVA_LICENSE_FILES = COPYING
 LIBVA_INSTALL_STAGING = YES
 LIBVA_DEPENDENCIES = host-pkgconf libdrm
+LIBVA_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
 
 # libdrm is a hard-dependency
 LIBVA_CONF_OPTS = \
-- 
2.43.0

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

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

* Re: [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8
  2024-03-04 16:19 [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8 Fabrice Fontaine
@ 2024-03-04 21:49 ` Peter Korsgaard
  2024-03-19 16:34 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-03-04 21:49 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with gcc 4.8 raised since bump to
 > version 2.20.0 in commit e926c83928e08c0ecd6cd4383e1cca151a8a4d2c and
 > https://github.com/intel/libva/commit/4f5a4345fc9f92565763ca22026891475e3cf835:

 > ../va/va.c: In function 'va_new_opendriver':
 > ../va/va.c:695:9: error: 'for' loop initial declarations are only allowed in C99 mode
 >          for (unsigned int i = 0; i < num_drivers; i++)
 >          ^
 > ../va/va.c:695:9: note: use option -std=c99 or -std=gnu99 to compile your code

 > Fixes: e926c83928e08c0ecd6cd4383e1cca151a8a4d2c
 >  - http://autobuild.buildroot.org/results/b9dbd104fa05c59883d87f74e6522c55620a4252

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8
  2024-03-04 16:19 [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8 Fabrice Fontaine
  2024-03-04 21:49 ` Peter Korsgaard
@ 2024-03-19 16:34 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-03-19 16:34 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Bernd Kuhls, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure with gcc 4.8 raised since bump to
 > version 2.20.0 in commit e926c83928e08c0ecd6cd4383e1cca151a8a4d2c and
 > https://github.com/intel/libva/commit/4f5a4345fc9f92565763ca22026891475e3cf835:

 > ../va/va.c: In function 'va_new_opendriver':
 > ../va/va.c:695:9: error: 'for' loop initial declarations are only allowed in C99 mode
 >          for (unsigned int i = 0; i < num_drivers; i++)
 >          ^
 > ../va/va.c:695:9: note: use option -std=c99 or -std=gnu99 to compile your code

 > Fixes: e926c83928e08c0ecd6cd4383e1cca151a8a4d2c
 >  - http://autobuild.buildroot.org/results/b9dbd104fa05c59883d87f74e6522c55620a4252

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2023.11.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-03-19 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04 16:19 [Buildroot] [PATCH 1/1] package/libva: fix build with gcc 4.8 Fabrice Fontaine
2024-03-04 21:49 ` Peter Korsgaard
2024-03-19 16:34 ` Peter Korsgaard

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.