Hi! When i was trying to build a x86 gentoo installation in a amd64 machine i noticed that ocaml was being built for x86_64 instead to x86. During compilation i found out the problem: Line 36: -host not found At that line, there is: myconf=${myconf} "-host ${CHOST}" But this way, the configure script wasn't being built for the specified arch. Maybe it would be better to remove the above mentioned line and have ./configure -prefix /usr \ -bindir /usr/bin \ -libdir /usr/$(get_libdir)/ocaml \ -mandir /usr/share/man \ --host ${CHOST} \ --with-pthread ${myconf} || die at line 41 - 46?
What exactly is your problem here? From your bugreport, I get the impression that you want to replace -host by --host in the configure script but I've just tested it and both versions are accepted by the compiler. Please attach output of the whole configuration phase and your emerge --info.
(In reply to comment #1) > What exactly is your problem here? From your bugreport, I get the impression > that you want to replace -host by --host in the configure script but I've just > tested it and both versions are accepted by the compiler. > > Please attach output of the whole configuration phase and your emerge --info. > I have a core2duo where i built a 64 bit gentoo install. This problem happened when i was trying to build a 586 system in a chroot. First i forgot about using linux32 chroot, and because of that, when i tried compiling ocaml i noticed that emerge gave a tiny error at the line where myconf was updated with the CHOST information. Because of that, the installation ocurred for x86_64-unknown (something) until it breakup, instead of compiling for a 586. So, if the CHOST setting was added to the configure line (starting at line 41) the compiling goes fine. I know a little about scripts and i also thought it was really strange an error on that line!
(In reply to comment #2) > First i forgot about using > linux32 chroot, and because of that, when i tried compiling ocaml i noticed > that emerge gave a tiny error at the line where myconf was updated with the > CHOST information. Sorry, but user mistake is not an ebuild bug, configure did a correct thing.
> Sorry, but user mistake is not an ebuild bug, configure did a correct thing. Certainly, but if the Configure has the CHOST information in the Configure setting line itself rather in myconf variable it works! Or the users have to do everything by the book?
But indeed, there was a problem with -host. Stupidly, the quote wasn't in the right place in line 36... It's now fixed in CVS, thanks for reporting
(In reply to comment #5) > But indeed, there was a problem with -host. Stupidly, the quote wasn't in the > right place in line 36... It's now fixed in CVS, thanks for reporting Thank you for spending some time to see why I complained, even after I stated my mistake. BTW, I noticed the same error in the ebuilds of previous versions of ocaml. Continue your excellent work!
The other ebuilds don't use the -host switch at all, you are advised to use ocaml-3.09.3 if you have that kind of build failures.