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

Bug 672000

Summary: sci-libs/cholmod-2.1.2 : /.../cholmod_metis.c:164:21: error: idxtype undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: dschridde+gentoobugs, grozin, jan_braun, rei4dan, rose, zeekec
Priority: Normal Keywords: PATCH, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sci-libs:cholmod-2.1.2:20181126-034555.log
temp.tbz2
Possibly nonsense patch which fixes the compilation.

Description Toralf Förster gentoo-dev 2018-11-26 17:28:44 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Partition -I.. -I../Include -I/var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Include -I/usr/include/metis -O2 -pipe -march=native -c /var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Partition/cholmod_metis.c  -fPIC -DPIC -o .libs/cholmod_metis.o
/var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Partition/cholmod_metis.c: In function 'metis_memory_ok':
/var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Partition/cholmod_metis.c:164:21: error: 'idxtype' undeclared (first use in this function)
     if (s * sizeof (idxtype) >= ((double) Size_max))
                     ^~~~~~~
/var/tmp/portage/sci-libs/cholmod-2.1.2/work/cholmod-2.1.2/Partition/cholmod_metis.c:164:21: note: each undeclared identifier is reported only once for each function it appears in

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_test_20181118-211824

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.30.1
  [2]   rust-bin-1.30.1 *
java-config:
The following VMs are available for generation-2:


emerge -qpvO sci-libs/cholmod
[ebuild   R   ] sci-libs/cholmod-2.1.2  USE="metis -cuda -doc -lapack -minimal -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-11-26 17:28:47 UTC
Created attachment 556354 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-26 17:28:50 UTC
Created attachment 556356 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-11-26 17:28:52 UTC
Created attachment 556358 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-11-26 17:28:55 UTC
Created attachment 556360 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-11-26 17:28:58 UTC
Created attachment 556362 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-26 17:29:00 UTC
Created attachment 556364 [details]
sci-libs:cholmod-2.1.2:20181126-034555.log
Comment 7 Toralf Förster gentoo-dev 2018-11-26 17:29:03 UTC
Created attachment 556366 [details]
temp.tbz2
Comment 8 Jan-Matthias Braun 2018-11-27 12:54:37 UTC
Created attachment 556450 [details, diff]
Possibly nonsense patch which fixes the compilation.

Hi!

I am having no idea of what I'm doing. But I found this report
    https://github.com/jlblancoc/suitesparse-metis-for-windows/issues/6

it seems to be a similar problem and the suggested fix applies and fixes the compilation. If someone with the background knowledge could confirm that it does what it should … also semantically and not only syntactically. :-)
Comment 9 Larry the Git Cow gentoo-dev 2019-01-02 10:31:46 UTC
The bug has been closed via the following commit(s):

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

commit 9b5bae412263f24a9842f3dc148820eb7e722ef8
Author:     Justin Lecher <jlec@gentoo.org>
AuthorDate: 2019-01-02 10:31:21 +0000
Commit:     Justin Lecher <jlec@gentoo.org>
CommitDate: 2019-01-02 10:31:42 +0000

    sci-libs/cholmod: fix metis dep
    
    Closes: https://bugs.gentoo.org/672000
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

 sci-libs/cholmod/cholmod-2.1.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 10 Larry the Git Cow gentoo-dev 2019-01-02 11:39:30 UTC
The bug has been closed via the following commit(s):

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

commit 90a43dd12576f5a7c2f2472f3c537956d891ede4
Author:     Justin Lecher <jlec@gentoo.org>
AuthorDate: 2019-01-02 10:47:44 +0000
Commit:     Justin Lecher <jlec@gentoo.org>
CommitDate: 2019-01-02 11:39:23 +0000

    sci-libs/cholmod: fix metis dep
    
    Closes: https://bugs.gentoo.org/672000
    Package-Manager: Portage-2.3.53, Repoman-2.3.12
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

 sci-libs/cholmod/cholmod-2.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)