Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331693 - dev-libs/libxml2-2.7.7 fails to build when creating a new stage3
Summary: dev-libs/libxml2-2.7.7 fails to build when creating a new stage3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-08 22:11 UTC by Jorge Manuel B. S. Vicetto (RETIRED)
Modified: 2010-08-09 09:44 UTC (History)
1 user (show)

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


Attachments
Catalyst stage3 log for i686 (i686_stage3.log,164.96 KB, text/plain)
2010-08-08 22:13 UTC, Jorge Manuel B. S. Vicetto (RETIRED)
Details
patch to allow libxml2 to be built for stage3 by catalyst (libxml2.patch,848 bytes, patch)
2010-08-08 22:15 UTC, Jorge Manuel B. S. Vicetto (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-08-08 22:11:27 UTC
After fixing some underlying errors related to python3, the weekly stage3 images for x86 and then amd64 fail to build because of a missing dependency on python[xml].
The generated error for both arches is "xml.sax._exceptions.SAXReaderNotAvailable: No parsers found".

I'll attach the full log to this bug, but the following is the relevant section:

----------------------------------------------------
 * Building of dev-libs/libxml2-2.7.7 with CPython 2.6...
Making all in .
make[1]: Entering directory `/var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7/python-2.6'
/usr/bin/python ./generator.py .
/bin/sh ../libtool  --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.6 -I../include -I../include -I../python    -O2 -march=i686 -pipe -pedantic -W -Wformat 
-Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict
-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT types.lo -MD -MP -MF .deps/types.Tpo -c -o types.lo `test -f './types.c' || echo './'`./types.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.6 -I../include -I../include -I../python -O2 -march=i686 -pipe -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-t
ype -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototyp
es -Wnested-externs -Winline -Wredundant-decls -MT types.lo -MD -MP -MF .deps/types.Tpo -c ./types.c  -fPIC -DPIC -o .libs/types.o
Traceback (most recent call last):
  File "./generator.py", line 1186, in <module>
    buildStubs()
  File "./generator.py", line 517, in buildStubs
    (parser, target)  = getparser()
  File "./generator.py", line 34, in getparser
    parser = xml.sax.make_parser()
  File "/usr/lib/python2.6/xml/sax/__init__.py", line 93, in make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
make[1]: *** [gen_prog] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/python2.6/Python.h:86,
                 from ./libxml_wrap.h:1,
                 from ./types.c:9:
/usr/include/python2.6/intobject.h:45: warning: ISO C90 does not support 'long long'
In file included from /usr/include/python2.6/Python.h:88,
                 from ./libxml_wrap.h:1,
                 from ./types.c:9:
/usr/include/python2.6/longobject.h:47: warning: ISO C90 does not support 'long long'
/usr/include/python2.6/longobject.h:48: warning: ISO C90 does not support 'long long'
/usr/include/python2.6/longobject.h:49: warning: ISO C90 does not support 'long long'
/usr/include/python2.6/longobject.h:50: warning: ISO C90 does not support 'long long'
/usr/include/python2.6/longobject.h:51: warning: ISO C90 does not support 'long long'
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.6 -I../include -I../include -I../python -O2 -march=i686 -pipe -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-t
ype -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototyp
es -Wnested-externs -Winline -Wredundant-decls -MT types.lo -MD -MP -MF .deps/types.Tpo -c ./types.c -o types.o >/dev/null 2>&1
mv -f .deps/types.Tpo .deps/types.Plo
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7/python-2.6'
make: *** [all-recursive] Error 1
----------------------------------------------------

I'm also going to attach a patch that allows the build to succeed with catalyst
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-08-08 22:13:11 UTC
Created attachment 241901 [details]
Catalyst stage3 log for i686
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-08-08 22:15:17 UTC
Created attachment 241903 [details, diff]
patch to allow libxml2 to be built for stage3 by catalyst
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-08-09 08:51:42 UTC
According to: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild?view=markup

the ebuild already has proper dependencies.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-08-09 09:44:50 UTC
Zac fixed it in the meanwhile.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild?view=log