Bug 231101 - devel/cmake: -flto option breaks the build: Cannot open "/usr/bin/../lib/LLVMgold.so"
Summary: devel/cmake: -flto option breaks the build: Cannot open "/usr/bin/../lib/LLVM...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-02 17:56 UTC by Yuri Victorovich
Modified: 2019-06-12 06:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2018-09-02 17:56:01 UTC
Testcase: port graphics/py-open3d-python with removed patch files/Python_CMakeLists.txt

cmake introduces the -flto option only on 12 for some reason. This causes the build to fail:
/usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so"
  c++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Conrad Meyer freebsd_committer 2018-09-04 15:04:51 UTC
cmake isn't part of base.  Should this be retargeted at the port?