Return-Path: Received: from web27401.mail.ukl.yahoo.com (web27401.mail.ukl.yahoo.com [217.146.177.177]) by ozlabs.org (Postfix) with SMTP id 70248DDF77 for ; Thu, 7 Aug 2008 20:06:51 +1000 (EST) Date: Thu, 7 Aug 2008 10:06:49 +0000 (GMT) From: Fabien Oriede Subject: Re : kernel 2.6.26 & gcc 4.0.0 To: Marco Stornelli MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2042487601-1218103609=:59127" Message-ID: <292718.59127.qm@web27401.mail.ukl.yahoo.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-2042487601-1218103609=:59127 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable No, I did not modify this file.=0A=0A=0A----- Message d'origine ----=0ADe := Marco Stornelli =0A=C3=80 : Fabien Oriede =0ACc : linuxppc-embedded@ozlabs.org=0AEnvoy=C3=A9 le := Jeudi, 7 Ao=C3=BBt 2008, 11h59mn 19s=0AObjet=C2=A0: Re: kernel 2.6.26 & gc= c 4.0.0=0A=0AFabien Oriede ha scritto:=0A> Hello all,=0A> I'm trying to put= a cramfs image on my custom board, and for this, I have followed this topi= c : http://www.denx.de/wiki/view/DULG/RootFileSystemOnACramfsFileSystem=0A>= Now I have my cramfs image, but I have seen that I need to download my cra= mfs image in a mtdblock and for that, I need to set some MTD options in the= kernel. (http://www.denx.de/wiki/view/DULG/FlashFilesystemsMTD)=0A> But wh= en I make the command "make uImage", I have this problem :=0A> [root@xxxx l= inux-2.6.26]# make uImage=0A>=C2=A0 CHK=C2=A0 =C2=A0 include/linux/version.= h=0A>=C2=A0 CHK=C2=A0 =C2=A0 include/linux/utsrelease.h=0A>=C2=A0 CALL=C2= =A0 =C2=A0 scripts/checksyscalls.sh=0A>=C2=A0 CHK=C2=A0 =C2=A0 include/linu= x/compile.h=0A>=C2=A0 CALL=C2=A0 =C2=A0 arch/powerpc/kernel/systbl_chk.sh= =0A>=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 arch/ppc/syslib/m8xx_setup.o=0A> arch/ppc= /syslib/m8xx_setup.c:68: error: array type has incomplete element type=0A> = arch/ppc/syslib/m8xx_setup.c:70: error: field name not in record or union i= nitializer=0A> arch/ppc/syslib/m8xx_setup.c:70: error: (near initialization= for 'mpc8xxads_partitions')=0A> arch/ppc/syslib/m8xx_setup.c:71: error: fi= eld name not in record or union initializer=0A> arch/ppc/syslib/m8xx_setup.= c:71: error: (near initialization for 'mpc8xxads_partitions')=0A> arch/ppc/= syslib/m8xx_setup.c:72: error: field name not in record or union initialize= r=0A> arch/ppc/syslib/m8xx_setup.c:72: error: (near initialization for 'mpc= 8xxads_partitions')=0A> arch/ppc/syslib/m8xx_setup.c:73: error: field name = not in record or union initializer=0A> arch/ppc/syslib/m8xx_setup.c:73: err= or: (near initialization for 'mpc8xxads_partitions')=0A> arch/ppc/syslib/m8= xx_setup.c:73: error: 'MTD_WRITEABLE' undeclared here (not in a function)= =0A> arch/ppc/syslib/m8xx_setup.c:75: error: field name not in record or un= ion initializer=0A> arch/ppc/syslib/m8xx_setup.c:75: error: (near initializ= ation for 'mpc8xxads_partitions')=0A> arch/ppc/syslib/m8xx_setup.c:76: erro= r: field name not in record or union initializer=0A> arch/ppc/syslib/m8xx_s= etup.c:76: error: (near initialization for 'mpc8xxads_partitions')=0A> arch= /ppc/syslib/m8xx_setup.c: In function 'm8xx_show_percpuinfo':=0A> arch/ppc/= syslib/m8xx_setup.c:312: warning: format '%u' expects type 'unsigned int', = but argument 3 has type 'long unsigned int'=0A> arch/ppc/syslib/m8xx_setup.= c:312: warning: format '%u' expects type 'unsigned int', but argument 4 has= type 'long unsigned int'=0A> arch/ppc/syslib/m8xx_setup.c: In function 'pl= atform_init':=0A> arch/ppc/syslib/m8xx_setup.c:451: warning: assignment fro= m incompatible pointer type=0A> make[1]: *** [arch/ppc/syslib/m8xx_setup.o]= Erreur 1=0A> make: *** [arch/ppc/syslib] Erreur 2=0A> =0A> [root@xxxx linu= x-2.6.26]# powerpc-linux-gcc --version=0A> powerpc-linux-gcc (GCC) 4.0.0 (D= ENX ELDK 4.1 4.0.0)=0A> Copyright (C) 2005 Free Software Foundation, Inc.= =0A> This is free software; see the source for copying conditions.=C2=A0 Th= ere is NO=0A> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTI= CULAR PURPOSE=0A> It seems that this is a problem with the version 4 of the= gcc, and I would like to know if I need to change for an old version of gc= c ? like 3.0. Or may be a patch exists to bring down this problem ?=0A> Tha= nks in advance.=0A> Regards,=0A> Fabien.=0A> =0A> =0A>=C2=A0 =C2=A0 =C2=A0 = ___________________________________________________________________________= __ =0A> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://m= ail.yahoo.fr=0A> =0A> =0A> ------------------------------------------------= ------------------------=0A> =0A> _________________________________________= ______=0A> Linuxppc-embedded mailing list=0A> Linuxppc-embedded@ozlabs.org= =0A> https://ozlabs.org/mailman/listinfo/linuxppc-embedded=0A=0AHave you mo= dified that file?=0A=0A-- =0AMarco Stornelli=0AEmbedded Software Engineer= =0ACoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni=0Ahttp://www.cori= tel.it=0A=0Amarco.stornelli@coritel.it=0A+39 06 72582838=0A=0A=0A=0A _= ___________________________________________________________________________= _ =0AEnvoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail= .yahoo.fr --0-2042487601-1218103609=:59127 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
No, I did not modify this file.
=0A

