In file included from /var/tmp/portage/sci-libs/gmsh-4.8.4/work/gmsh-4.8.4-source/Common/onelab.h:42, from /var/tmp/portage/sci-libs/gmsh-4.8.4/work/gmsh-4.8.4-source/Common/gmsh.cpp:93: /var/tmp/portage/sci-libs/gmsh-4.8.4/work/gmsh-4.8.4-source/Common/picojson.h:189:63: error: macro "_serialize" passed 2 arguments, but takes just 0 189 | template <typename Iter> void _serialize(Iter os, int indent) const; | ^ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/x86gprintrin.h:71, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/immintrin.h:27, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-j3-20210702-091244 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.9.6 Available Ruby profiles: [1] ruby26 (with Rubygems) * Available Rust versions: [1] rust-bin-1.53.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 HEAD of ::gentoo commit 42c08596f11058000f94df220c9cfd88ef49f3e7 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Jul 4 18:06:33 2021 +0000 2021-07-04 18:06:31 UTC emerge -qpvO sci-libs/gmsh [ebuild N ] sci-libs/gmsh-4.8.4 USE="jpeg -X -blas -cgns -examples -med -metis -mpi -netgen -opencascade -petsc -png -python -zlib"
Created attachment 721807 [details] emerge-info.txt
Created attachment 721810 [details] emerge-history.txt
Created attachment 721813 [details] environment
Created attachment 721816 [details] etc.portage.tar.bz2
Created attachment 721819 [details] logs.tar.bz2
Created attachment 721822 [details] sci-libs:gmsh-4.8.4:20210704-192520.log
Created attachment 721825 [details] temp.tar.bz2
Compiled without problems with gcc (Gentoo 10.3.0-r2 p3) 10.3.0. Error on same file with gcc (Gentoo 11.2.0 p1) 11.2.0.
Created attachment 736041 [details, diff] patch Patch proposal from https://gitlab.onelab.info/gmsh/gmsh/-/merge_requests/434/diffs
Bug confirmed here since the update to gcc-11
any forward progress in getting this into the main tree?
(In reply to John (EBo) David from comment #11) > any forward progress in getting this into the main tree? I can't seem to reproduce it with the same USE flags (and GCC 11, ofc). But patch seems reasonable and it's upstream so I'll add it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b72907b97d61fec2c9c3c10e1cc7bced23fd6741 commit b72907b97d61fec2c9c3c10e1cc7bced23fd6741 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-02 18:43:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-02 18:43:29 +0000 sci-libs/gmsh: add GCC 11 patch Seems to build fine without this for me but it's reasonable, upstream, and seems to help others. Closes: https://bugs.gentoo.org/800536 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/gmsh/files/gmsh-4.8.4-gcc11.patch | 80 ++++++++++++++++++++++++++++++ sci-libs/gmsh/gmsh-4.8.4.ebuild | 4 ++ 2 files changed, 84 insertions(+)