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

Bug 735274

Summary: dev-lang/ocaml does not build with gcc-10 (patch included)
Product: Gentoo Linux Reporter: Martin 'The Bishop' Scheffler <the_bishop>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: RESOLVED FIXED    
Severity: normal CC: gienah, jstein, maintainer-needed, slyfox, the_bishop
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764, 762907    
Attachments: fix build errors with gcc-10

Description Martin 'The Bishop' Scheffler 2020-08-02 13:42:30 UTC
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.
Comment 1 Jonas Stein gentoo-dev 2020-08-03 19:28:37 UTC
Was it reported upstream already? It should be fixed upstream (too).
Comment 2 Larry the Git Cow gentoo-dev 2020-10-13 12:54:10 UTC
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(-)
Comment 3 Larry the Git Cow gentoo-dev 2021-01-28 22:15:22 UTC
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(+)
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2021-03-03 21:19:08 UTC
I see that stable and ~arch ocamls are both fixed. Assuming fixed.