=0A
----- Message d'orig= ine ----
De : Marco Stornelli <marco.stornelli@coritel.it>
=C3= =80 : Fabien Oriede <fabien.oriede@yahoo.fr>
Cc : linuxppc-embedde= d@ozlabs.org
Envoy=C3=A9 le : Jeudi, 7 Ao=C3=BBt 2008, 11h59mn 19s
Ob= jet : Re: kernel 2.6.26 & gcc 4.0.0

Fabien Oriede ha scritt= o:
> Hello all,
> I'm trying to put a cramfs image on my custom= board, and for this, I have followed this topic : htt= p://www.denx.de/wiki/view/DULG/RootFileSystemOnACramfsFileSystem
>= ; Now I have my cramfs image, but I have seen that I need to download my cr= amfs image in a mtdblock and for that, I need to set some MTD options in th= e kernel. (http://www.denx.de/wiki/view/DULG/FlashFilesystemsMTD)=
> But when I make the command "make uImage", I have this problem :> [root@xxxx linux-2.6.26]# make uImage
>  CHK   = include/linux/version.h
>  CHK    include/linux/utsre= lease.h
>  CALL    scripts/checksyscalls.sh
>&nb= sp; CHK    include/linux/compile.h
>  CALL   = ; arch/powerpc/kernel/systbl_chk.sh
>  CC      ar= ch/ppc/syslib/m8xx_setup.o
> arch/ppc/syslib/m8xx_setup.c:68: error: = array type has incomplete element type
> arch/ppc/syslib/m8xx_setup.c= :70: error: field name not in record or union initializer
> arch/ppc/= syslib/m8xx_setup.c:70: error: (near initialization for 'mpc8xxads_partitio= ns')
> arch/ppc/syslib/m8xx_setup.c:71: error: field name not in reco= rd or union initializer
> arch/ppc/syslib/m8xx_setup.c:71: error: (near initialization for 'mpc8xxads_partitions')
> arch/ppc/s= yslib/m8xx_setup.c:72: error: field name not in record or union initializer=
> arch/ppc/syslib/m8xx_setup.c:72: error: (near initialization for '= mpc8xxads_partitions')
> arch/ppc/syslib/m8xx_setup.c:73: error: fiel= d name not in record or union initializer
> arch/ppc/syslib/m8xx_setu= p.c:73: error: (near initialization for 'mpc8xxads_partitions')
> arc= h/ppc/syslib/m8xx_setup.c:73: error: 'MTD_WRITEABLE' undeclared here (not i= n a function)
> arch/ppc/syslib/m8xx_setup.c:75: error: field name no= t in record or union initializer
> arch/ppc/syslib/m8xx_setup.c:75: e= rror: (near initialization for 'mpc8xxads_partitions')
> arch/ppc/sys= lib/m8xx_setup.c:76: error: field name not in record or union initializer> arch/ppc/syslib/m8xx_setup.c:76: error: (near initialization for 'mp= c8xxads_partitions')
> arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_show_percpuinfo':
> arch/ppc/syslib/m8xx_setup.c:312:= warning: format '%u' expects type 'unsigned int', but argument 3 has type = 'long unsigned int'
> arch/ppc/syslib/m8xx_setup.c:312: warning: form= at '%u' expects type 'unsigned int', but argument 4 has type 'long unsigned= int'
> arch/ppc/syslib/m8xx_setup.c: In function 'platform_init':> arch/ppc/syslib/m8xx_setup.c:451: warning: assignment from incompatib= le pointer type
> make[1]: *** [arch/ppc/syslib/m8xx_setup.o] Erreur = 1
> make: *** [arch/ppc/syslib] Erreur 2
>
> [root@xxxx = linux-2.6.26]# powerpc-linux-gcc --version
> powerpc-linux-gcc (GCC) = 4.0.0 (DENX ELDK 4.1 4.0.0)
> Copyright (C) 2005 Free Software Founda= tion, Inc.
> This is free software; see the source for copying condit= ions.  There is NO
> warranty; not even for MERCHANTABILITY or F= ITNESS FOR A PARTICULAR PURPOSE
> It seems that this is a problem with the version 4 of the gcc, and I would like to know if I need = to change for an old version of gcc ? like 3.0. Or may be a patch exists to= bring down this problem ?
> Thanks in advance.
> Regards,
&= gt; Fabien.
>
>
>      _________________= ____________________________________________________________
> Envoy= ez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
>
>
= > ----------------------------------------------------------------------= --
>
> _______________________________________________
>= Linuxppc-embedded mailing list
> Linuxppc-embed= ded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded<= BR>
Have you modified that file?

--
Marco Stornelli
Embedd= ed Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazi= oni
http://www.corite= l.it

marco.stornelli@coritel.it
+39 06 7= 2582838

=0A=0A=0A
=0AEnvoy=C3= =A9 avec Yahoo! Mail.
Une boite mail plus intelligente. <= /html> --0-2042487601-1218103609=:59127--