Created attachment 652346 [details, diff] fix build errors with gcc-10 gcc-10 is more picky than earlier versions about multiple definitions of global variables. My proposed patch resolves this problems.
Was it reported upstream already? It should be fixed upstream (too).
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b92854d276a8b00adccea7265b068b961530a3e commit 6b92854d276a8b00adccea7265b068b961530a3e Author: Mark Wright <gienah@gentoo.org> AuthorDate: 2020-10-10 08:13:21 +0000 Commit: Mark Wright <gienah@gentoo.org> CommitDate: 2020-10-13 12:52:57 +0000 dev-lang/ocaml: Bump to 4.11.1 Thanks to Martin 'The Bishop' Scheffler for reporting ocaml does not compile with gcc-10, and for the patch. This appears to be fixed upstream. Thanks to Josh Parsons for the x32 compile patch, this appears to be fixed upstream. Bug: https://bugs.gentoo.org/735274 Bug: https://bugs.gentoo.org/555598 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Mark Wright <gienah@gentoo.org> dev-lang/ocaml/Manifest | 1 + dev-lang/ocaml/metadata.xml | 5 ++- dev-lang/ocaml/ocaml-4.11.1.ebuild | 74 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77fd8a0f1e7d400c8658105c0e0163ac49b6412b commit 77fd8a0f1e7d400c8658105c0e0163ac49b6412b Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2021-01-28 22:15:08 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2021-01-28 22:15:08 +0000 dev-lang/ocaml: build with gcc-10 Bug: https://bugs.gentoo.org/735274 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> dev-lang/ocaml/files/ocaml-4.05.0-gcc10.patch | 59 ++++++++++++ dev-lang/ocaml/ocaml-4.05.0-r2.ebuild | 132 ++++++++++++++++++++++++++ 2 files changed, 191 insertions(+)
I see that stable and ~arch ocamls are both fixed. Assuming fixed.