Error with compilation glib
Multiple points here: For a long time, I had a working system. I had to reinstall everything and faced some problems. I cleaned all previous files as described here HowDoI. I started from glib module. Documentation was turned on. glib depends on
- gettext
- yelp-xsl
- yelp-tools
- meson
- gtk-doc
On compilation gtk-doc an error was showed: glib-2.0 not found. It looks like to compile glib I need gtk-doc which also needs glib. I was able to compile glib by switching the documentation off and using buildone mode. After the compilation of glib, I compile gtk-doc separately and it was ok (glib was already installed). But glib was compiled without the documentation. So, I rebuilt glib with documentation turned on, and got the following error:
./gio-unused.txt:1: warning: 6 unused declarations. They should be added to gio-sections.txt in the appropriate place.
2019-04-01 22:36:26,695:mkdb.py:ExpandAbbreviationsEndTag:2731:WARNING:no end tag for "<![CDATA["
2019-04-01 22:36:26,696:mkdb.py:ExpandAbbreviationsEndTag:2731:WARNING:no end tag for "<![CDATA["
2019-04-01 22:36:26,696:mkdb.py:ExpandAbbreviationsEndTag:2731:WARNING:no end tag for "<![CDATA["
2019-04-01 22:36:26,696:mkdb.py:ExpandAbbreviationsEndTag:2731:WARNING:no end tag for "<![CDATA["
2019-04-01 22:36:26,696:mkdb.py:ExpandAbbreviationsEndTag:2731:WARNING:no end tag for "<![CDATA["
warning: failed to load external entity "../gdbus-example-objectmanager.xml"
ERROR: xref linking to gdbus-example-codegen-server has no generated link text.
Error: no ID for constraint linkend: "gdbus-example-codegen-server".
ERROR: xref linking to gdbus-example-codegen-client has no generated link text.
Error: no ID for constraint linkend: "gdbus-example-codegen-client".
ERROR: Error in gtkdoc helper script:
ERROR: ['gtkdoc-fixxref', '--module=gio', '--module-dir=html', '--html-dir=/home/username/jhbuild/install/share/gtk-doc/html', '--extra-dir=gio/../glib/html', '--extra-dir=gio/../gobject/html'] failed with status 1
vim: Unknown option argument: "-T"
More info with "vim -h"
html/GAction.html:156: warning: no link for: "GVariantType" -> (<span class="type">GVariantType</span>).
html/GAction.html:162: warning: no link for: "GVariant" -> (<span class="type">GVariant</span>).
html/GAction.html:223: warning: no link for: "NULL:CAPS" -> (<code class="literal">NULL</code>).
html/GAction.html:275: warning: no link for: "TRUE:CAPS" -> (<code class="literal">TRUE</code>).
html/GAction.html:399: warning: no link for: "g-variant-unref" -> (<code class="function">g_variant_unref()</code>).
html/GAction.html:573: warning: no link for: "GError" -> (<span class="type">GError</span>).
html/GAction.html:588: warning: no link for: "g-variant-parse" -> (<code class="function">g_variant_parse()</code>).
html/GAction.html:628: warning: no link for: "FALSE:CAPS" -> (<code class="literal">FALSE</code>).
html/GActionGroup.html:172: warning: no link for: "G-SIGNAL-DETAILED:CAPS" -> (Has Details).
html/GActionGroup.html:289: warning: no link for: "g-strfreev" -> (<code class="function">g_strfreev()</code>).
Traceback (most recent call last):
File "/home/username/jhbuild/install/bin/gtkdoc-fixxref", line 57, in <module>
fixxref.Run(options)
File "/home/username/jhbuild/install/share/gtk-doc/python/gtkdoc/fixxref.py", line 57, in Run
FixCrossReferences(options.module_dir, options.module, options.src_lang)
File "/home/username/jhbuild/install/share/gtk-doc/python/gtkdoc/fixxref.py", line 222, in FixCrossReferences
FixHTMLFile(src_lang, module, full_entry)
File "/home/username/jhbuild/install/share/gtk-doc/python/gtkdoc/fixxref.py", line 239, in FixHTMLFile
repl_func, content, flags=re.DOTALL)
File "/usr/lib/python3.7/re.py", line 192, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/home/username/jhbuild/install/share/gtk-doc/python/gtkdoc/fixxref.py", line 236, in repl_func
return HighlightSourceVim(src_lang, m.group(1), m.group(2))
File "/home/username/jhbuild/install/share/gtk-doc/python/gtkdoc/fixxref.py", line 434, in HighlightSourceVim
raise Exception("Highlighter failed. The command was: {}".format(script))
Exception: Highlighter failed. The command was: echo 'let html_number_lines=0|let html_use_css=1|let html_use_xhtml=1|set encoding=utf-8|e /tmp/tmp5oi_ynvx.h|syn on|set syntax=c|run! plugin/tohtml.vim|run! syntax/2html.vim|w! /tmp/tmp5oi_ynvx.h.html|qa' | /usr/bin/vim -n -e -u NONE -T xterm
FAILED: meson-install
/home/username/jhbuild/install/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
I do not have vim installed, but do have vi and neovim.
I am trying to understand the origin of this problem. Is it jhbuild or glib? Thanks.