Opened 10 years ago

Closed 10 years ago

#1691 closed defect (wontfix)

Error in 008-z-libxslt during blfs-tool build in jhalfs

Reported by: shane87 Owned by: alfs-log@…
Priority: normal Milestone:
Component: jhalfs Version: SVN
Severity: normal Keywords: blfs-tool, libxslt, expat
Cc:

Description

While building LFS-7.5 using jhalfs, I continuously hit an error during the blfs-tool phase. The specific error reported in the terminal is:

Building target 008-z-libxslt

 [+++++++++/Makefile:88: recipe for target '008-z-libxslt' failed min. 9 sec
make: *** [008-z-libxslt] Error 2
make: Leaving directory '/blfs_root/work'
make[1]: *** [mk_BLFS_TOOL] Error 2
make[1]: Leaving directory `/mnt/build_dir/jhalfs'

ERROR: Error 2 at common/common-functions line 39!


<jhalfs-trunk> exit

make: *** [all] Error 2

Checking the logs in /mnt/build_dir/blfs_root/work/logs/008-z-libxslt, I see that the specific error during the build is:

make[4]: Entering directory '/sources/libxslt/libxslt-1.1.28/python'
SRCDIR=. /usr/bin/python ./generator.py
Traceback (most recent call last):
  File "./generator.py", line 923, in <module>
    buildStubs()
  File "./generator.py", line 405, in buildStubs
    (parser, target)  = getparser()
  File "./generator.py", line 26, in getparser
    parser = xml.sax.make_parser()
  File "/usr/lib/python2.7/xml/sax/__init__.py", line 93, in make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
Makefile:872: recipe for target 'gen_prog' failed
make[4]: *** [gen_prog] Error 1
make[4]: Leaving directory '/sources/libxslt/libxslt-1.1.28/python'
Makefile:536: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/sources/libxslt/libxslt-1.1.28/python'
Makefile:547: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/sources/libxslt/libxslt-1.1.28'
Makefile:372: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/sources/libxslt/libxslt-1.1.28'

After doing some searching, I have found that the error is caused by Python not being able to locate an xml parser module. From what I have read, and tested, the easiest way to fix this is to build and install expat before configuring and building Python. To confirm expat fixes the issue, I entered the chroot jail manually and installed expat, following the instructions from blfs. Then I re-ran the jhalfs tool, which successfully completed the entire build, including the blfs-tools phase, and 008-z-libxslt compiled perfectly.

What really strikes me as odd is that the blfs-tool does not pick up Python's recommended expat dependency. It builds libffi, which is also a recommended dependency for Python, but expat is not picked up.

I am attaching the log from my build of libxslt (/mnt/build_dir/blfs_root/work/logs/008-z-libxslt), the SBU_DU report from my jhalfs build (for complete system info), and the build log from the install of Python (/mnt/build_dir/blfs_root/work/logs/003-z-python)

Attachments (2)

008-z-libxslt (13.0 KB ) - added by shane87 10 years ago.
log of libxslt build error
unknown-SBU_DU-2014-05-14.report (56.3 KB ) - added by shane87 10 years ago.
SBU_DU report from jhalfs build, included for system info

Download all attachments as: .zip

Change History (5)

by shane87, 10 years ago

Attachment: 008-z-libxslt added

log of libxslt build error

by shane87, 10 years ago

SBU_DU report from jhalfs build, included for system info

comment:1 by shane87, 10 years ago

I was unable to attach the Python build log. It is too big of a file. I was only intending to add it to show Python did build successfully, but without an xml parser. It really didn't contain anything pertinent to the error I am reporting.

comment:2 by shane87, 10 years ago

Ok, this is something I probably should have checked on before filing this bug, but apparently this bug will only occur with LFS book version 7.5, and possibly earlier book versions. The latest development book of LFS adds expat as part of the lfs build, instead of leaving it for the blfs book. Still, I feel that this error needs to be addressed, for users that may wish to build against the 7.5 version of the lfs book.

comment:3 by Pierre Labastie, 10 years ago

Resolution: wontfix
Status: newclosed

Sorry for the late reply. I somehow have not received the mails corresponding to the opening of this ticket. LFS and BLFS have undergone a lot of changes during March and April after version 7.5 was released, so that building blfs-svn on top of lfs-7.5 was not possible anymore during May. Normally, everything is OK for versions 7.6 (to be released soon). CLosing as "wontfix" (since there is no "overcomebyevents" tag)

Note: See TracTickets for help on using tickets.