I have a problem with emerging ocaml 3.06 (explained in bug 28025). Solution of that problem is emerging new beta ocaml from portage. But then mldonkey refuses to emerge - it says that ocaml 3.06 is required. Reproducible: Always Steps to Reproduce: 1.ACCEPT_KEYWORDS="~x86" emerge ocaml 2.emerge mldonkey 3. Actual Results: mldonkey doesn't emerge. Message that ocaml 3.06 is required to emerge mldonkey appears. Expected Results: I just want to emerge mldonkey.
Can you paste in the actual output that emerge shows? The ebuild only has a dependency on >=dev-lang/ocaml-3.06 so I'm a little confused.
Here is the whole output from emerge mldonkey: Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/mldonkey-2.5.3-r1 to / >>> md5 src_uri ;-) mldonkey-2.5-3.sources.tar.gz * User already configured. >>> Unpacking source... >>> Unpacking mldonkey-2.5-3.sources.tar.gz to /var/tmp/portage/mldonkey-2.5.3-r1/work >>> Source unpacked. creating cache ./config.cache --prefix=/usr --host=i586-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/mldonkey --sharedstatedir=/var/mldonkey --localstatedir=/var/mldonkey --enable-ocamlver=3.06 checking host system type... i586-pc-linux-gnu checking for gcc3... gcc checking for gcc... (cached) gcc checking whether the C compiler (gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer ) works... yes checking whether the C compiler (gcc -march=k6-2 -O3 -pipe -fomit-frame-pointer ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking how to run the C preprocessor... gcc -E checking for ranlib... ranlib checking for gmake... gmake checking for make... (cached) gmake checking for ocamlc.opt... ocamlc.opt checking for ocamlc... (cached) ocamlc.opt i586-pc-linux-gnu Testing ocaml version Need build checking for /var/tmp/portage/mldonkey-2.5.3-r1/work/mldonkey-2.5-3/patches/local/bin/ocamlc.opt... no checking for rpmbuild... no checking for rpm... no checking for wget... wget ******** Objective-Caml 3.06 is required ********* ******* Check http://ocaml.inria.fr/ ******** Do you want this script to try to download and install ocaml LOCALLY in mldonkey directory ? If I choose "no" the next output is: !!! ERROR: net-p2p/mldonkey-2.5.3-r1 failed. !!! Function econf, Line 324, Exitcode 1 !!! econf failed
i can confirm this...
Created attachment 18359 [details] modified ebuild for use with ocaml 3.07
Solution: change the confiure-flag for ocaml in the ebuild to 3.07 This prevents you (also) from installing ocaml 3.06 locally... HTH, Jan
Pleas could some verify that the ebuild is working with ocaml 3.07? I just got this on my side: ocamlopt.opt -inline 10 -I src/utils/cdk -I src/daemon/chat -I src/utils/lib -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/gtk/gui -I src/gtk/gui2 -I src/gtk/configwin -I src/gtk/okey -I src/gtk/gpattern -I icons/kde -I +lablgtk -I src/im -I src/im/yahoo -I src/im/irc -I src/networks/direct_connect -I src/networks/opennap -I src/networks/gnutella -I src/networks/fasttrack -I src/networks/bittorrent -I src/networks/donkey -I src/networks/soulseek -c src/gtk/configwin/configwin_types.ml The files /usr/lib/ocaml/pervasives.cmi and /usr/lib/ocaml/lablgtk/gPack.cmi make inconsistent assumptions over interface Pervasives make: *** [src/gtk/configwin/configwin_types.cmx] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message)
I've got following error when using your ebuild: ocamlc.opt -I src/utils/cdk -I src/daemon/chat -I src/utils/lib -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networks/direct_connect -I src/networks/opennap -I src/networks/gnutella -I src/networks/fasttrack -I src/networks/bittorrent -I src/networks/donkey -I src/networks/soulseek -c src/utils/cdk/printexc2.mli File "src/utils/lib/autoconf.ml", line 22, characters 28-49: The type constructor format expects 3 argument(s), but is here applied to 4 argument(s) make: *** [src/utils/lib/autoconf.cmo] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message)
Same problem here. checking for make... (cached) gmake checking for ocamlc.opt... ocamlc.opt checking for ocamlc... (cached) ocamlc.opt i686-pc-linux-gnu Testing ocaml version Need build checking for /var/tmp/portage/mldonkey-2.5.3-r2/work/mldonkey-2.5-3/patches/local/bin/ocamlc.opt... no checking for rpmbuild... rpmbuild checking for rpm... (cached) rpmbuild checking for wget... wget ******** Objective-Caml 3.06 is required ********* ******* Check http://ocaml.inria.fr/ ******** Do you want this script to try to download and install ocaml LOCALLY in mldonkey directory ? !!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed. !!! Function econf, Line 324, Exitcode 1 !!! econf failed
Works for me when I change the dependency in the mldonkey ebuild to ~dev-lang/ocaml-3.06 it downgrades ocaml from 3.07 beta to 3.06-r2 (3.06 doesn't compile for me) and mldonkey compiles fine. with ocaml 3.07 beta, I get the same error as Lukasz Glaz.
I get something completely different (error) than anyone else. ocamlc.opt -I src/utils/cdk -I src/daemon/chat -I src/utils/lib -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/gtk/gui -I src/gtk/gui2 -I src/gtk/configwin -I src/gtk/okey -I src/gtk/gpattern -I icons/kde -I +lablgtk -I src/im -I src/im/yahoo -I src/im/irc -I src/networks/direct_connect -I src/networks/opennap -I src/networks/gnutella -I src/networks/fasttrack -I src/networks/bittorrent -I src/networks/donkey -I src/networks/soulseek -c /usr/lib/ocaml/lablgtk/gtk.ml ACCESS DENIED open_wr: /usr/lib/ocaml/lablgtk/gtk.cmo I/O error: /usr/lib/ocaml/lablgtk/gtk.cmo: Permission denied make: *** [/usr/lib/ocaml/lablgtk/gtk.cmo] Error 2 !!! ERROR: net-p2p/mldonkey-2.5.3-r3 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message) --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-mldonkey-2.5.3-r3-32099.log" open_wr: /usr/lib/ocaml/lablgtk/gtk.cmo -------------------------------------------------------------------------------- Looks like the make process is trying to write outside of it's boundaries. Perhaps and upstream bug?
That's what I get using your ebuild : Building dependencies Building dependencies fails: try: 'make depend' or 'gmake depend' The following modules will not be compiled: { audio_galaxy(obsolete) openFT(obsolete) mldonkey_gui$(EXE) mldonkey_gui2$(EXE) mlchat$(EXE) } ocamlc.opt -I tools/zoggy -I +camlp4 -pp "camlp4 pa_o.cmo pr_dump.cmo" -a -o pa_zog.cma tools/zoggy/zog_types.ml tools/zoggy/zog_messages.ml tools/zoggy/zog_misc.ml tools/zoggy/pa_zog.ml ocamlopt.opt -inline 10 -I src/utils/cdk -I src/daemon/chat -I src/utils/lib -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networks/direct_connect -I src/networks/opennap -I src/networks/gnutella -I src/networks/fasttrack -I src/networks/bittorrent -I src/networks/donkey -I src/networks/soulseek -c src/daemon/common/commonMain.ml File "src/daemon/common/commonMain.ml", line 20, characters 0-12: Unbound module Printf2 make: *** [src/daemon/common/commonMain.cmx] Error 2 make: *** Waiting for unfinished jobs.... File "tools/zoggy/pa_zog.ml", line 248, characters 14-22: While expanding quotation "expr": Parse error: end of input expected after [expression] (in [expression]) Preprocessor error make: *** [pa_zog.cma] Error 2 !!! ERROR: net-p2p/mldonkey-2.5.3-r2 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message) Thanks in advance
Okay, for those who did'nt recognize: The given ebuild will not work (at least no one said so). Thatsway you have to use the official ebuild and say 'Y' to the questions about local installations of ocaml and other packets for which you may be asked. This should be work for everyone and the local installations are just for buidling mldonkey and will not make its way to your system (AFAIK). HTH, Jan
mldonkey-2.5-4 does compile with ocaml-3.07+2 (ocaml-3.07 with latest bug-fix applied). See bug #30983.
*** This bug has been marked as a duplicate of 30983 ***