WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Build process

To: Philip Taylor <philip@xxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Build process
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 08 Nov 2004 08:05:07 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Nov 2004 08:12:41 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Sun, 07 Nov 2004 22:46:15 GMT." <418EA5B7.7010507@xxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Even if we fixed our Makefiles (and I'm not sure we can -- if we use
'?=' then we don't get 'gcc' by default because it appears CC is set
to 'cc' already) your beef is with the Linux build system. In the
Linux build system there is no way to change the compiler name to
anything other than $(CROSS_COMPILE)gcc [you can set CROSS_COMPILE
though].

Have you tried tricks like creating a symlink in a local directory to
your preferred compiler and adding it to your PATH? e.g.,
 # ln -sf `which ccache' gcc
 # PATH=`pwd`:$PATH make

 -- Keir

>    I've been playing a little with Xen on Gentoo (just out of interest, 
> rather than for any productive reason), and considered making an ebuild 
> to allow a simple "emerge xen-utilities xen-sources" method of compiling 
> the tools and kernel (probably equivalent to "emerge usermode-utilities 
> usermode-sources" for UML). (It would be easier if I knew what I was 
> doing, and I haven't actually got much working yet, but it should be 
> theoretically possible.)
> 
>    One small (but annoying) problem was that I couldn't change the 
> compiler. Some of the Makefiles set 'CC=gcc' and 'HOSTCC=gcc', which 
> referred to GCC 3.4 (which doesn't work -- I think it died while 
> compiling the kernel), and I wanted to explicitly use the GCC 3.3 
> binary. The GCC problem was relatively easily fixed by swapping my 
> system's default gcc; but I also fancied using ccache, which usually 
> works by just changing CC, and couldn't find any way to do that without 
> altering the makefiles (and I'd prefer to build from a clean copy of the 
> source).
>    Would it be possible/safe to use something like 'CC ?= gcc' and 
> 'HOSTCC ?= $(CC)' (I hope that does what I expect) in all the relevant 
> makefiles, so the compiler can be easily overriden? Or is there some 
> other solution that I've missed?
> 
> Thanks,
> -- 
> Philip Taylor
> philip@xxxxxxxxxxxxxxxxxx
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>