Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456326 - sys-devel/llvm-3.2 USE=doc MAKEOPTS=-j3 - Exception occurred: File "/usr/lib/python2.7/site-packages/sphinx/util/osutil.py", line 104, in movefile os.rename(source, dest) OSError: [Errno 2] No such file or directory
Summary: sys-devel/llvm-3.2 USE=doc MAKEOPTS=-j3 - Exception occurred: File "/usr/li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-09 15:53 UTC by Petr Zima
Modified: 2013-06-10 21:58 UTC (History)
4 users (show)

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


Attachments
ebuild patch to disable parallel build (llvm-3.2.ebuild.patch,430 bytes, patch)
2013-02-09 15:57 UTC, Petr Zima
Details | Diff
ebuild patch to build man and html separately (llvm-3.2.ebuild.patch,462 bytes, patch)
2013-02-13 18:58 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Zima 2013-02-09 15:53:34 UTC
Installation fails with:

[...]
llvm[0]: ***** Completed Release Build
make -j3 -C docs -f Makefile.sphinx man html
make: Entering directory `/tmp/paludis/sys-devel-llvm-3.2/work/llvm-3.2.src/docs'
sphinx-build -b man -d _build/doctrees   . _build/man
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Making output directory...
Running Sphinx v1.1.3
Running Sphinx v1.1.3
loading pickled environment... not yet created
loading pickled environment... not yet created
building [man]: all manpages
updating environment: 64 added, 0 changed, 0 removed
reading sources... [  1%] AliasAnalysis                                                           
updating environment: 64 added, 0 changed, 0 removed
reading sources... [  1%] AliasAnalysis                                        ^Mreading sources..
looking for now-outdated files... none found
pickling environment... reading sources... [ 96%] subsystems                                      
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... /tmp/paludis/sys-devel-llvm-3.2/work/llvm-3.2.src/docs/HowToUseInstrMapping
done
writing output... [  1%] AliasAnalysis                                         ^M
Exception occurred:
  File "/usr/lib/python2.7/site-packages/sphinx/util/osutil.py", line 104, in movefile
    os.rename(source, dest)
OSError: [Errno 2] No such file or directory
The full traceback has been saved in /tmp/paludis/sys-devel-llvm-3.2/temp/sphinx-err-5S8jEB.log, i
Please also report this if it was a user error, so that a better error message can be provided nex
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [man] Error 1
make: *** Waiting for unfinished jobs....


Reproducible: Always
Comment 1 Petr Zima 2013-02-09 15:57:06 UTC
Created attachment 338406 [details, diff]
ebuild patch to disable parallel build

This obvious workaround avoids the problem. However, the bug should be reported upstream to fix the build system.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-12 22:42:10 UTC
(I'm on python@)

Hmm, do I understand correctly that the problem is that both builds try to reuse the same doctree directory?
Comment 3 Petr Zima 2013-02-13 05:01:30 UTC
(In reply to comment #2)
> (I'm on python@)
> 
> Hmm, do I understand correctly that the problem is that both builds try to
> reuse the same doctree directory?

Exactly, they both run sphinx-build with -d $(BUILDDIR)/doctrees. Now I realize, that this is not necesarilly upstream problem at all. The several Makefile.sphinx targets are just not to be run simultaneously, like the ebuild does.
Comment 4 Petr Zima 2013-02-13 18:58:48 UTC
Created attachment 338790 [details, diff]
ebuild patch to build man and html separately

Building the targets separately seems appropriate than disabling parallel build.
Comment 5 Bernard Cafarelli gentoo-dev 2013-06-10 21:58:34 UTC
Indeed, thanks for the report and patch! All ebuilds now have separate calls for doc and man targets