New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 46931 - flang fails to build in 11.0-rc1 if documentation is enabled
Summary: flang fails to build in 11.0-rc1 if documentation is enabled
Status: RESOLVED FIXED
Alias: None
Product: flang
Classification: Unclassified
Component: Build System (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-11.0.0
  Show dependency tree
 
Reported: 2020-07-31 05:18 PDT by Bernhard Rosenkraenzer
Modified: 2020-08-20 07:25 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments
Workaround patch (disables pulling in empty/non-functional docs directories) (959 bytes, patch)
2020-07-31 05:18 PDT, Bernhard Rosenkraenzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2020-07-31 05:18:24 PDT
Created attachment 23800 [details]
Workaround patch (disables pulling in empty/non-functional docs directories)

Trying to build LLVM 11.0-rc1 with both flang and docs enabled causes the build to fail with the error at the end of this message.

I'm attaching a patch that makes it compile by disabling building the nonexistant docs - but obviously actually having docs there would be a nicer fix.


FAILED: tools/flang/docs/CMakeFiles/docs-flang-html
cd /home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/build/tools/flang/docs && /usr/bin/sphinx-build -b html -d /home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/build/tools/flang/docs/_doctrees-flang-html -q -t builder-html /home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/flang/docs /home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/build/tools/flang/docs/html

Application error:
config directory doesn't contain a conf.py file (/home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/flang/docs)
[16/721] Generating man Sphinx documentation for flang into "/home/bero/temp/abf/llvm/BUILD/llvm-project-release-11.x/build/tools/flang/docs/man"
FAILED: tools/flang/docs/CMakeFiles/docs-flang-man
Comment 1 sameeran joshi 2020-08-06 13:11:32 PDT
Bernhard Rosenkraenzer, thanks for finding and providing a fix for that.
There is a fix available at 
https://reviews.llvm.org/D85470
Do you have any extra set of flags to cmake, apart from the ones mentioned in the commit summary?
Comment 2 sameeran joshi 2020-08-11 10:57:34 PDT
Can you please verify if the issue still exists?
I have pushed a fix for the issue.

https://github.com/llvm/llvm-project/commit/2fc86ccdd25309b9f77739aaed4a7b06f1c6f111
Comment 3 Hans Wennborg 2020-08-20 07:25:34 PDT
(In reply to sameeran joshi from comment #2)
> Can you please verify if the issue still exists?
> I have pushed a fix for the issue.
> 
> https://github.com/llvm/llvm-project/commit/
> 2fc86ccdd25309b9f77739aaed4a7b06f1c6f111

That fixed it for me. Pushed to 11.x as b0b18ec9e8a7e7c7ca6e01d1a6f636622fa59941.