Emerging dev-ml/lablgtk-1.2.7 fails with the following message: ./varcc gtkgl_tags.var ocamlc.opt -c -ccopt "-O -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include" ml_gtkgl.c ocamlmklib -verbose -o lablgtkgl -lgtkgl ml_gtkgl.o \ -lGLU -lGL -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm Unknown option -rdynamic + gcc -shared -o ./dlllablgtkgl.so ml_gtkgl.o -L/usr/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/lib:/usr/X11R6/lib -lgtkgl -lGLU -lGL -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm + ar rc ./liblablgtkgl.a ml_gtkgl.o + ranlib ./liblablgtkgl.a ocamlc.opt -I /usr/lib/ocaml/lablGL -w s -c glGtk.mli /usr/lib/ocaml/lablGL/raw.cmi is not a compiled interface make[1]: *** [glGtk.cmi] Error 2 rm varcc.ml make[1]: Leaving directory `/var/tmp/portage/lablgtk-1.2.7/work/lablgtk-1.2.7/src' make: *** [all] Error 2 !!! ERROR: dev-ml/lablgtk-1.2.7 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.5.2 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo ftp://ftp.easynet.nl/mirror/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="X Xaw3d aim alsa apache2 apm auctex audiofile avi berkdb cdr crypt cups doc emacs emacs-w3 encode esd foomaticdb freetype gd gif gimpprint glade gtk gtk2 imap imlib imlib2 jabber java jpeg libg++ libwww mad maildir mailwrapper mbox md5sum motif mozilla mpeg mpeg4 ncurses nls nntp nptl nvidia oggvorbis opengl openssh oss pam pdflib perl png pnp postgres python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype unicode usb vanilla x86 xml xml2 xmms xv zlib"
Same here, with dev-lang/ocaml-3.08
The error is due to /usr/lib/ocaml/lablGL/raw.cmi been compiled with ocaml-3.07. Solution: re-emerge lablgl before emerging lablgtk # emerge -v lablgl # emerge -uv lablgtk
Have you tried the rebuild script (/usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh) as advised by the ebuild ? It would have automatically reemerged lablgl, lablgtk and other ocaml libraries (in the right order).