Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67796 - net-misc/unison-2.9.1-r1 fails to compile
Summary: net-misc/unison-2.9.1-r1 fails to compile
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
Depends on:
Reported: 2004-10-16 10:47 UTC by Malte S. Stretz
Modified: 2004-10-20 09:53 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2004-10-16 10:47:49 UTC
I've got 2.9.1-r0 installed, an update to 2.9.1-r1 (via emerge -u world) fails.

Reproducible: Always
Steps to Reproduce:
emerge -u unison
Actual Results:  
>>> emerge (10 of 14) net-misc/unison-2.9.1-r1 to / 
>>> Downloading 
           => `/var/cache/portage/sources/unison-2.9.1.tar.gz' 
Connecting to[]:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 319,081 [application/x-tar] 
319,081      291.70K/s 
19:19:54 (290.78 KB/s) - `/var/cache/portage/sources/unison-2.9.1.tar.gz' 
saved [319081/319081] 
>>> md5 src_uri ;-) unison-2.9.1.tar.gz 
>>> Unpacking source... 
>>> Unpacking unison-2.9.1.tar.gz to /var/tmp/portage/unison-2.9.1-r1/work 
>>> Source unpacked. 
Building for Unix 
NATIVE = true 
THREADS = false 
STATIC = false 
OSARCH = linux 
make: Circular uicommon.cmx <- uicommon.cmx dependency dropped. 
ocamlopt: uicommon.mli ---> uicommon.cmi 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/uicommon.mli 
ocamlopt: ---> uicommon.cmx 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/ 
ocamlopt: uitext.mli ---> uitext.cmi 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/uitext.mli 
ocamlopt: ---> uitext.cmx 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/ 
ocamlopt: ---> main.cmx 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/ 
ocamlopt: ---> pixmaps.cmx 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/ 
ocamlopt: uigtk.mli ---> uigtk.cmi 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/uigtk.mli 
ocamlopt: ---> uigtk.cmx 
ocamlopt -I lwt -I ubase -I /usr/lib/ocaml/lablgtk 
-c /var/tmp/portage/unison-2.9.1-r1/work/unison-2.9.1/ 
The files /usr/lib/ocaml/pervasives.cmi and /usr/lib/ocaml/lablgtk/gdk.cmi 
make inconsistent assumptions over interface Pervasives 
make: *** [uigtk.cmx] Error 2 
!!! ERROR: net-misc/unison-2.9.1-r1 failed. 
!!! Function src_compile, Line 44, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status 

> emerge -pv unison lablgtk dev-lang/ocaml gtk+ 
These are the packages that I would merge, in order: 
Calculating dependencies     ...done! 
[ebuild     U ] net-misc/unison-2.9.1-r1 [2.9.1] +gtk 0 kB 
[ebuild   R   ] dev-ml/lablgtk-1.2.5  -gnome +opengl 452 kB 
[ebuild   R   ] dev-lang/ocaml-3.07-r1  -debug -latex +tcltk 2,519 kB 
[ebuild   R   ] x11-libs/gtk+-2.4.9-r1  -debug -doc +jpeg +tiff 9,374 kB 
Total size of downloads: 12,346 kB 
> emerge info 
Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.3.4, glibc-, 
2.6.8-gentoo-r3 i686) 
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.16 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils- 
Libtools: sys-devel/libtool-1.5.2-r5 
CFLAGS="-pipe -march=athlon-tbird -O2 -fstack-protector" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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="-pipe -march=athlon-tbird -O2 -fstack-protector" 
FEATURES="autoaddcvs candy ccache distlocks sandbox" 
PORTDIR_OVERLAY="/usr/local/portage-overlay/mortage /usr/local/portage-overlay/misc /usr/local/portage-overlay/kde-b33" 
USE="3dnow X aavm acl acpi acpi4linux alsa apache2 apm applypatches arts 
artswrappersuid avi berkdb cdr crypt cups curl dga directfb dvd dvdrencode esd 
ethereal expat f77 faad fbcon foomaticdb gcj gd gdbm geoip gif gphoto2 gpm gtk 
gtk2 hbci imap imlib ipv6 irda jabber java javascript jpeg kde ldap libg++ 
libwww mad maildir mikmod mmx motif mozilla moznoirc mpeg ncurses odbc 
oggvorbis opengl operanom2 oss pam pda pdflib perl png python qt quicktime 
readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff 
truetype usagi usb wmf x86 xine xineramaxml xml2 xmms xprint xv xvid zlib 
Comment 1 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-19 00:53:08 UTC
You have to rebuild lablgtk before unison as you updated ocaml (at some point in the past :) and previously installed ocaml libraries are not compatible with the new compiler. 
Maybe you haven't noticed the message at the end of the ocaml build informing you to use the /usr/portage/dev-lang/ocaml/files/ script to automatically rebuild ocaml libs ?
Comment 2 Malte S. Stretz 2004-10-20 09:53:12 UTC
"emerge (10 of 14) net-misc/unison-2.9.1-r1 to /" -- yeah, I probably didn't notice that message ;~)

Is there an ocaml.eclass?  If there's one, it should probably point to that script in case of an error.

| (0) otherland ~ # sh /usr/portage/dev-lang/ocaml/files/
| These are the packages that I would merge, in order:
| Calculating dependencies
| emerge: there are no ebuilds to satisfy "=net-p2p/mldonkey-2.5.16-r4".
| (0) otherland ~ # emerge --oneshot lablgtk
| Calculating dependencies  ...done!
| >>> emerge (1 of 1) dev-ml/lablgtk-1.2.5 to /
| ocamlc.opt -I /usr/lib/ocaml/lablGL -w s -c glGtk.mli
| The files /usr/lib/ocaml/pervasives.cmi and /usr/lib/ocaml/lablGL/raw.cmi
| make inconsistent assumptions over interface Pervasives
| make[1]: *** [glGtk.cmi] Error 2
| rm
| make[1]: Leaving directory
| `/var/tmp/portage/lablgtk-1.2.5/work/lablgtk-1.2.5/src'
| make: *** [all] Error 2
| !!! ERROR: dev-ml/lablgtk-1.2.5 failed.
| !!! Function src_compile, Line 35, Exitcode 2
| !!! (no error message)
| !!! If you need support, post the topmost build error, NOT this status message.

That pretty much sucks.  Will try to resolve the dependencies per hand...