Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 143020
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Team for the ML programming language family <ml@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: ivo welch <ivo.welch@yale.edu>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 143020 depends on: 153506 Show dependency tree
Bug 143020 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-06 14:54 0000
ln -s ../unix/unix.mli unix.mli
../../ocamlcomp.sh -I ../unix -warn-error A -c unix.ml
../../boot/ocamlrun ../../tools/ocamlmklib -ocamlc '../../ocamlcomp.sh -I
../uni                                   x' -o unix -linkall unix.cmo
../unix/unixLabels.cmo
make[1]: Leaving directory
`/var/tmp/portage/ocaml-3.08.3/work/ocaml-3.08.3/othe                          
        rlibs/threads'
make[1]: Entering directory
`/var/tmp/portage/ocaml-3.08.3/work/ocaml-3.08.3/oth                           
       erlibs/graph'
make[1]: *** No rule to make target `/usr/X11R6/include/X11/Xlib.h', needed by
`                                   open.o'.  Stop.
make[1]: Leaving directory
`/var/tmp/portage/ocaml-3.08.3/work/ocaml-3.08.3/othe                          
        rlibs/graph'
make: *** [otherlibraries] Error 2

!!! ERROR: dev-lang/ocaml-3.08.3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ocaml-3.08.3.ebuild, line 59:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if
rel                                   evant.

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-gentoo-r13 i686)
=================================================================
System uname: 2.6.16-gentoo-r13 i686 Genuine Intel(R) CPU           T2400  @
1.83GHz
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm atlas avi berkdb bitmap-fonts blas bzip2 cli
crypt cups curl dlloader dri dvd eds emboss encode esd f77 fbcon foomaticdb
fortran g77 gcj gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java
jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nsplugin ogg
opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline
reflection samba sdl session smb spell spl sse sse2 ssl tcpd tetex truetype
truetype-fonts type1-fonts udev usb vorbis xine xml xmms xorg xprint xv zlib
elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev
kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Alexandre Buisse (RETIRED) 2006-08-07 02:04:57 0000 -------
Can you please check that x11-libs/libX11 is not installed on your system?

------- Comment #2 From ivo welch 2006-08-07 17:56:44 0000 -------
(In reply to comment #1)
> Can you please check that x11-libs/libX11 is not installed on your system?
> 

# ls /usr/lib/libX11*
libX11.a libX11.la libX11.so libX11.so.6 libX11.so.6.2.0

also, emerge tells me that x11-libs/X11 1.0.1-r1 is installed at 1,386KB. 
alas, there is no directory named x11-libs/.  should there be?  fwiw, this is
inside a guest gentoo VM, but this should not matter at all.

regards,

/iaw

------- Comment #3 From Alexandre Buisse (RETIRED) 2006-08-08 00:11:06 0000 -------
Can I assume that you mean x11-libs/libX11 and not x11-libs/X11 (which doesn't
exist anyway)?
Can you please post the output of:

ls /usr/X11R6/include/X11/ (there should be a Xlib.h in there)
ls -l /usr|grep X11R6 (it should be a symlink to /usr)


Also, do you mean that you don't have /usr/portage/x11-libs? If yes, either
your portage installation is completely messed up or you haven't synced in a
long, long time.

------- Comment #4 From ivo welch 2006-08-08 05:45:48 0000 -------
(In reply to comment #3)
> Can I assume that you mean x11-libs/libX11 and not x11-libs/X11 (which doesn't
> exist anyway)?
> Can you please post the output of:
> 
> ls /usr/X11R6/include/X11/ (there should be a Xlib.h in there)

$ ls /usr/X11R6/include/X11/
ls: /usr/X11R6/include/X11/: No such file or directory


> ls -l /usr|grep X11R6 (it should be a symlink to /usr)
> 

nada

> 
> Also, do you mean that you don't have /usr/portage/x11-libs? If yes, either
> your portage installation is completely messed up or you haven't synced in a
> long, long time.
> 

nope, this one I have, of course.

*  x11-base/xorg-server
      Latest version available: 1.0.2-r7
      Latest version installed: 1.0.2-r7
      Size of files: 8,716 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org X servers
      License:       xorg-server MIT

*  x11-base/xorg-x11
      Latest version available: 7.0-r1
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:      http://xorg.freedesktop.org
      Description:   An X11 implementation maintained by the X.Org Foundation
(m
eta package)
      License:       as-is

so, this one was very likely my problem.  X and kde run nicely, but apparently
xorg server is not enough.  I wonder if X should have one central install file,
and/or xorg-server should install x11.

regards,

/ivo

------- Comment #5 From Alexandre Buisse (RETIRED) 2006-08-08 06:10:41 0000 -------
It looks like your X.org installation is not complete. There is a meta ebuild
(I guess this is what you call a "central install file" and it is
x11-base/xorg-x11).
I suggest you follow the guide at
http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml to setup
properly your X11.

I'm closing INVALID, feel free to reopen if the problem is still there with a
proper install of xorg-x11.

------- Comment #6 From ivo welch 2006-08-08 06:20:53 0000 -------
simple suggestion---add this x11 meta-super-dependency to ocaml (and
elsewhere).

growing pains going to a modular X, I guess.

------- Comment #7 From Alexandre Buisse (RETIRED) 2006-08-08 10:16:36 0000 -------
Well, there is a script in ocaml that detects the presence of libX11 libraries.
It just then assumes that you have the header files as well, which is a problem
only with half X11 installs like yours.
That said, a "X? ( x11-libs/libX11 )" could be useful, you're right (but not a
DEPEND on the meta ebuild !)

------- Comment #8 From Jakub Moc (RETIRED) 2006-08-11 00:50:55 0000 -------
*** Bug 143522 has been marked as a duplicate of this bug. ***

------- Comment #9 From Alexandre Buisse (RETIRED) 2006-08-11 01:13:07 0000 -------
Hum, the reporter of bug #143522 has libX11 and still hits the problem. This
could mean that the hand-made configure script of ocaml has a bug.

Could anyone hitting the problem please paste the output of the configure file
(you can use "ebuild /usr/portage/dev-lang/ocaml/ocaml-3.09.2.ebuild unpack"
and then run the configure file in
/var/tmp/portage/ocaml-3.09.2/work/ocaml-3.09.2).

On a regular X install, one should see something like:

Configuration for the "graph" library:
        options for compiling .... -I/usr/X11R6/include
        options for linking ...... -L/usr/X11R6/lib -lX11

------- Comment #10 From ivo welch 2006-08-11 07:42:41 0000 -------
I cannot try it (sorry), but I can tell you that emerging libX11 solved my
problem.

------- Comment #11 From Yuri Vasilevski 2006-08-30 13:32:30 0000 -------
(In reply to comment #9)
> Hum, the reporter of bug #143522 has libX11 and still hits the problem. This
> could mean that the hand-made configure script of ocaml has a bug.

The bug is present in ocaml-3.08.3, not in ocaml-3.09.2.

> Could anyone hitting the problem please paste the output of the configure file
> (you can use "ebuild /usr/portage/dev-lang/ocaml/ocaml-3.09.2.ebuild unpack"
> and then run the configure file in
> /var/tmp/portage/ocaml-3.09.2/work/ocaml-3.09.2).

Location of X11 include files: /usr/include/X11
Options for linking with X11: -lX11
....
Configuration for the "graph" library:
        options for compiling .... 
        options for linking ...... -lX11

This lines are exactly the same for ocaml-3.08.3 and ocaml-3.09.2 on my system,
but ocaml-3.08.3 just ignores that info when it builds in otherlibs/graph as
it's .depend contains explicit dependencies on /usr/X11R6/include/X11/Xlib.h.

> On a regular X install, one should see something like:

I do not have xorg-x11 installed, just xorg-server + lots of libs pulled as
dependencies by other packages.

So please stabilize ocaml-3.09.2

------- Comment #12 From Evil Compile Person 2006-10-20 10:16:54 0000 -------
This looks like wrong autodetection, only happens when parts of X11 are
installed, this does not happen on a clean stage3.

------- Comment #13 From Mikko Oilinki 2006-11-02 02:38:23 0000 -------
(In reply to comment #12)
> This looks like wrong autodetection, only happens when parts of X11 are
> installed, this does not happen on a clean stage3.
> 

I have a very fresh X86 Gentoo installation going on at the moment
and experienced the same problem, with USE flags "latex tcltk".

The problem is due to the left-over .depend file in
/var/tmp/portage/ocaml-3.08.3/work/ocaml-3.08.3/otherlibs/graph/.depend.
It is dated in Feb 22  2005, so is clearly left-over from the packager
which you can confirm by untarring /usr/portage/distfiles/ocaml-3.08.3.tar.bz2
yourself.

If you grep this file for X11R6, you will find a lot of references
to the X headers in this currently non-existent directory.

I solved the issue myself by unmasking the newest ocaml that compiled
fine. To fix building this version with minimal fuss, the ebuild could 
maybe do "make depend" in some appropriate place to refresh the file
to match the build environment.

------- Comment #14 From Alexis Ballier 2007-05-12 22:30:54 0000 -------
>=3.09.2 apparently solves this one

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug