Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135641 - Ocaml fails to detect ARCH correctly on PPC64/PPC32 (with fix)
Summary: Ocaml fails to detect ARCH correctly on PPC64/PPC32 (with fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
: 150776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-05 08:45 UTC by Pieter Van den Abeele (RETIRED)
Modified: 2007-05-11 19:12 UTC (History)
4 users (show)

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


Attachments
ocaml-3.09.2.ebuild with PPC fix (ocaml-3.09.2.ebuild,2.30 KB, text/plain)
2006-06-05 08:46 UTC, Pieter Van den Abeele (RETIRED)
Details
ocaml-3.09.2.ebuild.diff (ocaml-3.09.2.ebuild.diff,327 bytes, patch)
2006-08-28 08:16 UTC, Yuri Vasilevski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Van den Abeele (RETIRED) gentoo-dev 2006-06-05 08:45:26 UTC
I am running a 64bit kernel with a 32bit PPC userland and ocaml fails to detect the architecture correctly, this results in 

make opt

failing because it cannot make none.o required by librunasm.a. This problem is easy to fix by passing CHOST to the configure of ocaml as follows:

configure -host powerpc-unknown-linux-gnu

Ocaml compiles perfectly with this fix in place. Tested with ocaml-3.09.2. Fixed ebuild is attached.
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-06-05 08:46:33 UTC
Created attachment 88449 [details]
ocaml-3.09.2.ebuild with PPC fix
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-07-10 15:34:42 UTC
This bug with patch has been open for more than a month. Please let me know if you want me to commit it. 

Pieter
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-07-10 22:38:01 UTC
If it is the correct fix then go for it, but I'm not sure about that.
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2006-08-15 06:56:53 UTC
the problem is that config.guess returns powerpc64-unknown-linux-gnu instead of powerpc-unknown-linux-gnu even in 32 bit userland.

I'll check if this is intented or not.
Comment 5 Yuri Vasilevski (RETIRED) gentoo-dev 2006-08-28 08:16:00 UTC
Created attachment 95288 [details, diff]
ocaml-3.09.2.ebuild.diff

Can confirm this fix to work. I have been successfully using the same fix on x86_64/i686 and ppc64/ppc kernel/userland combinations.

Yuri.

PS: For reference attaching the diff to the ebuild I have been using.
Comment 6 Brent Baude (RETIRED) gentoo-dev 2006-08-28 09:30:40 UTC
Works here too.  
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2006-09-19 09:04:44 UTC
3.09.3 has this problem too. 
Comment 8 Alexandre Buisse (RETIRED) gentoo-dev 2006-09-20 04:58:28 UTC
Fix added to 3.09.3. Thanks for the patch.
Comment 9 Alexandre Buisse (RETIRED) gentoo-dev 2006-10-10 15:17:54 UTC
*** Bug 150776 has been marked as a duplicate of this bug. ***
Comment 10 Yuri Vasilevski (RETIRED) gentoo-dev 2007-05-10 16:17:12 UTC
The problem returned in dev-lang/ocaml-3.09.3-r1.

The problem is with -tk because of:
local myconf="--host ${CHOST}"
use tk || myconf="-no-tk"

Please change to:
local myconf="--host ${CHOST}"
use tk || myconf="${myconf} -no-tk"
Comment 11 Alexis Ballier gentoo-dev 2007-05-11 19:12:37 UTC
nice catch, fixed again, thanks