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

Bug 870349

Summary: dev-ml/ocaml-ctypes fails to build with LTO
Product: Gentoo Linux Reporter: Markus Walter <gentoo>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/ocamllabs/ocaml-ctypes/issues/715
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: emerge --info
emerge log

Description Markus Walter 2022-09-16 10:38:53 UTC
Created attachment 805483 [details]
emerge --info

If LTO is enabled globally ocaml-ctypes fails to build, even if LTO is disabled locally via package.env.

Upstream issue: https://github.com/ocamllabs/ocaml-ctypes/issues/715
Comment 1 Markus Walter 2022-09-16 10:39:18 UTC
Created attachment 805486 [details]
emerge log
Comment 2 Tupone Alfredo gentoo-dev 2022-09-24 18:40:29 UTC
The problem here is dev-lang/ocaml, not ocaml-ctypes.
lto should be disabled for ocaml
Comment 3 Larry the Git Cow gentoo-dev 2022-09-29 07:03:44 UTC
The bug has been closed via the following commit(s):

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

commit f4c0389745bf470502ddefc8065d50e6a9033260
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2022-09-29 07:00:02 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2022-09-29 07:00:02 +0000

    dev-lang/ocaml: filtering lto
    
    Closes: https://bugs.gentoo.org/872995
    Closes: https://bugs.gentoo.org/870349
    Closes: https://bugs.gentoo.org/835157
    Closes: https://bugs.gentoo.org/858446
    
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-lang/ocaml/{ocaml-4.14.0.ebuild => ocaml-4.14.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)