UML fails to build with CONFIG_MK7 set
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:
How useful are the various arch settings when building UML? Does it actually make a difference if I build with K7 rather than i686? If so, this should probably be fixed. If not, the options to select ARCHES should probably be removed when configuring UML.
Daniel
-------------------------------------------------------------------------
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
Quoted 8 lines · Daniel Gryniewicz
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_MK7is set, which setsCONFIG_X86_USE_3DNOW, which causesasm/arch/string.hto pull inasm/mmx.h, which doesn't exist (because it's inasm/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.
Quoted 2 lines
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.
Quoted 3 lines
If so,
this should probably be fixed. If not, the options to select ARCHES should probably be removed when configuring UML.
Signature · 17 lines
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
Quoted 10 lines · Blaisorblade
Quoted 8 lines · Daniel Gryniewicz
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_MK7is set, which setsCONFIG_X86_USE_3DNOW, which causesasm/arch/string.hto pull inasm/mmx.h, which doesn't exist (because it's inasm/arch/mxx.h, this being UML). The obvious solution is to symlink it in, but this raises another question:
Quoted 3 lines
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).
Honestly, I didn't try to make it build with K7 at all. The person reporting the bug was happy to switch to i686, so it's not an issue from a gentoo point of view.
Quoted 5 lines
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.
I'll give this a shot, and see if I can work up a patch.
Daniel
-------------------------------------------------------------------------
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