Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159237 - dev-ml/findlib-1.0.4-r1 doesn't compile with dev-lang/ocaml-3.09.3
Summary: dev-ml/findlib-1.0.4-r1 doesn't compile with dev-lang/ocaml-3.09.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-27 12:36 UTC by Piotr Jaroszyński (RETIRED)
Modified: 2007-05-11 19:43 UTC (History)
2 users (show)

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


Attachments
dev-lang:ocaml-3.08.4:20070417-120653.log (dev-lang:ocaml-3.08.4:20070417-120653.log,5.67 KB, text/plain)
2007-04-17 13:15 UTC, Daniel Black (RETIRED)
Details
hopefully a useful logthis time (dev-lang:ocaml-3.09.3:20070417-132801.log,479.70 KB, text/plain)
2007-04-17 13:34 UTC, Daniel Black (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Jaroszyński (RETIRED) gentoo-dev 2006-12-27 12:36:46 UTC
dev-lang/ocaml-3.09.3 doesn't provide "ocamlopt" command which is needed to compile findlib. Simple workaround is to use previous version of ocaml(tested with 3.09.2)
I am not sure whether it's a findlib or ocaml problem.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2007-04-17 12:12:57 UTC
dev-ml/findlib-1.1.2_p1, dev-ml/findlib-1.0.4-r1 not compatible with dev-lang/ocaml-3.09.3 either.

Comment 2 Alexandre Buisse (RETIRED) gentoo-dev 2007-04-17 12:18:47 UTC
ocaml should provide ocamlopt if you are on a supported arch, no matter if you are using 3.09.3 or any other version. If it isn't installed, then there is a problem with your ocaml emerge. Please try reemerging and posting the log here. Also attach emerge --info.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2007-04-17 13:15:15 UTC
Created attachment 116506 [details]
dev-lang:ocaml-3.08.4:20070417-120653.log

(In reply to comment #2)
> ocaml should provide ocamlopt
/usr/bin/ocamlopt.opt not close enough?

> if you are on a supported arch, no matter if you
> are using 3.09.3 or any other version.

Not sure how supported 2007.0 profile is :-)
 $ emerge --info
directories: No such file or directory
Portage 2.1.2.2 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 08 Mar 2007 00:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS=" -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect digest distcc distlocks keepwork metadata-transfer nostrip sandbox sfperms splitdebug strict stricter test verify-rdepend"
GENTOO_MIRRORS=""
LDFLAGS=" -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dan/gentoo/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aac acpi adns alsa amd64 ares bash-completion berkdb bitmap-fonts bzip2 cairo caps cli cracklib crypt cups curl dbus divx4linux dri drm ecc emerald encode ethereal extensions fastcgi fla flac fortran fpx gd gif gimp gimpprint glitz gmp gnutls gphoto2 graphviz gs gtk hal hardened hpn i8x0 iconv idn ilbc imagemagick imlib ipv6 isdnlog javacomm jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos l7filter lcms libg++ libgda lzo lzw mad mbox midi mmx mng mp3 mpeg mysql nptl nptlonly ntlm ogg oggvorbis openal openexr opengl operanom2 pam pango pcre perl php png postgres ppds pppd python qt qt3 qt4 readline reflection restrict-javascript samba session sguil slp smime socks5 sox speex spell spl sse sse2 ssl svg svgz test tga theora tiff true-type truetype truetype-fonts type1-fonts unicode usb vhosts vorbis wmf x264 xine xinerama xml xml2 xorg xscreensaver zlib zrtp" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv vesa nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

> If it isn't installed, then there is a
> problem with your ocaml emerge. Please try reemerging and posting the log here.
> Also attach emerge --info.
>
Comment 4 Alexandre Buisse (RETIRED) gentoo-dev 2007-04-17 13:28:04 UTC
ocaml provides four compiler executables on supported architectures (which includes amd64): to bytecode (instructions for a virtual machine) and to native code:
-ocamlc compiles to bytecode and is in bytecode
-ocamlc.opt compiles to bytecode and is in native code
-ocamlopt compiles to native code and is in bytecode
-ocamlopt.opt compiles to native code and is in native code

So if you have ocamlopt.opt, you should have ocamlopt as well. A quick and dirty fix would be to link ocamlopt.opt to ocamlopt, and I expect it would work fine. 

I think something messed up in the installation phase, so please attach the full log and not only the ewarn/elog part (by the way, there is a patch in bugzilla for the executable stack problem).

/Alexandre
Comment 5 Daniel Black (RETIRED) gentoo-dev 2007-04-17 13:34:15 UTC
Created attachment 116507 [details]
hopefully a useful logthis time
Comment 6 Alexis Ballier gentoo-dev 2007-05-11 19:43:45 UTC
that's because you were running src_test and make bootstrap deletes ocamlopt... hopefully this will be fixed now


  11 May 2007; Alexis Ballier <aballier@gentoo.org> ocaml-3.09.3.ebuild,
  ocaml-3.09.3-r1.ebuild:
  Dont run make bootstrap for src_test, it deletes ocamlopt, upstream does not
  provide a clean test suite, if we want one we definitely should not use make
  bootstrap, closes bug #159237 and bug #177706