Re: Regarding GCC mips64 cross compiler for x86

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

 



On Fri, Oct 30, 2015 at 1:36 PM, Steve Ellcey <sellcey@xxxxxxxxxx> wrote:
> On Thu, 2015-10-29 at 15:44 -0700, Sasikumar Kandhasamy wrote:
>>
>>
>> Thanks Steve. I started building the gcc toolchain for mips64 for
>> languages c,c++ and fortran. I got struck in making gcc supported
>> libraries.
>
>> If you have the steps to build the toolchain for mips, Can you please
>> share it. Below are the steps, i followed.
>
>> target=maps64-linux,
>
>> 1. configured and build bin-utils version 2.25
>> 2. configured and build bootstrap on gcc version 5.1.0
>> 3. configured and build glibc using above built target mips64
>> 4. again in gcc, was trying to build libgcc.
>
>> At step 4, i am getting an error related to libc.so. i.e., "libc.so:
>> error adding symbols: File in wrong format" and I tried creating
>> libc.so as below,
>
>> mips64-linux-gcc -nostdlib -nostartfiles -shared -x c /dev/null
>> -o /fortran/cross/mips64-linux/lib/libc.so
>
>> Can you please let what is the error about. Thanks.
>>
>> Thanks & Regards
>> Sasi
>
> I don't think you want to build 'bootstrap' in step 2 since this is a
> cross compiler.  I use 'all-gcc', though 'bootstrap' might have been
> changed by configure/make to 'all-gcc' since it was a cross build.
>
> Also, make sure your path is set so that GCC can find the linker and
> assembler that it needs.
>>
> I'm not sure where the libc.so message is coming from.  One thing to
> note is that the mips64-linux target is a multi-lib target that can
> build o32, n32, and n64 objects (the three ABI's that MIPS supports).
> If you only care about one ABI you might try adding'--disable-multilibs'
> along with '--with-abi=n32' or '--with-abi=n64' depending on which ABI
> you want to see if that helps.  I have some build instructions and a
> script at
>
>  https://dmz-portal.mips.com/wiki/GCC_Build_Instructions
>
> That should be visible to you and you can try that build method if you
> want.
>
> Steve Ellcey
>
>

<shameless plug>

You could always use crosstool-ng:
http://crosstool-ng.org
https://github.com/crosstool-ng/crosstool-ng

Cheers,

-Bryan



[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