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.
Created attachment 88449 [details] ocaml-3.09.2.ebuild with PPC fix
This bug with patch has been open for more than a month. Please let me know if you want me to commit it. Pieter
If it is the correct fix then go for it, but I'm not sure about that.
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.
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.
Works here too.
3.09.3 has this problem too.
Fix added to 3.09.3. Thanks for the patch.
*** Bug 150776 has been marked as a duplicate of this bug. ***
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"
nice catch, fixed again, thanks