Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415295 - sys-devel/llvm-9999 Failed Patch: llvm-2.6-commandguide-nops.patch
Summary: sys-devel/llvm-9999 Failed Patch: llvm-2.6-commandguide-nops.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on: 415965
Blocks:
  Show dependency tree
 
Reported: 2012-05-09 19:39 UTC by Marcin Mirosław
Modified: 2012-12-14 17:10 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2012-05-09 19:39:20 UTC
* Converting shebang in 'test/Scripts/elf-dump'
 * Applying llvm-2.6-commandguide-nops.patch ...

 * Failed Patch: llvm-2.6-commandguide-nops.patch !
 *  ( /usr/portage/sys-devel/llvm/files/llvm-2.6-commandguide-nops.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/sys-devel/llvm-9999/temp/llvm-2.6-commandguide-nops.patch.out

 * ERROR: sys-devel/llvm-9999 failed (prepare phase):
 *   Failed Patch: llvm-2.6-commandguide-nops.patch!
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_prepare
 *   environment, line 4903:  Called epatch '/usr/portage/sys-devel/llvm/files/llvm-2.6-commandguide-nops.patch'
 *   environment, line 1621:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/llvm-9999',
 * the complete build log and the output of 'emerge -pqv =sys-devel/llvm-9999'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-9999/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999'

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-10 05:44:45 UTC
I don't see any Makefile in docs/CommandGuide/ anymore. If you could try just removing that patch from the build and seeing what happens (preferably, attaching the build log or at least the '>>>' and '<<<' lines) I'd appreciate. Otherwise, I'll try to rebuild the package in the next 20 hours.
Comment 2 Marcin Mirosław 2012-05-10 07:52:55 UTC
Without this patch llvm-9999 compiles and installs without error.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-10 15:14:22 UTC
(In reply to comment #2)
> Without this patch llvm-9999 compiles and installs without error.

I was more wondering whether any particular additional files are installed or stop being installed. But I'll test it myself and commit in next, say, 2 hrs.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-10 15:46:42 UTC
I see that Patrick has removed that patch already. Sadly, as a result LLVM no longer installs manpages for its commands (HTML command guides as well but that's not very important IMO).
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-13 21:40:12 UTC
I've added a code to the ebuild which generates the manpages using dev-python/docutils. That should serve the purpose until upstream readds manpage generation.
Comment 6 Marcin Mirosław 2012-05-14 11:37:02 UTC
Unfortunatelly rst2man (docutils-0.9) has problem with generating mans:
llvm[4]: ======= Finished Linking Release Executable Sample
make[4]: Leaving directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample/tools/sample'
make[3]: Leaving directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample/tools'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample'
make[1]: Leaving directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects'
make[1]: Entering directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/bindings'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/bindings'
llvm[0]: ***** Completed Release Build
make -j2 bugpoint.1 FileCheck.1 index.1 lit.1 llc.1 lli.1 llvm-ar.1 llvm-as.1 llvm-bcanalyzer.1 llvm-build.1 llvm-config.1 llvm-cov.1 llvm-diff.1 llvm-dis.1 llvm-extract.1 llvm-link.1 llvm-nm.1 llvm-prof.1 llvm-ranlib.1 llvm-stress.1 opt.1 tblgen.1 
rst2man.py bugpoint.rst > bugpoint.1
rst2man.py FileCheck.rst > FileCheck.1
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <docutils-users@lists.sf.net>.
Include "--traceback" output, Docutils version (0.9 [release]),
Python version (2.7.3), your OS type & version, and the
command line used.
make: *** [bugpoint.1] Error 1
make: *** Waiting for unfinished jobs....
NotImplementedError: docutils.writers.manpage.Translator visiting unknown node type: inline
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <docutils-users@lists.sf.net>.
Include "--traceback" output, Docutils version (0.9 [release]),
Python version (2.7.3), your OS type & version, and the
command line used.
make: *** [FileCheck.1] Error 1
 * ERROR: sys-devel/llvm-9999 failed (compile phase):
 *   emake failed


With docutils-0.8.1 everything is ok.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-14 16:56:24 UTC
(In reply to comment #6)
> Unfortunatelly rst2man (docutils-0.9) has problem with generating mans:
> llvm[4]: ======= Finished Linking Release Executable Sample
> make[4]: Leaving directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample/tools/
> sample'
> make[3]: Leaving directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample/tools'
> make[2]: Leaving directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects/sample'
> make[1]: Leaving directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/projects'
> make[1]: Entering directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/bindings'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/bindings'
> llvm[0]: ***** Completed Release Build
> make -j2 bugpoint.1 FileCheck.1 index.1 lit.1 llc.1 lli.1 llvm-ar.1
> llvm-as.1 llvm-bcanalyzer.1 llvm-build.1 llvm-config.1 llvm-cov.1
> llvm-diff.1 llvm-dis.1 llvm-extract.1 llvm-link.1 llvm-nm.1 llvm-prof.1
> llvm-ranlib.1 llvm-stress.1 opt.1 tblgen.1 
> rst2man.py bugpoint.rst > bugpoint.1
> rst2man.py FileCheck.rst > FileCheck.1
> NotImplementedError: docutils.writers.manpage.Translator visiting unknown
> node type: inline
> Exiting due to error.  Use "--traceback" to diagnose.
> Please report errors to <docutils-users@lists.sf.net>.
> Include "--traceback" output, Docutils version (0.9 [release]),
> Python version (2.7.3), your OS type & version, and the
> command line used.
> make: *** [bugpoint.1] Error 1
> make: *** Waiting for unfinished jobs....
> NotImplementedError: docutils.writers.manpage.Translator visiting unknown
> node type: inline
> Exiting due to error.  Use "--traceback" to diagnose.
> Please report errors to <docutils-users@lists.sf.net>.
> Include "--traceback" output, Docutils version (0.9 [release]),
> Python version (2.7.3), your OS type & version, and the
> command line used.
> make: *** [FileCheck.1] Error 1
>  * ERROR: sys-devel/llvm-9999 failed (compile phase):
>  *   emake failed
> 
> 
> With docutils-0.8.1 everything is ok.

Eh, I knew relying on anything with reference implementation in Python is a bad idea :P. I'll disable the docgen for now.
Comment 8 Bernard Cafarelli gentoo-dev 2012-12-14 17:10:51 UTC
Doc generation in 3.2 (and trunk) is now done with sphinx (and I updated the live ebuild to match this), so we can finally close this one :)