Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 153738
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: Marcelo Coelho <marcelocoelho@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 153738 depends on: Show dependency tree
Bug 153738 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-11-01 12:24 0000
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 From Alexandre Buisse (RETIRED) 2006-11-01 16:09:26 0000 -------
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 From Marcelo Coelho 2006-11-02 03:06:17 0000 -------
(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 From Jakub Moc (RETIRED) 2006-11-02 03:41:38 0000 -------
(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 From Marcelo Coelho 2006-11-02 03:47:43 0000 -------
> 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 From Alexandre Buisse (RETIRED) 2006-11-02 04:12:17 0000 -------
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 From Marcelo Coelho 2006-11-02 04:41:34 0000 -------
(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 From Alexandre Buisse (RETIRED) 2006-11-02 08:21:05 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug