public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Building kenel error
@ 2006-08-18 12:04 Woodruff, Richard
  2006-08-18 16:24 ` Hingkwan Huen
  2006-08-29 10:43 ` Building kenel error (uImage) kabbin
  0 siblings, 2 replies; 13+ messages in thread
From: Woodruff, Richard @ 2006-08-18 12:04 UTC (permalink / raw)
  To: kabbin, Linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 2929 bytes --]

That kernel is too old to be built on the latest compiler.  It will likely build with out incident with a 3.4.x compiler or earlier.  The main kernel will have a number of patches which makes it go using a 4.x compiler.  These would need to be back ported in order to use that tool chain.

Regards,
Richard W.

> -----Original Message-----
> From: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-
> open-source-bounces@linux.omap.com] On Behalf Of kabbin
> Sent: Friday, August 18, 2006 4:19 AM
> To: Linux-omap-open-source@linux.omap.com
> Subject: Building kenel error
> 
> 
> Dear all:
>   I use arm-linux-gcc-4.0.2-glibc-2.3.6 to build linux kernel from
> http://linux.omap.com/pub/kernel/h4/source/linux-2.6.10-omap2420-
> omap2430.tgz
> 
> # make clean
> # make omap_h4_2420_defconfig
> # make uImage
> 
> and I got :
> arch/arm/mach-omap2/clock24xx.c: In function 'clk_safe':
> arch/arm/mach-omap2/clock24xx.c:1365: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1366: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1370: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1371: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1378: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1379: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1383: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1384: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1388: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1392: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1396: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1397: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1401: error: case label does not reduce to
> an integer constant
> arch/arm/mach-omap2/clock24xx.c:1402: error: case label does not reduce to
> an integer constant
> make[1]: *** [arch/arm/mach-omap2/clock24xx.o] Error 1
> make: *** [arch/arm/mach-omap2] Error 2
> 
> 
> Is this a well-known bug? And do I need to find a patch for it?
> Thanks for your help.
> BEST REGARDS.
> 
> 
> ___________________________________________________
>  最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!
>  http://messenger.yahoo.com.tw/
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Building kenel error
@ 2006-08-18 20:33 Woodruff, Richard
  0 siblings, 0 replies; 13+ messages in thread
From: Woodruff, Richard @ 2006-08-18 20:33 UTC (permalink / raw)
  To: lamikr; +Cc: Linux-omap-open-source



> Do you know does codesourcery or somebody else done yet eabi gcc that
> would support armv4 or armv4t?

I don't know.  I've only used v5t and above with eabi.  I've not looked
or tried for others.  Others would certainly know better.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Building kenel error
@ 2006-08-18 20:26 Woodruff, Richard
  0 siblings, 0 replies; 13+ messages in thread
From: Woodruff, Richard @ 2006-08-18 20:26 UTC (permalink / raw)
  To: Brian Swetland; +Cc: Linux-omap-open-source

> > We have to use several different versions.  Currently I use 3.4.0,
> > 3.4.3, and 3.3.1 on older kernels.  On the latest kernels we will
use
> > 4.1.0.  We have built these, gotten them from a vendor, or gotten
from
> > www.codesourcery.com .
> >
> > One of the main reasons for using CodeSourcery based tool chains is
they
> > provide newer ARM support though ARMv7 (including VFP & VFP2).  If
you
> > are doing gaming with the OMAP2 3d core it can provide a nice boost.
> 
> What is codegen and stability like?  I suffered through a number of
> pre-3.x versions while working at Danger and have found the 3.3.x and
> 3.4.x toolchains to be pretty solid.  I had heard that the changes in
> 4.x resulted in big improvements in x86 codegen but other platforms
> suffered a bit -- any truth to this?  New instruction set support is
> very cool, but I'm curious how the baseline arm and thumb support has
> held up.

I've not (nor had to) pay much attention to those aspects yet. Getting
integrated vfp and new instructions was the primary driver.  ARM Ltd. is
also validating their builds against it.  I think it has thumb2 support
also, perhaps some neon.  The latest u-boot and kernels do build and
boot against it...  It will surely have some issues, I hope we're not
impacted...will see.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Building kenel error
@ 2006-08-18 18:56 Woodruff, Richard
  2006-08-18 20:15 ` Brian Swetland
  2006-08-18 20:29 ` lamikr
  0 siblings, 2 replies; 13+ messages in thread
From: Woodruff, Richard @ 2006-08-18 18:56 UTC (permalink / raw)
  To: hkh; +Cc: Linux-omap-open-source


> I never had success of using gcc-4.0.2 and later on 2.6.16/17 kernel.
So
> I just stick with the older gcc-3.4.1. Which version of tool chain are
> you using for 2.6.16 or 2.6.17 kernel? Any advantages of using the
later
> version of the compiler?
> Thanks,
> kwan

We have to use several different versions.  Currently I use 3.4.0,
3.4.3, and 3.3.1 on older kernels.  On the latest kernels we will use
4.1.0.  We have built these, gotten them from a vendor, or gotten from
www.codesourcery.com .

One of the main reasons for using CodeSourcery based tool chains is they
provide newer ARM support though ARMv7 (including VFP & VFP2).  If you
are doing gaming with the OMAP2 3d core it can provide a nice boost.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Building kenel error
@ 2006-08-18  9:18 kabbin
  0 siblings, 0 replies; 13+ messages in thread
From: kabbin @ 2006-08-18  9:18 UTC (permalink / raw)
  To: Linux-omap-open-source

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=big5, Size: 1996 bytes --]


Dear all:
  I use arm-linux-gcc-4.0.2-glibc-2.3.6 to build linux kernel from
http://linux.omap.com/pub/kernel/h4/source/linux-2.6.10-omap2420-omap2430.tgz

# make clean
# make omap_h4_2420_defconfig 
# make uImage

and I got :
arch/arm/mach-omap2/clock24xx.c: In function ˜c'clk_safe':
arch/arm/mach-omap2/clock24xx.c:1365: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1366: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1370: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1371: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1378: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1379: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1383: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1384: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1388: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1392: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1396: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1397: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1401: error: case label does not reduce to an integer constant
arch/arm/mach-omap2/clock24xx.c:1402: error: case label does not reduce to an integer constant
make[1]: *** [arch/arm/mach-omap2/clock24xx.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2


Is this a well-known bug? And do I need to find a patch for it? 
Thanks for your help. 
BEST REGARDS.  


___________________________________________________ 
 ³Ì·sª© Yahoo!©_¼¯§Y®É³q°T 7.0¡A§K¶Oºô¸ô¹q¸Ü¥ô§A¥´¡I 
 http://messenger.yahoo.com.tw/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Building kenel error
@ 2006-08-15  9:47 kabbin
  0 siblings, 0 replies; 13+ messages in thread
From: kabbin @ 2006-08-15  9:47 UTC (permalink / raw)
  To: Linux-omap-open-source

Dear all:
  When I build kernel 2.6.10 which downloaded from
http://linux.omap.com/pub/kernel/h4/source/linux-2.6.10-omap2420-omap2430.tgz

I got : 
In file included from include/asm/page.h:27,
                 from include/asm/cpu-single.h:33,
                 from include/asm/proc-fns.h:154,
                 from include/asm/system.h:94,
                 from include/asm/bitops.h:22,
                 from include/linux/bitops.h:4,
                 from include/linux/thread_info.h:20,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from
arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:111:2: error: #error Unknown data
abort handler type
In file included from include/asm/cpu-single.h:33,
                 from include/asm/proc-fns.h:154,
                 from include/asm/system.h:94,
                 from include/asm/bitops.h:22,
                 from include/linux/bitops.h:4,
                 from include/linux/thread_info.h:20,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from
arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:92:2: error: #error Unknown user
operations model

Is there some problems on my toolchain ?
Or maybe I use the  wrong config setting ? 
Thanks. Best Regards.

yanming.

___________________________________________________ 
 最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打! 
 http://messenger.yahoo.com.tw/

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

end of thread, other threads:[~2006-08-30 10:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 12:04 Building kenel error Woodruff, Richard
2006-08-18 16:24 ` Hingkwan Huen
2006-08-18 18:50   ` Dirk Behme
2006-08-29 10:43 ` Building kenel error (uImage) kabbin
2006-08-29 11:13   ` imre.deak
2006-08-30 10:15   ` kabbin
  -- strict thread matches above, loose matches on Subject: below --
2006-08-18 20:33 Building kenel error Woodruff, Richard
2006-08-18 20:26 Woodruff, Richard
2006-08-18 18:56 Woodruff, Richard
2006-08-18 20:15 ` Brian Swetland
2006-08-18 20:29 ` lamikr
2006-08-18  9:18 kabbin
2006-08-15  9:47 kabbin

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