ghc wants lndir to build, and lndir is normally included with X. If ghc
doesn't find lndir, it attempts to build it's own, but ghc's lndir.c includes
X11 headers, so you still need X.
Reproducible: Always
Steps to Reproduce:
1. USE="-opengl" emerge ghc
Actual Results:
(root@endermovin)(106/pts)(11:39am:06/29/03)- (#:/usr/portage/dev-lang/ghc)-
emerge ghc Calculating dependencies ...done! >>> emerge (1 of 1)
dev-lang/ghc-5.04.3 to / >>> md5 src_uri ;-) ghc-5.04.3-src.tar.bz2 >>>
Unpacking source... >>> Unpacking ghc-5.04.3-src.tar.bz2 to
/var/tmp/portage/ghc-5.04.3/work which: no lndir in
(/usr/lib/ccache/bin:/usr/lib/distcc/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2)
You don\'t seem to have lndir available, building my own version... gcc
-march=pentium4 -O3 -pipe -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer
-fthread-jumps -fforce-addr -frerun-cse-after-loop -frerun-loop-opt
-fexpensive-optimizations -falign-functions=4 -falign-jumps=4 lndir.c -o
lndir lndir.c:46:21: X11/Xos.h: No such file or directory lndir.c:47:28:
X11/Xfuncproto.h: No such file or directory distcc[15310] ERROR: compile on
localhost failed with exit code 1 make: *** [lndir] Error 1 !!! ERROR:
dev-lang/ghc-5.04.3 failed. !!! Function src_unpack, Line 91, Exitcode 2 !!!
(no error message)
Expected Results:
It should have either compiled wihtout failing or had X11 as a dependancies so
that it would emerge it before emerging ghc. I'm pretty sure this build should
be possible without X11 though...
(root@endermovin)(106/pts)(11:39am:06/29/03)- (#:/usr/portage/dev-lang/ghc)-
emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
================================================================= System uname:
2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc
/var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif imlib java jpeg kde libg++
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 zlib alsa gdbm
berkdb slang readline tetex svga ruby sdl gpm tcpd pam libwww ssl perl python
oggvorbis mmx sse acpi emacs -X -gtk -gtk2 -qt -athena -motif -tcltk -gnome -qt
fbcon directfb -arts -esd -xv -opengl -xmms" COMPILER="gcc3"
CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -mmmx -msse
-mfpmath=sse,387 -fomit-frame-pointer -fthread-jumps -fforce-addr
-frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations
-falign-functions=4 -falign-jumps=4" CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86" MAKEOPTS="-j8" AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc"
The reported problem will not occur with ghc-6.0 and any later
versions, because the bootstrapping is handled internally by
ghc's build system now.
However, upgrading to ghc-6.0 can not be generally recommended
yet, because it is likely to contain some severe bugs as the
first release of a new major version.
I have fixed the problem in ghc-5.04.3-r1, which is also still
marked testing. Over ghc-5.04.3, it has the additional advantage
that it also builds the documentation if USE=doc is selected.
I'd appreciate feedback if it works for you now.
Thanks for reporting.