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 Oehme <gentoo>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: emerge --info
emerge log

Description Markus Oehme 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:
Comment 1 Markus Oehme 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):

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

    dev-lang/ocaml: filtering lto
    Signed-off-by: Alfredo Tupone <>

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