<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3770</bug_id>
          
          <creation_ts>2013-01-22 11:13:34 +0000</creation_ts>
          <short_desc>populate_sdk_base.bbclass: cannot install 32 bit SDK on 64 bit host</short_desc>
          <delta_ts>2013-01-29 09:41:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wolfgang Denk">wd</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>laurentiu.palcu</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29024</commentid>
    <comment_count>0</comment_count>
      <attachid>1019</attachid>
    <who name="Wolfgang Denk">wd</who>
    <bug_when>2013-01-22 11:13:34 +0000</bug_when>
    <thetext>Created attachment 1019
[pATCH] populate_sdk_base.bbclass: Allow installation of ix86 SDK on x86_64 host

Commit c04f5435 &quot;populate_sdk_base.bbclass: use SDK_ARCH instead
of SDKMACHINE&quot; prevents not only the installation of 64 bit SDK
configurations on 32 bit hosts (which indeed cannot work), but also
the legitimate installation of a 32 bit SDK on a 64 bit host.

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

The attached patch is supposed to fix this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29025</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-01-22 11:41:42 +0000</bug_when>
    <thetext>The fix looks OK. But I would like to see a warning message for those who install i686 SDK on a x86_64 host. Something like:
&quot;WARNING: The SDK is intended for 32 bit hosts. You&apos;re installing it on a 64 bit machine. Make sure you have the 32 bit libraries installed.&quot;

At least we make sure people are not caught by suprise when their SDK tools and toolchain do not work on their machine.

Also, I think you could send the patch directly to
openembedded-core@lists.openembedded.org

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29031</commentid>
    <comment_count>2</comment_count>
    <who name="Wolfgang Denk">wd</who>
    <bug_when>2013-01-22 12:29:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The fix looks OK. But I would like to see a warning message for those who
&gt; install i686 SDK on a x86_64 host. Something like:
&gt; &quot;WARNING: The SDK is intended for 32 bit hosts. You&apos;re installing it on a 64
&gt; bit machine. Make sure you have the 32 bit libraries installed.&quot;
&gt; 
&gt; At least we make sure people are not caught by suprise when their SDK tools
&gt; and toolchain do not work on their machine.

I have to admit that I don&apos;t like that idea - it just adds noise to
the installation.  There are a number of other software packages that
come in 32 bit versions even on 64 bit systems, without warning about
this.

See for example Adobe Reader [1], which installs a 32 bit binary, not
even asking if the host is 32 or 64 bit:

	-&gt; file /opt/Adobe/Reader9/Reader/intellinux/bin/acroread
	/opt/Adobe/Reader9/Reader/intellinux/bin/acroread: ELF 32-bit
	LSB executable, Intel 80386, version 1 (SYSV), dynamically
	linked (uses shared libs), for GNU/Linux 2.2.5, stripped

[1] ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.3/enu/AdbeRdr9.5.3-1_i486linux_enu.rpm


Sometimes even packages explicitly labeled as 64 bit versions include
32 bit binaries - example: google-earth-stable-6.2.2.6613-0.x86_64
contains this file:

	-&gt; file /opt/google/earth/free/googleearth-bin
	/opt/google/earth/free/googleearth-bin: ELF 32-bit LSB
	executable, Intel 80386, version 1 (SYSV), dynamically linked
	(uses shared libs), for GNU/Linux 2.6.15,
	BuildID[sha1]=0x7b9b6f926c9cce7276fe550a14bf7190bb71ee75,
	stripped

I think we should keep the noise level low, too.


&gt; Also, I think you could send the patch directly to
&gt; openembedded-core@lists.openembedded.org

Done.

Thanks,

Wolfgang Denk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29285</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-01-29 09:41:45 +0000</bug_when>
    <thetext>Patch merged:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c3256233c6ce27e8ef0cecfbd4939bb3bedc16ad</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1019</attachid>
            <date>2013-01-22 11:13:34 +0000</date>
            <delta_ts>2013-01-22 11:13:34 +0000</delta_ts>
            <desc>[pATCH] populate_sdk_base.bbclass: Allow installation of ix86 SDK on x86_64 host</desc>
            <filename>patch</filename>
            <type>application/octet-stream</type>
            <size>1629</size>
            <attacher name="Wolfgang Denk">wd</attacher>
            
              <data encoding="base64">RnJvbSBlNmFmMzI0Yjc0ZDJmNWQ0OGI4NDZlZDQ4ZjgyOTA0NDgwMDA1MmM5IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBXb2xmZ2FuZyBEZW5rIDx3ZEBkZW54LmRlPgpEYXRlOiBUdWUs
IDIyIEphbiAyMDEzIDExOjQzOjA4ICswMTAwClN1YmplY3Q6IFtQQVRDSF0gcG9wdWxhdGV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