Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870349 - dev-ml/ocaml-ctypes fails to build with LTO
Summary: dev-ml/ocaml-ctypes fails to build with LTO
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Team for the ML programming language family
URL: https://github.com/ocamllabs/ocaml-ct...
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-09-16 10:38 UTC by Markus Walter
Modified: 2022-09-29 07:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,9.80 KB, text/plain)
2022-09-16 10:38 UTC, Markus Walter
Details
emerge log (ocaml-ctypes-0.20.0:20220916-081105.log,7.92 KB, text/x-log)
2022-09-16 10:39 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)