[gcc 5.3] Compile error in libvpx: "invalid use of array with unspecified bounds"

RESOLVED WORKSFORME

Status

()

Core
WebRTC: Audio/Video
P2
normal
Rank:
25
RESOLVED WORKSFORME
2 years ago
8 months ago

People

(Reporter: mbrubeck, Unassigned)

Tracking

45 Branch
Unspecified
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
In a clobber build of mozilla-central tip on Debian testing ("stretch") with GCC 5.3.1, I get the following build error:

> /home/mbrubeck/src/mozilla-central/media/libvpx/vp8/common/treecoder.c: In function ‘tree2tok’:
> /home/mbrubeck/src/mozilla-central/media/libvpx/vp8/common/treecoder.c:32:9: > error: invalid use of array with unspecified bounds
>          const vp8_tree_index j = t[i++];
>          ^

I think this started happening when I upgraded to GCC 5.3.
(Reporter)

Comment 1

2 years ago
It looks like this is a bug in libvpx; the Ubuntu and Debian packagers have applied a patch to fix it:

https://bugs.launchpad.net/ubuntu/+source/libvpx/+bug/1528297
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809129
Ralph - can you apply a patch like the above?
backlog: --- → webrtc/webaudio+
Rank: 25
Component: Audio/Video → WebRTC: Audio/Video
Flags: needinfo?(giles)
Priority: -- → P2
We could. However, upstream claims this was a gcc 5 which was fixed in subsequent releases. Upstream never applied the patch. Since things apparently work with a newer point release of gcc 5, I think we're ok without addressing thing. Please feel free to re-open if you still need the work-around.

Sorry for not responding promptly.
Status: NEW → RESOLVED
Last Resolved: 8 months ago
Flags: needinfo?(giles)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.