Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915773 - media-video/avidemux-2.8.1 fails to compile (lto): GUI_render.h:98:2: note: an enum with different value name is defined in another translation unit [-Werror=odr]
Summary: media-video/avidemux-2.8.1 fails to compile (lto): GUI_render.h:98:2: note: a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2023-10-14 19:09 UTC by ppw0
Modified: 2024-04-26 12:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (media-video:avidemux-2.8.1:20231014-175805.log.gz,35.50 KB, application/gzip)
2023-10-14 19:09 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-14 19:10 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-14 19:09:53 UTC
Created attachment 872808 [details]
build log

In a stricter lto environment, media-video/avidemux-2.8.1 will fail to emerge with the following error(s):
```
/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux2-2.8.1/avidemux/common/ADM_render/GUI_render.h:98:2: error: type �-Werror=odr][]]
   98 | }ADM_RENDER_TYPE;
      |  ^
/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux2-2.8.1/avidemux/common/ADM_render/GUI_render.h:98:2: note: an enum with different value name is defined in another translation unit
   98 | }ADM_RENDER_TYPE;
      |  ^
/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux2-2.8.1/avidemux/common/ADM_render/GUI_render.h:86:9: note: name ‘RENDER_QTOPENGL’ differs from name ‘RENDER_LIBVA’ defined in another translation unit
   86 |         RENDER_QTOPENGL=5,
      |         ^
/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux2-2.8.1/avidemux/common/ADM_render/GUI_render.h:89:9: note: mismatching definition
   89 |         RENDER_LIBVA=6,
      |         ^
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/avidemux3_qt5.dir/build.make:328: avidemux3_qt5] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux-2.8.1_build/buildQt4'
make[1]: *** [CMakeFiles/Makefile2:730: CMakeFiles/avidemux3_qt5.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-video/avidemux-2.8.1/work/avidemux-2.8.1_build/buildQt4'
make: *** [Makefile:139: all] Error 2
```

Attaching logs.
Comment 1 ppw0 2023-10-14 19:10:16 UTC
Created attachment 872809 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-04-26 12:50:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531656b9e614afc8078c6ddf34810ee8ed1a8baf

commit 531656b9e614afc8078c6ddf34810ee8ed1a8baf
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-26 06:55:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-26 12:48:58 +0000

    media-video/avidemux: mark as LTO-unsafe
    
    Upstream disables bug reports. Message received, no bug report
    submitted. Do not expect this to ever be fixed...
    
    Closes: https://bugs.gentoo.org/915773
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/avidemux/avidemux-2.8.1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)