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
Status: RESOLVED TEST-REQUEST
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


Attachments

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 
http://ftp.easynet.nl/mirror/gentoo/distfiles/unison-2.9.1.tar.gz 
--19:19:52--  
http://ftp.easynet.nl/mirror/gentoo/distfiles/unison-2.9.1.tar.gz 
           => `/var/cache/portage/sources/unison-2.9.1.tar.gz' 
Resolving ftp.easynet.nl... 195.86.128.57 
Connecting to ftp.easynet.nl[195.86.128.57]:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 319,081 [application/x-tar] 
 
100%[==================================================================================================>] 
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. 
gtk 
Building for Unix 
NATIVE = true 
THREADS = false 
STATIC = false 
OSTYPE = 
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.ml ---> 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/uicommon.ml 
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.ml ---> 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/uitext.ml 
ocamlopt: main.ml ---> 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/main.ml 
ocamlopt: pixmaps.ml ---> 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/pixmaps.ml 
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.ml ---> 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/uigtk.ml 
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 
message. 
 


> 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.3.4.20040808-r1, 
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) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  
sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-pipe -march=athlon-tbird -O2 -fstack-protector" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
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" 
DISTDIR="/var/cache/portage/sources" 
FEATURES="autoaddcvs candy ccache distlocks sandbox" 
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/" 
MAKEOPTS="-j2" 
PKGDIR="/var/cache/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage-overlay/mortage /usr/local/portage-overlay/misc /usr/local/portage-overlay/kde-b33" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
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 
video_cards_radeon"
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/ocaml-rebuild.sh 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.

Whatever:
| (0) otherland ~ # sh /usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh
| 
| 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 varcc.ml
| 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...