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

Bug 941936

Summary: sci-physics/hepmc-3.3.0 - [libtool] [gcc-15] /.../main63.f: error: type of hepmc3_new_writer does not match original declaration [-Werror=lto-type-mismatch]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: APN-Pucky <alexander>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, eschwartz, sci-physics
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/39503
https://gitlab.cern.ch/hepmc/HepMC3/-/issues/97
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt
sci-physics:hepmc-3.3.0:20241020-222110.log

Description Toralf Förster gentoo-dev 2024-10-21 16:56:27 UTC
too long lines were shrinked:

lto-wrapper: note: see the -flto option documentation for more information
[66/68] : && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -Wno-strict-aliasing -Wno-deprecated-declarations -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__
[67/68] /usr/bin/x86_64-pc-linux-gnu-gfortran -I/var/tmp/portage/sci-physics/hepmc-3.3.0/work/HepMC3-3.3.0/examples/Pythia6Example -I/var/tmp/portage/sci-physics/hepmc-3.3.0/work/HepMC3-3.3.0/include -I/var/tmp/portage/sci-physics/hepmc-3.3.0/work/HepMC3-3.3.0/interfaces/pythia6/include/Pythia6 -O2 
[68/68] : && /usr/bin/x86_64-pc-linux-gnu-gfortran -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-a
FAILED: outputs/bin/pythia6_example.exe 
: && /usr/bin/x86_64-pc-linux-gnu-gfortran -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing 
/var/tmp/portage/sci-physics/hepmc-3.3.0/work/HepMC3-3.3.0/examples/Pythia6Example/main63.f:77:132: error: type of hepmc3_new_writer does not match original declaration [-Werror=lto-type-mismatch]
   77 |       OUTID(1)=hepmc3_new_writer(0,1,'ME.hepmc'//char(0))
      |                                                                                                                                    ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0-20241020-152926

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
llvm-config: Python 3.12.7
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *

  HEAD of ::gentoo
commit ae5907211fc28633bd039cd88b5cc0846b857751
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 20 22:03:27 2024 +0000

    2024-10-20 22:03:26 UTC

emerge -qpvO =sci-physics/hepmc-3.3.0
[ebuild  N    ] sci-physics/hepmc-3.3.0  USE="examples -doc -python -root -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-10-21 16:56:28 UTC
Created attachment 906493 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-21 16:56:29 UTC
Created attachment 906494 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-10-21 16:56:30 UTC
Created attachment 906495 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-10-21 16:56:31 UTC
Created attachment 906496 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-10-21 16:56:32 UTC
Created attachment 906497 [details]
logs.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-21 16:56:33 UTC
Created attachment 906498 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2024-10-21 16:56:34 UTC
Created attachment 906499 [details]
sci-physics:hepmc-3.3.0:20241020-222110.log
Comment 8 Toralf Förster gentoo-dev 2024-10-21 16:56:35 UTC
The file size of ./files/temp.tar.xz is too big (4.2M) for an upload. For few weeks the link http://tinderbox.zwiebeltoralf.de:31560/23.0-20241020-152926/var/tmp/tb/issues/20241020-222238-sci-physics_hepmc-3.3.0/files/temp.tar.xz is valid.
Comment 9 Larry the Git Cow gentoo-dev 2024-11-28 15:19:50 UTC
The bug has been closed via the following commit(s):

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

commit 813fa9a9a78880b7b8f7c65df5d4f613b2d74cee
Author:     Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
AuthorDate: 2024-11-28 13:56:39 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2024-11-28 15:19:35 +0000

    sci-physics/hepmc: filter lto
    
    Closes: https://bugs.gentoo.org/941937
    Closes: https://bugs.gentoo.org/941936
    Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
    Closes: https://github.com/gentoo/gentoo/pull/39503
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sci-physics/hepmc/hepmc-3.2.7.ebuild | 3 ++-
 sci-physics/hepmc/hepmc-3.3.0.ebuild | 3 ++-
 sci-physics/hepmc/hepmc-9999.ebuild  | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
Comment 10 Eli Schwartz gentoo-dev 2024-11-28 16:01:27 UTC
Just FYI with regard to the upstream bug report this has nothing to do with GCC 15.

The tinderbox mentions that this build image happened to contain gcc 15, in order to provide a hint in case you attempt to reproduce the problem with stable gcc 13 / 14 and cannot do so. You're expected to verify the problem yourself too. ;)