linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] UML fails to build with CONFIG_MK7 set
@ 2006-07-10  1:08 Daniel Gryniewicz
  2006-07-12 18:52 ` Blaisorblade
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Gryniewicz @ 2006-07-10  1:08 UTC (permalink / raw)
  To: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 375 bytes --]


-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] UML fails to build with CONFIG_MK7 set
  2006-07-10  1:08 [uml-devel] UML fails to build with CONFIG_MK7 set Daniel Gryniewicz
@ 2006-07-12 18:52 ` Blaisorblade
  2006-07-12 19:16   ` Daniel Gryniewicz
  0 siblings, 1 reply; 3+ messages in thread
From: Blaisorblade @ 2006-07-12 18:52 UTC (permalink / raw)
  To: user-mode-linux-devel

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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] UML fails to build with CONFIG_MK7 set
  2006-07-12 18:52 ` Blaisorblade
@ 2006-07-12 19:16   ` Daniel Gryniewicz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Gryniewicz @ 2006-07-12 19:16 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 1380 bytes --]

On Wed, 2006-07-12 at 20:52 +0200, Blaisorblade wrote:
> 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).

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.

> 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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 375 bytes --]


-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-12 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10  1:08 [uml-devel] UML fails to build with CONFIG_MK7 set Daniel Gryniewicz
2006-07-12 18:52 ` Blaisorblade
2006-07-12 19:16   ` Daniel Gryniewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox