This is the mail archive of the crossgcc@sources.redhat.com 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: Compiling Linux 2.6.6 and 2.4.19 error?


----- Original Message ----- 
From: "Dan Kegel" <dank@kegel.com>
To: "Pwu" <pwu@jadechip.com>
Cc: "crossgcc" <crossgcc@sources.redhat.com>
Sent: Tuesday, May 18, 2004 1:35 PM
Subject: Re: Compiling Linux 2.6.6 and 2.4.19 error?


> Pwu wrote:
> > I use crosstool 0.28-rc15 to produce arm-linux-gcc 3.3.3/glibc 2.3.2 and arm-linux-gcc 3.4.0/glibc 2.3.2.
> > 
> > So I use it to compile my Linux 2.4.19 kernel and Linux 2.6.6, there are some
> > problems:
> > 
> > Linux 2.4.19-rmk6-arm2 kernel:
> > make boot ARCH=arm CROSS_COMPILE=/opt/crosstool/arm-linux/gcc-3.3.3-glibc-2.3.2/bin/arm-linux-
> > 
> > /opt/crosstool/arm-linux/gcc-3.3.3-glibc-2.3.2/bin/arm-linux-gcc -D__KERNEL__ -I/home/roc/kernel/2.4/linux-2.4.19/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi -malignment-traps  -msoft-float -Uarm -gdwarf-2  -nostdinc -I /opt/crosstool/arm-linux/gcc-3.3.3-glibc-2.3.2/lib/gcc-lib/arm-linux/3.3.3/include -DKBUILD_BASENAME=blkpg  -DEXPORT_SYMTAB -c blkpg.c
> > blkpg.c: In function `blk_ioctl':
> > blkpg.c:252: error: asm-specifier for variable `__r1' conflicts with asm clobber list
> 
> Searching for just the line above, one quickly finds
>   http://gcc.gnu.org/PR11103
> which suggests that you need a patch to linux.
> In fact, the latest 2.4.26 kernel doesn't have the
> asm() statements that cause the trouble.  Maybe you
> could look for the kernel patch that got rid of the
> asm() statements?
> 
> - Dan
> 
So I think maybe the arm-linux-gcc 2.95.3 is better than the latest one.
But I want to compile the 2.6.6 kernel which needs latest compiler, how about the 2.6.6 kernel compiling
error.

Thanks a lot 
Best Regards

Bryan Wu

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