x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I../libseq -I../include -DAdd_ -I/usr/include/metis -I../PORD/include/ -I/usr/include/scotch -Dpord -Dmetis -Dscotch -c mumps_metis_int.c -o mumps_metis_int.o mumps_metis_int.c: In function ‘mumps_metis_idxsize_’: mumps_metis_int.c:35:24: error: ‘IDXTYPEWIDTH’ undeclared (first use in this function) *metis_idx_size=IDXTYPEWIDTH; ^~~~~~~~~~~~ mumps_metis_int.c:35:24: 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/mumps [ebuild N ] sci-libs/mumps-5.1.2 USE="metis scotch -doc -examples -mpi -static-libs"
Created attachment 556342 [details] emerge-info.txt
Created attachment 556344 [details] emerge-history.txt
Created attachment 556346 [details] environment
Created attachment 556348 [details] etc.portage.tbz2
Created attachment 556350 [details] sci-libs:mumps-5.1.2:20181126-034139.log
Created attachment 556352 [details] temp.tbz2
I can confirm this with gcc-8.3.0
I have this same problem. I found that /usr/include/scotch/metis.h (from scotch- 5.1.12b) was preferred by gcc over the correct file in /usr/include/metis.h. scotch-6.0.4-r2 moves metis.h into /usr/include/scotch/metis/ so this problem does not occur. This would be fixed by https://bugs.gentoo.org/670759 if that pull request is ever approved. Alternatively, just removing the offending header file (and /usr/include/scotch/parmetis.h if parmetis is installed) will serve as a workaround.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833678ddd4d9ef7dfcabacc5fcc77b4f647aca91 commit 833678ddd4d9ef7dfcabacc5fcc77b4f647aca91 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-09-18 22:02:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-09-18 22:27:40 +0000 sci-libs/mumps: bump to 5.3.3 Closes: https://bugs.gentoo.org/727356 Closes: https://bugs.gentoo.org/721992 Closes: https://bugs.gentoo.org/711034 Closes: https://bugs.gentoo.org/671998 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/mumps/Manifest | 1 + sci-libs/mumps/mumps-5.3.3.ebuild | 201 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 202 insertions(+)