Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108910 - dev-haskell/haddock-0.7 does not compile when the 'doc' flag is specified
Summary: dev-haskell/haddock-0.7 does not compile when the 'doc' flag is specified
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 11:51 UTC by Avinash Meetoo
Modified: 2005-12-19 03:01 UTC (History)
0 users

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


Attachments
My emerge log (emerge.log.bz2,3.42 KB, application/octet-stream)
2005-10-13 11:49 UTC, Avinash Meetoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Avinash Meetoo 2005-10-11 11:51:34 UTC
Compiling haddock-0.6 (with emerge haddock) fails if the doc USE flag is
specified. The error message being (from memory) that /usr/bin/dvips cannot find
haddock.dvi

I've emerged haddock with -doc and -java and it is properly compiled and installed.

Reproducible: Always
Steps to Reproduce:
1. Add doc and java to USE flags in /etc/make.conf
2. emerge haddock

Actual Results:  
Compilation problem as stated in details.


Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
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 avi berkdb bitmap-fonts cdr crypt curl doc dvd dvdr emboss
encode fam foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 guile hal
haskell imagemagick imlib ipv6 ithreads jack java javascript jpeg junit kde
kdeenablefinal libwww logrotate lua lzw lzw-tiff mad mozilla mozsvg mp3 mpeg
ncurses nls nptl nptlonly objc offensive ogg oggvorbis opengl pam pdflib perl
php png postgres povray python qt quicktime readline real ruby scanner sdl spell
sql sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts
type1-fonts unicode usb userlocales vorbis xml xml2 xpm xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Duncan Coutts (RETIRED) gentoo-dev 2005-10-11 12:53:08 UTC
Would it be possible to paste the last few lines of the build log. It would be
very helpful for narrowing down the problem.

Paste from the point where it starts to look like it's going wrong. Sometimes
later error messages can be misleading, it's useful for us to really get the
first error message.
Comment 2 Avinash Meetoo 2005-10-12 06:37:16 UTC
(In reply to comment #0)
> The error message being (from memory) that /usr/bin/dvips cannot find
> haddock.dvi

The actual error message I'm getting is:

==fptools== make all -wr;
 in /var/tmp/portage/haddock-0.7/work/haddock-0.7/haddock/doc
------------------------------------------------------------------------
rm -f -rf haddock/
/usr/bin/xsltproc --stringparam base.dir haddock/ \
            --stringparam use.id.as.filename 1 \
            --stringparam html.stylesheet fptools.css \
            --stringparam toc.section.depth 3 --stringparam section.autolabel 1
--stringparam section.label.includes.component.label 1   \
            /usr/share/sgml/docbook/xsl-stylesheets-1.66.1/html/chunk.xsl haddoc
k.xml
Writing haddock/license.html for section(license)
Writing haddock/ch01s03.html for section
Writing haddock/introduction.html for chapter(introduction)
Writing haddock/invoking.html for chapter(invoking)
Writing haddock/ch03s02.html for section
Writing haddock/ch03s03.html for section
Writing haddock/ch03s04.html for section
Writing haddock/ch03s05.html for section
Writing haddock/hyperlinking.html for section(hyperlinking)
Writing haddock/module-attributes.html for section(module-attributes)
Writing haddock/ch03s08.html for section
Writing haddock/markup.html for chapter(markup)
Writing haddock/ix01.html for index
Writing haddock/index.html for book(haddock)
cp ../../mk/fptools.css haddock/
/usr/bin/dvips haddock.dvi -o haddock.ps
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
/usr/bin/dvips: ! DVI file can't be opened.
make[2]: *** [haddock.ps] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/haddock-0.7/work/haddock-0.7/haddoc
                                                          k'
make: *** [build] Error 1

!!! ERROR: dev-haskell/haddock-0.7 failed.
!!! Function src_compile, Line 72, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2005-10-12 12:52:47 UTC
I'm afraid we need the full build log. To me, it seems strange that dvips
is called at all. This should not happen. When USE=java, then haddock depends
on fop, and the haddock build system prefers fop over any TeX installation.
So, no dvips should be called at all. But even if, your error is unlikely
to be the first build error, because obviously the build process failed
to generate the .dvi file it can't open at some point earlier ...

ks
Comment 4 Avinash Meetoo 2005-10-13 11:49:47 UTC
Created attachment 70587 [details]
My emerge log
Comment 5 Avinash Meetoo 2005-10-13 11:51:18 UTC
I have check my USE flags. Both doc and java are enabled and, prior to
installing haddock, emerge has appropriately installed fop.

I've attached my complete build log.

By the way, when I type fop at the command prompt, I get the following error
message:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
        at org.apache.fop.apps.Fop.main(Fop.java:60)

Are those 2 bugs related?
Comment 6 Andres Loeh (RETIRED) gentoo-dev 2005-12-19 03:01:29 UTC
Yes, the two problems are most likely related. In the meantime, araujo has
disabled the java USE flag in the haddock ebuild due to fop unreliability,
so this should no longer occur.