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

Re: [microblaze-uclinux] Kernel/Dist source checkout -and- kernelbuild under new toolset



Hi Jim,

It is my understanding that the current CVS head (both uClinux-dist and
uClinux-2.4.x) kernel build cleanly for the ml401 and uclinux-auto
platform, with the latest gcc-3.4 toolchain, without any patches required.

If anybody has experienced otherwise, I'd really like to hear about it.

It is curious as to why you would have problems with the newer tools,
but not the older ones.

Just to be sure, you should do a full make clean (or even, "make
distclean") when you toggle compiler versions, and also delete the files
mentioned in my earlier post:

"delete the files linux-2.4.x/arch/microblaze/kernel/microblaze_defs.d
and .h, the first time you build with the new compiler."

To David Banas - have you had a chance to test your patches with the new
tools and latest CVS?  If you can generate some clean and known-good
patches we can get them committed into the SnapGear tree.

Regards,

John



Jim Law wrote:

> Hi all,
> 
> Just like to get some comments on whether or not I'm using a
> "new-enough" kernel/dist source checkout.  Trying out the new toolchain
> per John's instructions, and having some bumps.
> 
> I've got:
> 
> cd /opt
> cvs -d:pserver:anonymous@cvs.uclinux.org:/var/cvs login
> cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:var/cvs co
> -ruClinux-dist-20041215 uClinux-dist
> cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:var/cvs co
> -rbefore-snapgear-code-sync-20050504 uClinux-2.4.x
> cd /opt/uClinux-2.4.x
> cvs update -d -D'July 12 2005'
> cd /opt/uClinux-dist
> ln -s ../uClinux-2.4.x linux-2.4.x
> 
> Then I apply David Banas' patches for the NuHo S3-2000 board:
> 
> patch -p 0 -b < NuHo_S3-2000_uClinux-2.4.x.patch
> patch -p 0 -b < NuHo_S3-2000_uClinux-dist.patch
> 
> ... and unzip his config setups:
> 
> tar xf NuHo_S3-2000_uClinux_config.tar
> 
> With the old toolchain, can build a kernel just fine.  With the new
> toolchain, I do:
> 
> make clean
> ... delete the microblaze_defs.d and .h per John's instructions
> make menuconfig
> make dep
> make
> <-- and it craps out early in make while trying to compile "init/main.c"
> giving:
> /opt/uClinux-2.4.x/include/linux/autoconf.h:42: error: parse error
> before ')' token
> ... and a bunch of follow-on similar stuff
> 
> ... put the old toolchain back, and all is cool.
> 
> Thots anyone??
> 
> Jim Law
> Iris Power
> 
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


-- 
Dr John Williams, Research Fellow,
Embedded Systems Group / Reconfigurable Computing
School of ITEE, The University of Queensland, Brisbane, Australia
(p) +61 7 33652185  (f) +61 7 33654999 (m) +61 403969243
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/