Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60243 - dev-ml/lablgtk-1.2.7 compile failed
Summary: dev-ml/lablgtk-1.2.7 compile failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthieu Sozeau (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 10:35 UTC by Miguel Angel Rasero
Modified: 2005-09-21 09:40 UTC (History)
3 users (show)

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 Miguel Angel Rasero 2004-08-13 10:35:21 UTC
When i try to emerge lablgtk, 1.2.7 or 1.2.6 i always have a compile error.

Reproducible: Always
Steps to Reproduce:
1. emerge -uDv =dev-ml/lablgtk-1.2.7



Actual Results:  
ocamlmktop -I /usr/lib/ocaml/lablGL -o lablgtktop unix.cma str.cma lablgl.cma -I
. lablgtk.cma lablgtkgl.cma lablgnome.cma lablglade.cma gtkInit.cmo
make[1]: *** [lablgtktop] Excepci
Comment 1 Miguel Angel Rasero 2004-08-13 10:35:21 UTC
When i try to emerge lablgtk, 1.2.7 or 1.2.6 i always have a compile error.

Reproducible: Always
Steps to Reproduce:
1. emerge -uDv =dev-ml/lablgtk-1.2.7



Actual Results:  
ocamlmktop -I /usr/lib/ocaml/lablGL -o lablgtktop unix.cma str.cma lablgl.cma -I
. lablgtk.cma lablgtkgl.cma lablgnome.cma lablglade.cma gtkInit.cmo
make[1]: *** [lablgtktop] Excepción de coma flotante
make[1]: *** Se borra el archivo `lablgtktop'
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)


Expected Results:  
emerged sucessfully

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7-ge
ntoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.5.2
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-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/sha
re/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm arts avi berkdb cdr crypt cups curl directfb dvd dvdr
 encode esd fbcon foomaticdb gd gdbm gif gmp gnome gpm gtk gtk2 gtkhtml imagemag
ick imap imlib innodb jabber jpeg kde kerberos lcms ldap libg++ libwww linguas_e
s live mad maildir mikmod mmx motif mozilla mpeg msn ncurses nls nptl oggvorbis
opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner s
dl slang slp spell sqlite sse ssl svga tcltk tcpd tiff truetype unicode usb wxwi
ndows x86 xml2 xmms xv zlib"
Comment 2 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-13 15:18:15 UTC
What's your arch and ocaml version (ocamlc -v), also, 
what happens if you try to 'USE=-opengl emerge lablgtk' ?
Comment 3 Miguel Angel Rasero 2004-08-14 03:10:14 UTC
my arch is pentium4
The Objective Caml compiler, version 3.08.0
Standard library directory: /usr/lib/ocaml

with -opengl it works fine, thanks.


Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-18 08:19:18 UTC
Why does it not compile with opengl?
Comment 5 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-18 09:11:53 UTC
I don't know, have you got the same problem ? If so, what's your config ?
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-18 10:10:24 UTC
Compilation with opengl fails, without it, it's all fine. Perhaps an upstream is required about this issue.

My config:

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8                                      -gentoo)
=================================================================
System uname: 2.6.8-gentoo i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr -f                                      force-mem -fmove-all-movables"
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.3/env:/usr/kde/3.3/shutdown /                                      usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/sha                                      re/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/gen                                      eric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qma                                      il/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr                                       -fforce-mem -fmove-all-movables"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox usersandbox"
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo/ http://ftp.ntua.gr/pub/linux/g                                      entoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi acpi4linux alsa apache2 apm arts audiofile avi berkdb bl                                      ender-game bluetooth bootsplash bzlib c++ caps cddb cdinstall cdparanoia cdr cdr                                      om chroot clamav clanVoice codecs crypt cups curl dga dio directfb divx4linux dv                                      d dvdr encode erandom esd ethereal fastcgi fbcon flac flash foomaticdb freetype                                       gd gdbm ggi gif gimp gimpprint gmp gnome gphoto2 gpm gstreamer gtk gtk2 icq imag                                      emagick imlib ipv6 java jikes jpeg junit kde lcms ldap libg++ libwww linguas_el                                       linguas_es mad memlimit mikmod mmx motif mozilla mpeg msn ncurses nls nocd nptl                                       oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline s                                      amba sdl slang spell sse ssl svg svga szip tcltk tcpd tetex tiff truetype ttf un                                      icode usb video_cards_nvidia videos wmf x86 xml xml2 xmms xv xvid zlib"

Comment 7 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-18 10:11:32 UTC
Sorry, my mistake on the previous post. Corrected below:

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo)
=================================================================
System uname: 2.6.8-gentoo i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.2
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr -fforce-mem -fmove-all-movables"
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.3/env:/usr/kde/3.3/shutdown /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="-O3 -mcpu=i686 -fomit-frame-pointer -funroll-loops -pipe -fforce-addr -fforce-mem -fmove-all-movables"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox usersandbox"
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi acpi4linux alsa apache2 apm arts audiofile avi berkdb blender-game bluetooth bootsplash bzlib c++ caps cddb cdinstall cdparanoia cdr cdrom chroot clamav clanVoice codecs crypt cups curl dga dio directfb divx4linux dvd dvdr encode erandom esd ethereal fastcgi fbcon flac flash foomaticdb freetype gd gdbm ggi gif gimp gimpprint gmp gnome gphoto2 gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 java jikes jpeg junit kde lcms ldap libg++ libwww linguas_el linguas_es mad memlimit mikmod mmx motif mozilla mpeg msn ncurses nls nocd nptl oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline samba sdl slang spell sse ssl svg svga szip tcltk tcpd tetex tiff truetype ttf unicode usb video_cards_nvidia videos wmf x86 xml xml2 xmms xv xvid zlib"
Comment 8 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-18 14:37:43 UTC
Ioannis: have you got the same "Floating point error", or a "Cannot handle TLS data" error ?
Comment 9 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-18 14:50:30 UTC
Guess what! I emerge lablgtk with USE="-opengl" to solve the error. After that, I updated the entire system... and now I've tried USE="opengl" emerge lablgtk and IT WORKS!

That means that there is a dependency problem over there... check it out.
Comment 10 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-18 16:51:17 UTC
Okay, can you give us the list of packages you updated ?
Comment 11 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-18 23:45:38 UTC
It was the following packages plus their respective dependencies:

net-p2p/mldonkey
sys-apps/vixie-cron
games-util/qstat
games-util/xqf
dev-java/xerces
dev-java/bsh
dev-java/jikes
dev-java/junit
sys-apps/qingy
sys-apps/hdparm
media-libs/libcddb

I remember having to merge lots of dev-java packages which were marked as new, btw.

I do not know whether these java-related packages are the source of the problem... not sure that ocaml indeed depends on them.
Comment 12 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-19 04:26:51 UTC
Ioannis, did you get the 'Floating point error' problem or the 'cannot handle TLS data' problem, i need to know that ! Also did you update dev-lang/ocaml or opengl-related libraries during this global update ?
Comment 13 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-19 06:38:29 UTC
OK, I made a mistake, opengl works for lablgtk-2.4.0, not for lablgtk-1.2.7

And the error message I get is:


ocamlc.opt -I /usr/lib/ocaml/lablGL -w s -c gToolbox.ml
ocamlmklib -verbose -o lablgtk gaux.cmo gpointer.cmo glib.cmo gdk.cmo gdkEvent.cmo gdkKeysyms.cmo gtk.cmo gtkArgv.cmo gtkSignal.cmo gtkData.cmo gtkBase.cmo gtkPack.cmo gtkButton.cmo gtkMenu.cmo gtkMisc.cmo gtkWindow.cmo gtkTree.cmo gtkList.cmo gtkBin.cmo gtkEdit.cmo gtkRange.cmo gtkMain.cmo gtkNew.cmo gDraw.cmo gObj.cmo gMain.cmo gData.cmo gContainer.cmo gPack.cmo gButton.cmo gMenu.cmo gMisc.cmo gTree.cmo gList.cmo gWindow.cmo gBin.cmo gEdit.cmo gRange.cmo gUtil.cmo gToolbox.cmo -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
Unknown option -rdynamic
+ /usr/bin/ocamlc -a  -o lablgtk.cma  gaux.cmo gpointer.cmo glib.cmo gdk.cmo gdkEvent.cmo gdkKeysyms.cmo gtk.cmo gtkArgv.cmo gtkSignal.cmo gtkData.cmo gtkBase.cmo gtkPack.cmo gtkButton.cmo gtkMenu.cmo gtkMisc.cmo gtkWindow.cmo gtkTree.cmo gtkList.cmo gtkBin.cmo gtkEdit.cmo gtkRange.cmo gtkMain.cmo gtkNew.cmo gDraw.cmo gObj.cmo gMain.cmo gData.cmo gContainer.cmo gPack.cmo gButton.cmo gMenu.cmo gMisc.cmo gTree.cmo gList.cmo gWindow.cmo gBin.cmo gEdit.cmo gRange.cmo gUtil.cmo gToolbox.cmo -dllib -llablgtk -cclib -llablgtk -ccopt -L/usr/lib -ccopt -L/usr/X11R6/lib -ccopt -Wl,-rpath,/usr/lib:/usr/X11R6/lib -cclib -lgtk -cclib -lgdk -cclib -lgmodule -cclib -lglib -cclib -ldl -cclib -lXi -cclib -lXext -cclib -lX11 -cclib -lm 
./varcc gtkgl_tags.var
ocamlc.opt -c -ccopt "-O -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 -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)



The updated packages are no longer necessary, even though I have them logged.
Comment 14 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-19 07:15:27 UTC
That means your lablgl version was not compiled with the same compiler as you use for building lablgtk. Have you run the update script after upgrading ocaml ? Quick fix for this: emerge lablgl; emerge =dev-ml/lablgtk-1.2.7
Comment 15 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-19 09:25:36 UTC
Thank you, that did the job. What's the name of the script again?
Comment 16 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-19 10:40:43 UTC
The script's /usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh.
Miguel, did you forgot to start it too ?
Comment 17 Miguel Angel Rasero 2004-08-19 11:37:53 UTC
No, i have tried but it didnt work, the recompilation of lablgl and lablgtk fixed the error "/usr/lib/ocaml/lablGL/raw.cmi is not a compiled interface" but not my error "make[1]: *** [lablgtktop] Excepci
Comment 18 Miguel Angel Rasero 2004-08-19 11:37:53 UTC
No, i have tried but it didnt work, the recompilation of lablgl and lablgtk fixed the error "/usr/lib/ocaml/lablGL/raw.cmi is not a compiled interface" but not my error "make[1]: *** [lablgtktop] Excepción de coma flotante
" i used the correct order because i read in a bug from "http://bugs.gentoo.org/show_bug.cgi?id=59933".
Comment 19 Ioannis Aslanidis (RETIRED) gentoo-dev 2004-08-19 11:44:15 UTC
Ideas why it is giving him a floating point exception? Perhaps that "-march=pentium4"?
Comment 20 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-26 05:14:00 UTC
As ioannis point out, this may be related to your CFLAGS being a little too agressive.
Can you try reemerging ocaml lablgl and lablgtk with safer flags like "-O2 -pipe" ?
Comment 21 Miguel Angel Rasero 2004-08-26 06:28:03 UTC
I have the same error with CFLAGS=-O2 -pipe
Comment 22 Matthieu Sozeau (RETIRED) gentoo-dev 2004-08-26 06:45:51 UTC
Ok, could you give me a shell account on your machine so I can try to debug this ? You can join me at mattam@gentoo.org or on irc.freenode.net (i'm mattam here).
Comment 23 chalito 2004-08-26 13:08:44 UTC
Ehm.. I got the "Cannot handle TLS data" error. Anyone has any pointers about fixing it?

thanks!
Comment 24 rabbitambulance 2004-09-07 03:55:50 UTC
Matthieu's suggestion fixed this for me. the ebuild should do this itself, though.
Comment 25 Matthieu Sozeau (RETIRED) gentoo-dev 2005-02-06 08:25:56 UTC
Apparently the bug is fixed now (see bug #60193), could you test and report ?
Comment 26 Matthieu Sozeau (RETIRED) gentoo-dev 2005-09-21 09:40:47 UTC
No response but the bug is apparently fixed.