All of lore.kernel.org
 help / color / mirror / Atom feed
* Installation of i686 SDK on a x86_64 machine?
@ 2013-01-22  7:16 Wolfgang Denk
  2013-01-22  8:08 ` Laurentiu Palcu
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2013-01-22  7:16 UTC (permalink / raw)
  To: yocto

Hi,

in previous releases it ha always been possible to install a SDK
configured for a i686 machine on both x86 and x86_64 systems.

Since commit c04f5435 "populate_sdk_base.bbclass: use SDK_ARCH instead
of SDKMACHINE" this does not work any more; instead, installation will
abort with "Error: Installation machine not supported!"

++ uname -m
++ sed -e 's/i[3-6]86/ix86/' -e 's/x86[-_]64/x86_64/'
+ INST_ARCH=x86_64
++ echo i686
++ sed -e 's/i[5-6]86/ix86/'
+ SDK_ARCH=ix86
+ '[' x86_64 '!=' ix86 ']'
+ echo 'Error: Installation machine not supported!'
Error: Installation machine not supported!
+ exit -1


Is this intended behaviour (and if so, why?) or rather a bug that
should be reported and fixed?

Thanks in advance.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
If there was anything that depressed him more than his own  cynicism,
it was that quite often it still wasn't as cynical as real life.
                                 - Terry Pratchett, _Guards! Guards!_


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

* Re: Installation of i686 SDK on a x86_64 machine?
  2013-01-22  7:16 Installation of i686 SDK on a x86_64 machine? Wolfgang Denk
@ 2013-01-22  8:08 ` Laurentiu Palcu
  2013-01-22  9:03   ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Laurentiu Palcu @ 2013-01-22  8:08 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: yocto

Hi Wolfgang,

On 01/22/2013 09:16 AM, Wolfgang Denk wrote:
> Hi,
> 
> in previous releases it ha always been possible to install a SDK
> configured for a i686 machine on both x86 and x86_64 systems.
> 
> Since commit c04f5435 "populate_sdk_base.bbclass: use SDK_ARCH instead
> of SDKMACHINE" this does not work any more; instead, installation will
> abort with "Error: Installation machine not supported!"
> 
> ++ uname -m
> ++ sed -e 's/i[3-6]86/ix86/' -e 's/x86[-_]64/x86_64/'
> + INST_ARCH=x86_64
> ++ echo i686
> ++ sed -e 's/i[5-6]86/ix86/'
> + SDK_ARCH=ix86
> + '[' x86_64 '!=' ix86 ']'
> + echo 'Error: Installation machine not supported!'
> Error: Installation machine not supported!
> + exit -1
> 
> 
> Is this intended behaviour (and if so, why?) or rather a bug that
> should be reported and fixed?
This is the intended behavior. Please check:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=3269

Also, this thread:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/031519.html

If people really need to install SDK tarballs intended for other hosts
than the SDK was built for (i686 on x86_64 or vice-versa), we could add
a -f flag to force installation and show an error message like this:

"Error: Installation machine not supported! Use -f to force installation."

Thanks,
Laurentiu

> 
> Thanks in advance.
> 
> Best regards,
> 
> Wolfgang Denk
> 


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

* Re: Installation of i686 SDK on a x86_64 machine?
  2013-01-22  8:08 ` Laurentiu Palcu
@ 2013-01-22  9:03   ` Wolfgang Denk
  2013-01-22  9:44     ` Laurentiu Palcu
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2013-01-22  9:03 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

Dear Laurentiu,

In message <50FE4900.7020804@intel.com> you wrote:
> 
> > in previous releases it ha always been possible to install a SDK
> > configured for a i686 machine on both x86 and x86_64 systems.
> > 
> > Since commit c04f5435 "populate_sdk_base.bbclass: use SDK_ARCH instead
> > of SDKMACHINE" this does not work any more; instead, installation will
> > abort with "Error: Installation machine not supported!"
...

> > Is this intended behaviour (and if so, why?) or rather a bug that
> > should be reported and fixed?
> This is the intended behavior. Please check:
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=3269

Sorry, but this bug is about a different problem - the fix overshoots
the mark.

The following combinations of SDK_ARCH and INST_ARCH are possible and
relevant here:

Id	SDK_ARCH	INST_ARCH	Status
==============================================
1	ix86		ix86		works
2	ix86		x86_64		works
3	x86_64		ix86		cannot work
4	x86_64		x86_64		works

The bug report is about case 3 - attempting to install a 64 bit SDK on
a 32 bit machine.  This indeed cannot work and shuld be prevented byy
the installer.

But the current code also prevents case 2, installing 32 bit images on
a 64 bit machine, which works perfectly fine (assuming you have the
needed 32 bit libraries installed).

For any distribution it is very convenient to provide only one set of
images (configured for ix86), as these images will work both on 32 and
64 bit systems.

I consider it a major drawback if you intentionally prevent such use.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"I'm not a god, I was misquoted."                 - Lister, Red Dwarf


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

* Re: Installation of i686 SDK on a x86_64 machine?
  2013-01-22  9:03   ` Wolfgang Denk
@ 2013-01-22  9:44     ` Laurentiu Palcu
  2013-01-22 11:14       ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Laurentiu Palcu @ 2013-01-22  9:44 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: yocto



On 01/22/2013 11:03 AM, Wolfgang Denk wrote:
> Id	SDK_ARCH	INST_ARCH	Status
> ==============================================
> 1	ix86		ix86		works
> 2	ix86		x86_64		works
> 3	x86_64		ix86		cannot work
> 4	x86_64		x86_64		works
> 
> The bug report is about case 3 - attempting to install a 64 bit SDK on
> a 32 bit machine.  This indeed cannot work and shuld be prevented byy
> the installer.
> 
> But the current code also prevents case 2, installing 32 bit images on
> a 64 bit machine, which works perfectly fine (assuming you have the
> needed 32 bit libraries installed).

I see your point. Would you please file a bug on this?

Thanks,
Laurentiu


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

* Re: Installation of i686 SDK on a x86_64 machine?
  2013-01-22  9:44     ` Laurentiu Palcu
@ 2013-01-22 11:14       ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2013-01-22 11:14 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

Dear Laurentiu,

In message <50FE5F87.4060300@intel.com> you wrote:
> 
> > Id	SDK_ARCH	INST_ARCH	Status
> > ==============================================
> > 1	ix86		ix86		works
> > 2	ix86		x86_64		works
> > 3	x86_64		ix86		cannot work
> > 4	x86_64		x86_64		works
> > 
> > The bug report is about case 3 - attempting to install a 64 bit SDK on
> > a 32 bit machine.  This indeed cannot work and shuld be prevented byy
> > the installer.
> > 
> > But the current code also prevents case 2, installing 32 bit images on
> > a 64 bit machine, which works perfectly fine (assuming you have the
> > needed 32 bit libraries installed).
> 
> I see your point. Would you please file a bug on this?

Done, with a patch included.

Please see https://bugzilla.yoctoproject.org/show_bug.cgi?id=3770

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Worlds are conquered, galaxies destroyed -- but a woman is  always  a
woman.
	-- Kirk, "Conscience of the King", stardate unknown


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

end of thread, other threads:[~2013-01-22 11:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22  7:16 Installation of i686 SDK on a x86_64 machine? Wolfgang Denk
2013-01-22  8:08 ` Laurentiu Palcu
2013-01-22  9:03   ` Wolfgang Denk
2013-01-22  9:44     ` Laurentiu Palcu
2013-01-22 11:14       ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.