Re: questions about multilib support for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you. It works now

2012/9/11 Ian Lance Taylor <iant@xxxxxxxxxx>:
> On Tue, Sep 11, 2012 at 8:38 AM, mei yuhua <progmei@xxxxxxxxx> wrote:
>> I meet many problems indeed.
>> With default the GCC search the /usr/lib directory inside sysroot to link.
>> I can install the glibc in /usr/lib, but if I want to use multilib,
>> the glibc need some extra directory.
>> As I know with the 64bit and 32bit libs can install into the
>> /usr/lib64 and /usr/lib.
>> But where to install the soft/hard float and big/little endian libs?
>
> The multilib approach is to install the non-default libraries in
> subdirectories of the install path.  GCC will then search
> subdirectories before the main directory.  The subdirectories to
> search will be chosen based on the command line options.
>
> The /usr/lib64 and /usr/lib approach is not the standard GCC multilib approach.
>
> Ian
>
>
>>
>>
>> 2012/9/11 Ian Lance Taylor <iant@xxxxxxxxxx>:
>>> On Tue, Sep 11, 2012 at 6:45 AM, mei yuhua <progmei@xxxxxxxxx> wrote:
>>>> I only need the 32 bits libs, so I think I just need to copy the
>>>> gcc/config/mips/t-elf to gcc/config/mips/t-linux. right?
>>>
>>> If you add a new file, you also need to change config.gcc to use that file.
>>>
>>>> And how can I build the GLIBC, I think the libs need different directory.
>>>
>>> Cross-compiling glibc for GNU/Linux is difficult and painful.  Don't
>>> expect it to be simple.  I think the latest info on that is at
>>> http://crosstool-ng.org/ .
>>>
>>> Ian
>>>
>>>
>>>> 2012/9/11 Ian Lance Taylor <iant@xxxxxxxxxx>:
>>>>> On Mon, Sep 10, 2012 at 4:40 PM, mei yuhua <progmei@xxxxxxxxx> wrote:
>>>>>> But I don't want mips-elf, I need the mips-linux.
>>>>>
>>>>>
>>>>> Please reply to the mailing list, not just to me.  Thanks.
>>>>>
>>>>> You can do it by setting the multilib variables.  You more or less
>>>>> want to copy gcc/config/mips/t-elf to gcc/config/mips/t-linux64.
>>>>>
>>>>> Ian
>>>>>
>>>>>
>>>>>> 2012/9/11 Ian Lance Taylor <iant@xxxxxxxxxx>:
>>>>>>> On Mon, Sep 10, 2012 at 5:25 AM, mei yuhua <progmei@xxxxxxxxx> wrote:
>>>>>>>
>>>>>>>>     I need to compile cross gcc(binutils2.22+gcc4.7.1+glibc2.16.0) for
>>>>>>>> mips. Can I make a gcc cross compile with both big/little endian and
>>>>>>>> soft/hard float support? And could you give me some guides on how to
>>>>>>>> compile it?
>>>>>>>
>>>>>>> Yes, you can do that.  It will normally happen by default, e.g., if
>>>>>>> you configure --target=mips-elf.
>>>>>>>
>>>>>>> Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux