On Monday 10 July 2006 03:08, Daniel Gryniewicz wrote:
> Hi, all.
>
> I got a bug report (http://bugs.gentoo.org/show_bug.cgi?id=138536) about
> UML 2.6.16-bs2 failing to build.  I've checked it out, and it fails to
> build because CONFIG_MK7 is set, which sets CONFIG_X86_USE_3DNOW, which
> causes asm/arch/string.h to pull in asm/mmx.h, which doesn't exist
> (because it's in asm/arch/mxx.h, this being UML).  The obvious solution
> is to symlink it in, but this raises another question:

Does it compile then? I tried at the time (it wasn't K7 but another setting 
giving the same error) but I recall it didn't work because it needed further 
work (and part of the content wasn't valid for i386).

In fact it was me to introduce this and to try to fix this exact problem, but 
I've not found an easy way and I then discarded it.
> How useful are the various arch settings when building UML?  Does it
> actually make a difference if I build with K7 rather than i686?

It makes difference for optimization flags (I think -march and not -mtune, but 
I may forget), and for infos on the processor (arch/i386/Kconfig.cpu sets the 
cacheline size and other info from the processor setting).
Quite frankly, the best solution would be to make i386 headers avoid using MMX 
since it doesn't compile in UML (or to fix them).

The best temporary solution would be to mark as working only the choices which 
actually do, and block them for UML (not for i386, and the code is shared - 
it suffices a dependency on !UML in the appropriate Kconfig). And it's a 
shame I didn't do this already. I hope to work on this on the weekend but 
it's a bit difficult.

> If so, 
> this should probably be fixed.  If not, the options to select ARCHES
> should probably be removed when configuring UML.

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to