This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

Attachment: powerpc.config
Description: Binary data

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]