Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 895102

Summary: media-libs/opencollada-1.6.68 - cc1plus: all warnings being treated as errors
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Adrian <agrigo2001>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867    
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
media-libs:opencollada-1.6.68:20230217-082018.log.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2023-02-17 09:59:34 UTC
too long lines were shrinked:

/var/tmp/portage/media-libs/opencollada-1.6.68/work/OpenCOLLADA-1.6.68/DAEValidator/library/src/DaeValidator.cpp:315:30: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
  315 |                 const auto & parents = dae.root().selectNodes("//*[@sid]/..");
      |                              ^~~~~~~
/var/tmp/portage/media-libs/opencollada-1.6.68/work/OpenCOLLADA-1.6.68/DAEValidator/library/src/DaeValidator.cpp:315:62: note: the temporary was destroyed at the end of the full expression (& dae)->opencollada::Dae::<anonymous>.opencollada::XmlDoc::root().opencollada::XmlNode::selectNodes(std::__cxx
  315 |                 const auto & parents = dae.root().selectNodes("//*[@sid]/..");
      |                                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[284/304] /usr/bin/x86_64-pc-linux-gnu-g++ -DDAEValidatorLibrary_EXPORTS -DGENERATEDSAXPARSER_XMLPARSER_LIBXML -DXMLPARSER_LIBXML -I/var/tmp/portage/media-libs/opencollada-1.6.68/work/OpenCOLLADA-1.6.68/DAEValidator/library/include -I/usr/include/libxml2 -I/var/tmp/portage/media-libs/opencollada-1.6
FAILED: DAEValidator/CMakeFiles/DAEValidatorLibrary.dir/library/src/Dae.cpp.o 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20230214-230019

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-11
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.2 *

  HEAD of ::gentoo
commit 33bda6fc1315b7c114605f8323b72ffc50b21bed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Feb 17 06:46:58 2023 +0000

    2023-02-17 06:46:58 UTC

emerge -qpvO media-libs/opencollada
[ebuild  N    ] media-libs/opencollada-1.6.68  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2023-02-17 09:59:35 UTC
Created attachment 852140 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-17 09:59:36 UTC
Created attachment 852142 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-02-17 09:59:37 UTC
Created attachment 852144 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-02-17 09:59:38 UTC
Created attachment 852146 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-02-17 09:59:40 UTC
Created attachment 852148 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-17 09:59:41 UTC
Created attachment 852150 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-17 09:59:42 UTC
Created attachment 852152 [details]
media-libs:opencollada-1.6.68:20230217-082018.log.bz2
Comment 8 Toralf Förster gentoo-dev 2023-02-17 09:59:43 UTC
Created attachment 852154 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2023-04-16 23:17:01 UTC
The bug has been closed via the following commit(s):

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

commit b76590f9fb8615da3da9d783ad841c0e3881a27b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-16 10:27:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-16 23:16:42 +0000

    media-libs/opencollada: fix build w/ gcc 13, drop -Werror
    
    Closes: https://bugs.gentoo.org/877335
    Closes: https://bugs.gentoo.org/895102
    Closes: https://bugs.gentoo.org/899750
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/opencollada-1.6.68-gcc13.patch           | 35 ++++++++++++++++++++++
 .../files/opencollada-1.6.68-werror.patch          | 11 +++++++
 media-libs/opencollada/opencollada-1.6.68.ebuild   |  4 ++-
 3 files changed, 49 insertions(+), 1 deletion(-)