ct-ng: force host=i486 when building on x86_64

Brian St. Pierre brian@bstpierre.org
Fri Nov 5 13:09:00 GMT 2010


On Tue, Nov 2, 2010 at 5:54 AM, Javier Viguera <javier.viguera@digi.com> wrote:
> On 11/01/2010 06:51 PM, Brian St. Pierre wrote:
>> I'm using crosstool-ng on an x86_64 machine. I'd like the resulting
>> compiler to run on a 32-bit x86 (i486).
>
> You might try 'linux32' command from util-linux package. I use it for the
> same purposes than you and so far it is working well.

Thanks for the tip, but it does not work for me.

The real problem I'm trying to get past is that ct-ng successfully
builds powerpc-unknown-linux-gnu for me on the x86_64 machines, but
fails on the i686 machine.

I get the following error during the glibc install:

    [ALL  ]    /home/build/xtool/targets/powerpc-unknown-linux-gnu/build/gcc-core-shared/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/../../../../powerpc-unknown-linux-gnu/bin/ld:
cannot find -lgcc

My config file is attached -- it is taken from the powerpc sample
config. I'm using ct-ng from hg, updated just after the 1.9.0 release.

I've tried different versions of glibc, gcc, and still get the same
error. What am I missing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerpc.config
Type: application/octet-stream
Size: 9529 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20101105/00420f07/attachment.obj>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list