Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to build gcc with -m24k option
@ 2007-10-16 10:11 sathesh babu
  2007-10-16 16:52 ` Elizabeth Oldham
  0 siblings, 1 reply; 4+ messages in thread
From: sathesh babu @ 2007-10-16 10:11 UTC (permalink / raw)
  To: buildroot

Hi,
    I am trying to build cross toolchain for MIPS24K.
   
  I would like to know the suggested GCC ,binutils and uclibc versions to be used to get -mdsp and -m24k flag options.
   
  I used GCC-4.2.1,binutils-2.15 and uClibc-0.9.27 but i couldn't succeed.
  Could you please help me.
   
  Regards,
  Sathesh
   
   

       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071016/24b11f2f/attachment.htm 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How to build gcc with -m24k option
  2007-10-16 10:11 [Buildroot] How to build gcc with -m24k option sathesh babu
@ 2007-10-16 16:52 ` Elizabeth Oldham
  2007-10-17  6:55   ` sathesh babu
  0 siblings, 1 reply; 4+ messages in thread
From: Elizabeth Oldham @ 2007-10-16 16:52 UTC (permalink / raw)
  To: buildroot


>     I am trying to build cross toolchain for MIPS24K.
>   I would like to know the suggested GCC ,binutils and uclibc versions to
> be used to get -mdsp and -m24k flag options.
>
>   I used GCC-4.2.1,binutils-2.15 and uClibc-0.9.27 but i couldn't succeed.
>   Could you please help me.

You probably want bintuils-2.17, -m24k may have been taken out as it's
been marked deprecated. The equivilent is -march=mips32r2 and -mtune=24k.

Beth

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How to build gcc with -m24k option
  2007-10-16 16:52 ` Elizabeth Oldham
@ 2007-10-17  6:55   ` sathesh babu
  2007-10-17 21:11     ` Elizabeth Oldham
  0 siblings, 1 reply; 4+ messages in thread
From: sathesh babu @ 2007-10-17  6:55 UTC (permalink / raw)
  To: buildroot

Hi Beth,
    Thanks for your valueable suggestion. After using  binuilt-1.17, i get the dsp and 24k options.
   
   if i try to compile linux-2.6.18.8 kernel with this toolchain i am seeing compilation errors.
=============================
   mips-linux-gcc -Wp,-MD,drivers/mtd/.mtd_blkdevs.o.d  -nostdinc -isystem /home/
sedara/BETA_REL/buildroot/build_mips_nofpu/staging_dir/lib/gcc/mips-linux-uclibc
/4.2.1/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -DNEW_C
ONFIG -I/home/sedara/BETA_REL/linux-2.6.18/include -I/home/sedara/BETA_REL/linux
-2.6.18/../fusiv_src/kernel/ap_code -I/home/sedara/BETA_REL/linux-2.6.18/../fusi
v_src/kernel/ap_code/inc -I/home/sedara/BETA_REL/linux-2.6.18/../fusiv_src/kerne
l/drivers/inc -I/home/sedara/BETA_REL/linux-2.6.18/../fusiv_src/kernel/drivers/a
dsl -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O
2  -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding  -marc
h=mips32r2 -Wa,-mips32r2 -Wa,--trap -Iinclude/asm-mips/mach-ikan_mips -Iinclude/
asm-mips/mach-generic -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-a
fter-statement -Wno-pointer-sign    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUI
LD_STR(mtd_blkdevs)"  -D"KBUILD_MODNAME=KBUILD_STR(mtd_blkdevs)" -c -o drivers/m
td/.tmp_mtd_blkdevs.o drivers/mtd/mtd_blkdevs.c
mips-linux-ld: final link failed: Bad value
make[2]: *** [drivers/mtd/mtd_blkdevs.o] Error 1
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2
  ===========================================
  Can you pls tell what could be the reason.
   
  Thanks you.
   
  Regards,
  Sathesh 
   
  
Elizabeth Oldham <beth@the-hug.org> wrote:
  
> I am trying to build cross toolchain for MIPS24K.
> I would like to know the suggested GCC ,binutils and uclibc versions to
> be used to get -mdsp and -m24k flag options.
>
> I used GCC-4.2.1,binutils-2.15 and uClibc-0.9.27 but i couldn't succeed.
> Could you please help me.

You probably want bintuils-2.17, -m24k may have been taken out as it's
been marked deprecated. The equivilent is -march=mips32r2 and -mtune=24k.

Beth



       
---------------------------------
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071017/fab5c9dc/attachment.htm 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] How to build gcc with -m24k option
  2007-10-17  6:55   ` sathesh babu
@ 2007-10-17 21:11     ` Elizabeth Oldham
  0 siblings, 0 replies; 4+ messages in thread
From: Elizabeth Oldham @ 2007-10-17 21:11 UTC (permalink / raw)
  To: buildroot

sathesh babu wrote:

> td/.tmp_mtd_blkdevs.o drivers/mtd/mtd_blkdevs.c
> mips-linux-ld: final link failed: Bad value

Thought I recognised this, it's been on the linux-mips.org mailing list. 
Here is a response to that OP:

-------- Original Message --------
Subject: Re: Linux-2.6.18.8 compilation errors with GCC-4.2.1 and 
binutils-2.17 on MIPS
Date: Wed, 17 Oct 2007 09:21:43 -0700
From: David Daney <ddaney@avtrex.com>
To: veerasena reddy <veerasena_b@yahoo.co.in>
CC: linux-kernel.org <linux-kernel@vger.kernel.org>,        linux-mips 
<linux-mips@linux-mips.org>
References: <304090.76321.qm@web8411.mail.in.yahoo.com>

veerasena reddy wrote:
 > Hi,
 >
 > I tried to compile Linux-2.6.18.8 for MIPS24KE
 > processor using cross-compiler built from gcc-4.2.1,
 > binutils-2.17 and uClibc-0.9.27. But, the compilation
 > failed with below error message ("mips-linux-ld: final
 > link failed: Bad value"):
 > ================================

The likely cause is:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755

As indicated in the PR, Richard has a patch that he is testing.  I would
think that by the time gcc-4.2.3 is released that it would be fixed.

I would recommend using a non-4.2.x version of gcc until the problem is
fixed.

David Daney

>   Can you pls tell what could be the reason.

I guess 4.2.1 is broken :)
Beth

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-17 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 10:11 [Buildroot] How to build gcc with -m24k option sathesh babu
2007-10-16 16:52 ` Elizabeth Oldham
2007-10-17  6:55   ` sathesh babu
2007-10-17 21:11     ` Elizabeth Oldham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox