Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107019 - dev-haskell/alex-2.0.1-r1 fails to compile with doc in USE
Summary: dev-haskell/alex-2.0.1-r1 fails to compile with doc in USE
Status: RESOLVED DUPLICATE of bug 106992
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 10:51 UTC by katerina
Modified: 2005-09-30 05:38 UTC (History)
1 user (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 katerina 2005-09-23 10:51:40 UTC
Writing alex/api.html for chapter(api)
Writing alex/invoking.html for chapter(invoking)
Writing alex/index.html for book(alex)
cp ../../mk/fptools.css alex/
/usr/bin/xsltproc --output alex.fo \
            --stringparam draft.mode no \
            --stringparam toc.section.depth 3 --stringparam section.autolabel 1
--stringparam section.label.includes.component.label 1   \
            /usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/docbook.xsl alex.xml
Making portrait pages on USletter paper (8.5inx11in)
XPath error : Undefined variable
$ulink.footnotes != 0
                 ^
error: file /usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/footnote.xsl line
94 element number
Failed to compile predicate
make[2]: *** [alex.fo] Segmentation fault (core dumped)
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/alex-2.0.1-r1/work/alex-2.0.1/alex'
make: *** [build] Error 1

!!! ERROR: dev-haskell/alex-2.0.1-r1 failed.


Reproducible: Always
Steps to Reproduce:
1. USE="doc" emerge alex


Expected Results:  
The documentation should be processed and alex should install.  

A workaround to install alex is to remove doc from USE.

Portage 2.0.52-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r1,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr//lib64/mozilla/defaults/pref /usr/kde/2/share/config
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://194.149.10.102/"
LINGUAS="en it de fr ja eo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cdparanoia cdr cjk cpudetection
crypt cscopecups cups curl doc dvd dvdread eds emboss encode esd faad fam flac
foomaticdb fortran gd gdbm gif gimp gimpprint gphoto2 gpm gstreamer gtk gtk2
guile imagemagick imlib java jpeg junit kde kdeenablefinal libwww lm_sensors
logitech-mouse lzw lzw-tiff mad mikmod mozilla mp3 mpeg musicbrainz ncurses nls
noamazon nptl ogg oggvorbis opengl pam pcre pdflib perl png postgres povray
python qt quicktime readline real rtc ruby samba scanner sdl slang speex spell
ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb
userlocales visualization vorbis xanim xine xinerama xml xml2 xmms xpm xv zlib
video_cards_radeon linguas_en linguas_it linguas_de linguas_fr linguas_ja
linguas_eo userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Duncan Coutts (RETIRED) gentoo-dev 2005-09-23 16:18:56 UTC
it looks like it is "fop" that is segfaulting.

Would you mind checking if this works for you:
USE="-java" emerge =dev-haskell/alex-2.0.1-r1

This looks like the same issue as bug #106992
We might have to remove the java USE flag on alex & ghc
Comment 2 Luis Araujo (RETIRED) gentoo-dev 2005-09-23 19:57:02 UTC
I have disabled the java USE flag of the ebuild as a temporary solution until we
find a workaround.

We think it is a problem of FOP , which version are you using
btw? , i am also adding the java herd on the CC so they can be aware of this
problem.

According to bug #106992 , the same problem happens with ghc6.4.1.
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-24 06:25:54 UTC
the problem is the stylesheet which fails to create the file fop is supposed to 
use

it does work with
app-text/docbook-xsl-stylesheets-1.65.1
but not
1.68something
Comment 4 Luis Araujo (RETIRED) gentoo-dev 2005-09-27 16:31:25 UTC
After doing some tests, we have found that might be problem of libxml2 and libxslt.

Which versions are you using?, Could also please update to the latest stable
version of both libs if you are not already using them?, i think that should
solve the problem.

Also, it works fine with the latest app-text/docbook-xsl-stylesheets version,
with these updated libs.
Comment 5 katerina 2005-09-29 13:30:29 UTC
I'm using ~amd64, with the following versions of libxml2, libxslt, and
docbook-xsl-stylesheets: 

[ebuild   R   ] dev-libs/libxml2-2.6.22  -debug +doc -ipv6 +python +readline
-static 
[ebuild   R   ] dev-libs/libxslt-1.1.15  +crypt -debug +python -static
[ebuild   R   ] app-text/docbook-xsl-stylesheets-1.68.1-r1  

dev-haskell/alex-2.0.1-r1 with +doc works; it's already removed the java USE
flag, so I didn't bother setting -java.

Sorry for the slow reply.
Comment 6 Duncan Coutts (RETIRED) gentoo-dev 2005-09-29 14:03:55 UTC
That's very interesting since we were assuming that it would be segfaulting with
an older version rather than a newer version. It seems to work when using the
latest stable versions of libxml & libxslt.
Comment 7 katerina 2005-09-30 04:31:48 UTC
Perhaps I was unclear, but I said "it works"; is there some reason not in the
bugzilla why it's been re-opened?
Comment 8 Duncan Coutts (RETIRED) gentoo-dev 2005-09-30 05:38:31 UTC
Well it work now because we disabled the java use flag which controled the
creation of pdf documentation using xslt and fop.

The bug is really in libxml or libxslt so that's why we've kept this bug open
and reassigned it to the text markup team.

Actually it's the same problem as bug #106992 so I'll mark it as a duplicate of
that one and change that bug's summary to better reflect the cause.

*** This bug has been marked as a duplicate of 106992 ***