From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: todays xen-unstable is throwing gcc errors when compiling on PPC Date: Mon, 09 Jul 2007 15:11:31 -0500 Message-ID: <1184011891.15329.4.camel@laptop> Reply-To: jyoung5@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: xen-ppc-devel List-Id: xen-devel@lists.xenproject.org When compiling Xen on PPC today I get the following error that is being caused by casting (u32 *). Once the cast is removed all is well and things compile fine. Is this happening on x86 or x86-64 ? I'm using gcc 4.1.0 on Suse SLES 10. There Error: grant_table.c: In function =E2=80=98gnttab_prepare_for_transfer=E2=80=99: grant_table.c:825: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c: In function =E2=80=98__acquire_grant_for_copy=E2=80=99: grant_table.c:1055: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c:1080: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c:1080: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c:1080: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c:1080: warning: dereferencing type-punned pointer will break strict-aliasing rules grant_table.c:1080: warning: dereferencing type-punned pointer will break strict-aliasing rules make[3]: *** [grant_table.o] Error 1 make[3]: Leaving directory `/Work/xen-unstable.hg/xen/common' make[2]: *** [/Work/xen-unstable.hg/xen/common/built_in.o] Error 2 make[2]: Leaving directory `/Work/xen-unstable.hg/xen/arch/powerpc' make[1]: *** [/Work/xen-unstable.hg/xen/xen] Error 2 make[1]: Leaving directory `/Work/xen-unstable.hg/xen' make: *** [build] Error 2