[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when cross-compiling for 64-bit Linux
From: |
Thomas Dickey |
Subject: |
Re: Error when cross-compiling for 64-bit Linux |
Date: |
Tue, 13 Mar 2012 19:40:23 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Mar 13, 2012 at 11:32:59AM -0700, Stephen Kent wrote:
> I'm running 32-bit Gentoo Linux, and I'm trying to compile ncurses for
> 64-bit using a crossdev environment. This has worked in the past with
> ncurses 5.7-r7, but ncurses 5.9 fails to compile at make_hash.
> i686-pc-linux-gnu-gcc says "error: CPU you selected does not support x86-64
> instruction set."
>
> I've made a post about this on the Gentoo Forums as well, with some more
> details ( http://forums.gentoo.org/viewtopic-t-914814.html ).
>
> I can't figure out what's wrong. Does anyone have any ideas? Let me know if
> you need more information.
puzzled too -
but google helps. One of the hits on the message comments
http://lists.kde.org/?l=kdevelop&m=110630550008700&w=2
that if your machine is 64-bits, then you need an "-m32" option to tell it
to do the right thing with the 32-bit compiler (the i686-pc-linux-gnu-gcc).
So it sounds as if the ebuild is inconsistent with its use of these
ncurses configure options:
--with-build-cc=XXX
--with-build-cflags=XXX
The model used for the build compiler (for make_hash) isn't really important,
since the binary is not linked to the cross-compiled code.
I'd just use "gcc" and assume it would do the right thing.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature