On 24/10/2017 22:16, Armin K. wrote:
On 24.10.2017 19:32, Pierre Labastie wrote:
On 24/10/2017 18:14, Pierre Labastie wrote:
On 24/10/2017 17:56, Bruce Dubbs wrote:
Pierre Labastie wrote:
Hi,

I have recompiled libxml2 and itstool with python3 support,
and now I am trying gnome-desktop (the recent version). I get:
---
[...]
   GEN    zh_CN/
   GEN    de/
   GEN    sv/
/bin/sh: line 4: 13925 Segmentation fault      itstool -m "${mo}"
${d}/C/index.docbook
make[4]: *** [Makefile:589: de/de.stamp] Error 139
[...]
---

I wonder whether there is something more needed to use python3 with itstool.

Which version of itstool?  2.0.4?
Yes

The -dev book is inconsistent.  We have Python-2.7.14 as a required dep and then
Exact. I have both python2 and 3 installed.

PYTHON=/usr/bin/python3 ./configure --prefix=/usr
I used that.

As of whether the itstool page should be amended, I agree, but I do not think that explains the error...

I've verified: the first line of the installed /usr/bin/itstool script is "#!/usr/bin/python3 -s", so everything seems consistent.

Maybe try with make -j1 (I have a default of -j8). Nope, same error. Actually, the segfault is in python3. That shouldn't happen, even if the python script is bogus!

Actually using gdb, I see that the segfault is in the libxml python module. But I guess it has worked for the person who last updated the book... LANG setting again? Fro me, setting LANG to en_US.UTF-8 gives the same error.

Pierre


It's a bug in itstool-2.0.4. Revert to 2.0.2 for the time being. See also blfs gtk-doc related ticket and [1].

[1] https://github.com/itstool/itstool/issues/17

Well, I reverted to itstool-2.0.2, but then I needed to revert to using Python2: itstool's configure (for version 2.0.2) hardcodes "python" in its test for the libxml2 module, and does not use the PYTHON variable.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to