Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37826 - ocaml 3.0.7-r1 generates bad amd64 native code executables
Summary: ocaml 3.0.7-r1 generates bad amd64 native code executables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 38589 44198 49060
  Show dependency tree
 
Reported: 2004-01-10 14:00 UTC by Thomas Weidner
Modified: 2004-08-13 15:11 UTC (History)
1 user (show)

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


Attachments
patch for mldonkey 2.5.12 and ocaml-cvs (3.07+14 here) (mldonkey-cvs.patch,4.26 KB, patch)
2004-02-29 05:07 UTC, Thomas Weidner
Details | Diff
ocaml cvs ebuild (ocaml-cvs-3.07.ebuild,1.52 KB, text/plain)
2004-02-29 14:03 UTC, Thomas Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2004-01-10 14:00:31 UTC
Hello,

first: i know ocaml 3.07-r1 is masked on amd64,but i merged it nevertheless as i supposed it better than the unmasked ocaml-3.07_beta2. ocaml-3.07-r1 seems to work,but more complex applications (mldonkey is the one i noticed) segfault,when compiled. (as Ocaml programs cannot segfault by their own fault it must be an compiler error). i fetched the latest version of ocaml via cvs, compiled it,recompiled mldonkey (a bit patched to work with ocaml cvs..they changed some internals (only function names)) and it worked without noticeable error. so whould be nice if some cvs snapshot of ocaml could be included in the amd64 distro.

PS: i know this bug sounds a bit strange,i won't be surprised if you reject it.
PPS: sorry for bad english.
Comment 1 Thomas Stein 2004-02-29 03:24:21 UTC
Hello

What did you patched in mldonkey sources? I can't compile mldonkey against ocaml-cvs.

regards
Thomas
Comment 2 Thomas Weidner 2004-02-29 05:07:50 UTC
Created attachment 26581 [details, diff]
patch for mldonkey 2.5.12 and ocaml-cvs (3.07+14 here)
Comment 3 Thomas Stein 2004-02-29 14:03:31 UTC
Created attachment 26618 [details]
ocaml cvs ebuild

Hello

Thanks for the patch. Seems to work. I added  epatch
"/usr/src/mldonkey-cvs.patch" to the src_compile section of the mldonkey ebuild
and changed $Depend to >=dev-lang/ocaml-cvs-3.07. Now i have mldonkey back
again on my 64bit system. Great.

regards
Thomas
Comment 4 Jason Huebel (RETIRED) gentoo-dev 2004-03-11 15:44:57 UTC
Kugelfang reports a working version now in portage...
Comment 5 Jason Huebel (RETIRED) gentoo-dev 2004-03-11 15:46:50 UTC
mldonkey still not working...
Comment 6 Matthieu Sozeau (RETIRED) gentoo-dev 2004-05-28 09:22:49 UTC
The current CVS head version of ocaml can't compile current mldonkey releases (nor CVS) as much has changed in some API's, and the current ocaml-3.07 version can't build a working mldonkey version either (tried release and CVS version) (thanks to Kugelfang for box sharing, btw :). So the only solution i see is having an ebuild for the particular ocaml snapshot it worked with (+14 it seems). I dutyfully reported the bugs of mldonkey/amd64 on mldonkey's bugzilla, where some gentoo guy already did it, but i wouldn't expect a corrected version too early. What are we doing ?
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2004-05-28 09:30:23 UTC
As it creates bad code, i will mask <=dev-lang/ocaml-3.07-r1 now -amd64.
Comment 8 Thomas Weidner 2004-05-28 17:18:59 UTC
what about the patch for mldonkey 2.5.12? doesn't it apply anymore? can it be modified to work with ocaml-cvs?
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2004-05-29 02:42:54 UTC
This is not the bug about mldonkey, this is an ocaml bug. It does produce object code that causes other bugs, so we won't mark it testing. We know already it's borked. You are free to unmask it yourself by

echo "dev-lang/ocaml ~amd64" >> /etc/portage/package.keywords

Please understand this. As soon as 3.08 is out (or a -pre version of it), I will add it to portage.
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2004-07-13 18:30:02 UTC
3.08 is out but it's incompatible and nothing will work with it. i've also talked to the ocaml dude and it seems that this is a bug in mldonkey. ocaml has been re-keyword and i've tested that it works with unison and coq, at the suggetion of mattam. both seem to work.
Comment 11 ryanlamb82 2004-08-13 13:07:36 UTC
Can someone help me apply the patch.  The ebuild for 2.5.12 has apparently been removed so I downloaded the source for it and the patch that was posted here for 2.5.12.  If I issue the command 
patch -p0 -E -s <./mldonkey-cvs.patch
It asks me which file to patch.  What should I tell it here?
Also, does anybody have any updated info on the status of ocaml and mldonkey for x86_64?  Thanks.
Comment 12 Thomas Weidner 2004-08-13 15:11:30 UTC
2.5.27 (latest cvs) works fine with ocaml 3.08.0 here....