* [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue
@ 2024-08-15 10:45 Waldemar Brodkorb
2024-08-15 12:50 ` Thomas Petazzoni via buildroot
2024-08-15 19:49 ` Yann E. MORIN
0 siblings, 2 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2024-08-15 10:45 UTC (permalink / raw)
To: buildroot
Since the update of ffmpeg to 6.1.1 in commit
fa36a6375dbeae131c596070570cec66c7bd2456 there are
a lot of microblaze build failures.
The compilation failure is triggered by GCC Bug 68485.
Fixes:
- http://autobuild.buildroot.net/results/524/524cef193aec30471e55eb0eecfa39f0d6011a91
And many more.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/ffmpeg/ffmpeg.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index 19c270a14b..a010c0168c 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -557,6 +557,11 @@ FFMPEG_CONF_OPTS += --disable-optimizations
FFMPEG_CFLAGS += -O0
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+FFMPEG_CONF_OPTS += --disable-optimizations
+FFMPEG_CFLAGS += -O0
+endif
+
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
FFMPEG_CFLAGS += -marm
endif
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue
2024-08-15 10:45 [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue Waldemar Brodkorb
@ 2024-08-15 12:50 ` Thomas Petazzoni via buildroot
2024-08-15 14:15 ` Waldemar Brodkorb
2024-08-15 19:49 ` Yann E. MORIN
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-15 12:50 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
On Thu, 15 Aug 2024 12:45:45 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
> +FFMPEG_CONF_OPTS += --disable-optimizations
> +FFMPEG_CFLAGS += -O0
> +endif
Could you clarify why both --disable-optimizations and -O0 are needed?
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue
2024-08-15 12:50 ` Thomas Petazzoni via buildroot
@ 2024-08-15 14:15 ` Waldemar Brodkorb
0 siblings, 0 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2024-08-15 14:15 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
Hi Thomas,
Thomas Petazzoni wrote,
> On Thu, 15 Aug 2024 12:45:45 +0200
> Waldemar Brodkorb <wbx@openadk.org> wrote:
>
> > +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
> > +FFMPEG_CONF_OPTS += --disable-optimizations
> > +FFMPEG_CFLAGS += -O0
> > +endif
>
> Could you clarify why both --disable-optimizations and -O0 are needed?
Yes, --disable-optimization prevents adding -O3 after our CFLAGS.
So indeed both things are required to complete the build.
best regards
Waldemar
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue
2024-08-15 10:45 [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue Waldemar Brodkorb
2024-08-15 12:50 ` Thomas Petazzoni via buildroot
@ 2024-08-15 19:49 ` Yann E. MORIN
1 sibling, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2024-08-15 19:49 UTC (permalink / raw)
To: Waldemar Brodkorb; +Cc: buildroot
Waldemar, All,
On 2024-08-15 12:45 +0200, Waldemar Brodkorb spake thusly:
> Since the update of ffmpeg to 6.1.1 in commit
> fa36a6375dbeae131c596070570cec66c7bd2456 there are
> a lot of microblaze build failures.
>
> The compilation failure is triggered by GCC Bug 68485.
I added a little blurb with your explanations why --disable-optimizations
was also needed.
> Fixes:
> - http://autobuild.buildroot.net/results/524/524cef193aec30471e55eb0eecfa39f0d6011a91
>
> And many more.
>
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/ffmpeg/ffmpeg.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
> index 19c270a14b..a010c0168c 100644
> --- a/package/ffmpeg/ffmpeg.mk
> +++ b/package/ffmpeg/ffmpeg.mk
> @@ -557,6 +557,11 @@ FFMPEG_CONF_OPTS += --disable-optimizations
> FFMPEG_CFLAGS += -O0
> endif
>
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
> +FFMPEG_CONF_OPTS += --disable-optimizations
> +FFMPEG_CFLAGS += -O0
> +endif
> +
> ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
> FFMPEG_CFLAGS += -marm
> endif
> --
> 2.39.2
>
> _______________________________________________
> 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] 4+ messages in thread
end of thread, other threads:[~2024-08-15 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 10:45 [Buildroot] [PATCH] package/ffmpeg: fix microblaze compile issue Waldemar Brodkorb
2024-08-15 12:50 ` Thomas Petazzoni via buildroot
2024-08-15 14:15 ` Waldemar Brodkorb
2024-08-15 19:49 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox