Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940310 - sci-astronomy/montage-5.0 - [gcc-15] mDiffExec.c: error: type of svc_run does not match original declaration [-Werror=lto-type-mismatch]
Summary: sci-astronomy/montage-5.0 - [gcc-15] mDiffExec.c: error: type of svc_run does...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-09-26 19:44 UTC by Toralf Förster
Modified: 2025-03-17 07:49 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.16 KB, text/plain)
2024-09-26 19:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,81.32 KB, text/plain)
2024-09-26 19:44 UTC, Toralf Förster
Details
environment (environment,80.92 KB, text/plain)
2024-09-26 19:44 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-09-26 19:44 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.86 KB, application/x-xz)
2024-09-26 19:44 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.55 KB, application/x-xz)
2024-09-26 19:44 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,163.25 KB, text/plain)
2024-09-26 19:44 UTC, Toralf Förster
Details
sci-astronomy:montage-5.0:20240926-192752.log (sci-astronomy:montage-5.0:20240926-192752.log,37.48 KB, text/plain)
2024-09-26 19:44 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,92.64 KB, application/x-xz)
2024-09-26 19:44 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-09-26 19:44:38 UTC
	checkWCS.o checkFile.o                              \
	-L../lib -lwcstools -lcfitsio -lcoord -lmtbl -lsvc -lwww -lboundaries -lpixbounds -ltwoplane  -lm
x86_64-pc-linux-gnu-gcc -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 -o mDiff mDiff.o debugCheck.o checkHdr.o checkWCS.o \
	-L../lib -lwcstools -lcfitsio -lcoord -lmtbl -lsvc -lwww -lboundaries -lpixbounds -ltwoplane  -lm
x86_64-pc-linux-gnu-gcc -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 -o mDiffExec mDiffExec.o filePath.o checkHdr.o \
	checkWCS.o -L../lib -lwcstools -lcfitsio -lcoord -lmtbl -lsvc -lwww -lboundaries -lpixbounds -ltwoplane  -lm
mDiffExec.c:37:7: error: type of svc_run does not match original declaration [-Werror=lto-type-mismatch]
   37 | char *svc_run  (char *cmd);
      |       ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20240925-080506

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<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 *
clang/llvm (if any):
clang version 19.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/19/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/19
19.1.0
Python 3.12.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.3 *
go version go1.23.1 linux/amd64

  HEAD of ::gentoo
commit 00e193a15f5f69a408a790fcddb05af5a3740959
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 26 17:51:51 2024 +0000

    2024-09-26 17:51:51 UTC

emerge -qpvO =sci-astronomy/montage-5.0
[ebuild  N    ] sci-astronomy/montage-5.0  USE="-doc -mpi"
Comment 1 Toralf Förster gentoo-dev 2024-09-26 19:44:39 UTC
Created attachment 903918 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-09-26 19:44:40 UTC
Created attachment 903919 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-09-26 19:44:41 UTC
Created attachment 903920 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-09-26 19:44:42 UTC
Created attachment 903921 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-09-26 19:44:43 UTC
Created attachment 903922 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-09-26 19:44:43 UTC
Created attachment 903923 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-09-26 19:44:45 UTC
Created attachment 903924 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-09-26 19:44:46 UTC
Created attachment 903925 [details]
sci-astronomy:montage-5.0:20240926-192752.log
Comment 9 Toralf Förster gentoo-dev 2024-09-26 19:44:47 UTC
Created attachment 903926 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2025-03-14 08:11:59 UTC
The bug has been closed via the following commit(s):

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

commit 68cb773bf11b4362726d37bdb162c2198144fdcc
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2025-02-20 23:17:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-14 08:10:33 +0000

    sci-astronomy/montage: add 6.1
    
    I have to drop IUSE=mpi because it cannot possibly compile due to lack
    of definitions of some functions: tsave() and trestore(), which are
    declared.
    
    https://github.com/Caltech-IPAC/Montage/issues/25 is closed without
    fixing, but has more context.
    
    Closes: https://bugs.gentoo.org/710420
    Closes: https://bugs.gentoo.org/725282
    Closes: https://bugs.gentoo.org/727974
    Closes: https://bugs.gentoo.org/741080
    Closes: https://bugs.gentoo.org/888553
    Closes: https://bugs.gentoo.org/920316
    Closes: https://bugs.gentoo.org/940310
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-astronomy/montage/Manifest                     |   1 +
 .../montage/files/montage-6.1-montagelib-dep.patch |  30 +++
 .../files/montage-6.1-presentation-strcpy.patch    |  21 ++
 .../montage/files/montage-6.1-prototypes.patch     | 283 +++++++++++++++++++++
 .../montage/files/montage-6.1-tcol-cntr.patch      |  22 ++
 sci-astronomy/montage/montage-6.1.ebuild           |  71 ++++++
 6 files changed, 428 insertions(+)
Comment 11 Eli Schwartz gentoo-dev 2025-03-17 07:07:13 UTC
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--defsym=__gentoo_check_ldflags__=0 -o mFlattenExec mFlattenExec.o filePath.o -L../lib -lwcstools -lcfitsio -lcoord -lmtbl -lsvc -lwww -lboundaries -lpixbounds -ltwoplane  -lm
mFlattenExec.c:38:7: error: type of ‘svc_run’ does not match original declaration [-Werror=lto-type-mismatch]
   38 | char *svc_run  (char *cmd);
      |       ^
../lib/src/svc/svclib.c:615:5: note: return value type mismatch
  615 | int svc_run(svcstr)
      |     ^
../lib/src/svc/svclib.c:615:5: note: ‘svc_run’ was previously declared here
../lib/src/svc/svclib.c:615:5: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
lto1: some warnings being treated as errors
lto-wrapper: fatal error: x86_64-pc-linux-gnu-gcc returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:155: mFlattenExec] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-astronomy/montage-6.1/work/Montage-6.1/Montage'
make: *** [Makefile:5: all] Error 2
 * ERROR: sci-astronomy/montage-6.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-astronomy/montage-6.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-astronomy/montage-6.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/sci-astronomy/montage-6.1:20250317-070155.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-astronomy/montage-6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-astronomy/montage-6.1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-astronomy/montage-6.1/work/Montage-6.1'
 * S: '/var/tmp/portage/sci-astronomy/montage-6.1/work/Montage-6.1'



Unsure why this ticket was closed. Do we automatically close all open tickets whenever we package a new version of something, in the hope that it is probably hopefully fixed?
Comment 12 Alexey 2025-03-17 07:49:45 UTC
No, because I successfully built it, and probably missed that this one was about lto