Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153738 - dev-lang/ocaml- 3.09.3 doesn't accept -host
Summary: dev-lang/ocaml- 3.09.3 doesn't accept -host
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 12:24 UTC by marcc
Modified: 2006-11-02 08:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marcc 2006-11-01 12:24:23 UTC
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?
Comment 1 Alexandre Buisse (RETIRED) gentoo-dev 2006-11-01 16:09:26 UTC
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.
Comment 2 marcc 2006-11-02 03:06:17 UTC
(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!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-11-02 03:41:38 UTC
(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.
Comment 4 marcc 2006-11-02 03:47:43 UTC
> 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?
Comment 5 Alexandre Buisse (RETIRED) gentoo-dev 2006-11-02 04:12:17 UTC
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 
Comment 6 marcc 2006-11-02 04:41:34 UTC
(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! 
Comment 7 Alexandre Buisse (RETIRED) gentoo-dev 2006-11-02 08:21:05 UTC
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.