Hi Dan, could I convince you to take this patch? I''m trying to cross-compile xen/ia64 so I can propose portability fixes that work for ia64 too, but obviously I don''t have /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-gcc and I think it''s better to use the CROSS_COMPILE variable found in Config.mk. Your build should be unaffected. Also, have you tried building with a current gcc? Crosstool (http://kegel.com/crosstool) gave me 3.4.2, but there are a fair number of implicit function declarations that cause build breaks, some of which live in Linux-patched code (I just hacked them by hand). I''d really like to be able to build with crosstool... -- Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Magenheimer, Dan (HP Labs Fort Collins)
2005-Apr-06 12:50 UTC
[Xen-devel] RE: xen/ia64 crosscompile
Sure. I didn''t know anyone else was using a cross-compiler to build Xen/ia64 (I use it quite frequently). Actually, if you want to grab/try the fully-self-contained cross-compiler I am using, see ftp://ftp.hpl.hp.com/pub/xen-ia64/sp_env_v2.2.5.i686.tar.gz Dan> -----Original Message----- > From: Hollis Blanchard [mailto:hollisb@us.ibm.com] > Sent: Tuesday, April 05, 2005 3:27 PM > To: Magenheimer, Dan (HP Labs Fort Collins) > Cc: Xen-devel > Subject: xen/ia64 crosscompile > > Hi Dan, could I convince you to take this patch? I''m trying to > cross-compile xen/ia64 so I can propose portability fixes > that work for > ia64 too, but obviously I don''t > have /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-gcc and I > think it''s better to use the CROSS_COMPILE variable found in > Config.mk. > Your build should be unaffected. > > Also, have you tried building with a current gcc? Crosstool > (http://kegel.com/crosstool) gave me 3.4.2, but there are a > fair number > of implicit function declarations that cause build breaks, > some of which > live in Linux-patched code (I just hacked them by hand). I''d > really like > to be able to build with crosstool... > > -- > Hollis Blanchard > IBM Linux Technology Center >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Magenheimer, Dan (HP Labs Fort Collins)
2005-Apr-13 16:08 UTC
[Xen-devel] RE: xen/ia64 crosscompile
I finally got around to trying your patch. It seems to work fine for cross-compiling but it doesn''t work native (on an ia64). It appears that CC gets set to CROSS_COMPILE, which wreaks havoc. I can get around this problem by surrounding the setting of CROSS_COMPILE with ifneq ($(COMPILE_ARCH),$(TARGET_ARCH)) Will this do? Dan> -----Original Message----- > From: Hollis Blanchard [mailto:hollisb@us.ibm.com] > Sent: Tuesday, April 05, 2005 3:27 PM > To: Magenheimer, Dan (HP Labs Fort Collins) > Cc: Xen-devel > Subject: xen/ia64 crosscompile > > Hi Dan, could I convince you to take this patch? I''m trying to > cross-compile xen/ia64 so I can propose portability fixes > that work for > ia64 too, but obviously I don''t > have /usr/local/sp_env/v2.2.5/i686/bin/ia64-unknown-linux-gcc and I > think it''s better to use the CROSS_COMPILE variable found in > Config.mk. > Your build should be unaffected. > > Also, have you tried building with a current gcc? Crosstool > (http://kegel.com/crosstool) gave me 3.4.2, but there are a > fair number > of implicit function declarations that cause build breaks, > some of which > live in Linux-patched code (I just hacked them by hand). I''d > really like > to be able to build with crosstool... > > -- > Hollis Blanchard > IBM Linux Technology Center >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, 2005-04-13 at 09:08 -0700, Magenheimer, Dan (HP Labs Fort Collins) wrote:> I finally got around to trying your patch. It seems to work fine for > cross-compiling but it doesn''t work native (on an ia64). It appears > that CC gets set to CROSS_COMPILE, which wreaks havoc. > > I can get around this problem by surrounding the setting > of CROSS_COMPILE with ifneq ($(COMPILE_ARCH),$(TARGET_ARCH))Sorry, yup, that''s the right fix. -- Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel