First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 135641
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Team for the ML programming language family <ml@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Pieter Van den Abeele <pvdabeel@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ocaml-3.09.2.ebuild ocaml-3.09.2.ebuild with PPC fix text/plain Pieter Van den Abeele 2006-06-05 08:46 0000 2.30 KB Details
ocaml-3.09.2.ebuild.diff ocaml-3.09.2.ebuild.diff patch Yuri Vasilevski 2006-08-28 08:16 0000 327 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 135641 depends on: Show dependency tree
Bug 135641 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-05 08:45 0000
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 From Pieter Van den Abeele 2006-06-05 08:46:33 0000 -------
Created an attachment (id=88449) [edit]
ocaml-3.09.2.ebuild with PPC fix

------- Comment #2 From Pieter Van den Abeele 2006-07-10 15:34:42 0000 -------
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 From Markus Rothe 2006-07-10 22:38:01 0000 -------
If it is the correct fix then go for it, but I'm not sure about that.

------- Comment #4 From Markus Rothe 2006-08-15 06:56:53 0000 -------
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 From Yuri Vasilevski 2006-08-28 08:16:00 0000 -------
Created an attachment (id=95288) [edit]
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 From Brent Baude 2006-08-28 09:30:40 0000 -------
Works here too.  

------- Comment #7 From Pieter Van den Abeele 2006-09-19 09:04:44 0000 -------
3.09.3 has this problem too. 

------- Comment #8 From Alexandre Buisse (RETIRED) 2006-09-20 04:58:28 0000 -------
Fix added to 3.09.3. Thanks for the patch.

------- Comment #9 From Alexandre Buisse (RETIRED) 2006-10-10 15:17:54 0000 -------
*** Bug 150776 has been marked as a duplicate of this bug. ***

------- Comment #10 From Yuri Vasilevski 2007-05-10 16:17:12 0000 -------
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 From Alexis Ballier 2007-05-11 19:12:37 0000 -------
nice catch, fixed again, thanks

First Last Prev Next    No search results available      Search page      Enter new bug