<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>27351</bug_id>
          
          <creation_ts>2012-05-20 12:58:09 +0400</creation_ts>
          <short_desc>не собираются 32битные программы в 64 битном альте. Репозиторий x86_64-586</short_desc>
          <delta_ts>2012-08-07 20:04:55 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p6</product>
          <component>gcc4.5</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>f546607</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>aen</cc>
    
    <cc>grizlik78</cc>
    
    <cc>ldv</cc>
          
          <qa_contact name="QA p6">qa-p6</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>131367</commentid>
    <comment_count>0</comment_count>
    <who name="">f546607</who>
    <bug_when>2012-05-20 12:58:09 +0400</bug_when>
    <thetext>gcc4.5 из репозитория x86_64-586 в 64 разрядном дистрибутиве не компилирует

воспроизвести
0) отключить репозиторий x86_32 и удалить все пакеты ^i586.*
1) подключить репозиторий 
echo rpm [p6] http://mirror.yandex.ru/altlinux/p6/branch/ x86_64-i586 classic &gt;&gt; /etc/apt/source.list
2) установить gcc
apt-get install i586-gcc4.5.32bit i586-glibc-devel
3)скомпилировать
gcc -m32 hellow.c

в итоги ничего не компилируется
gcc -m32 hellow.c
/usr/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-alt-linux/4.5.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-alt-linux/4.5.3/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: выполнение ld завершилось с кодом возврата 1

cat hellow.c
#include &lt;stdio.h&gt;
int main(void)
{
	printf(&quot;Hello, World!\n&quot;);
	return 0;
}
без -m32 оно собирается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131368</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksey Borisenkov">grizlik78</who>
    <bug_when>2012-05-20 13:56:52 +0400</bug_when>
    <thetext>В сизифе работает, видимо потому, что там gcc4.5-alt3
В changelog можно увидеть следующее:
* Втр Апр 03 2012 Dmitry V. Levin &lt;ldv@altlinux.org&gt; 4.5.3-alt2
- Merged with gcc-4_5-branch@186094.
- gcc4.5, libstdc++4.5-devel:
  packaged directories and symlinks for -m32 on x86_64.

В p6 находится gcc4.5-alt1, в котором этого изменения нет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131373</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2012-05-20 23:42:40 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; В сизифе работает, видимо потому, что там gcc4.5-alt3
&gt; В changelog можно увидеть следующее:
&gt; * Втр Апр 03 2012 Dmitry V. Levin &lt;ldv@altlinux.org&gt; 4.5.3-alt2
&gt; - Merged with gcc-4_5-branch@186094.
&gt; - gcc4.5, libstdc++4.5-devel:
&gt;   packaged directories and symlinks for -m32 on x86_64.
&gt; 
&gt; В p6 находится gcc4.5-alt1, в котором этого изменения нет.

Да, все правильно, в бранчах нет gcc с нужными симлинками.
Может быть, пора портировать 4.5.3-alt2 в бранчи?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132495</commentid>
    <comment_count>3</comment_count>
    <who name="">f546607</who>
    <bug_when>2012-07-30 22:03:04 +0400</bug_when>
    <thetext>Компиляция программ не такая важная функция чтобы её исправлять?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132634</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2012-08-07 20:04:55 +0400</bug_when>
    <thetext>Исправленная версия отправлена в пятницу в p6.

* Fri Aug 03 2012 Andrey Cherepanov &lt;cas@altlinux.org&gt; 4.5.3-alt1.M60P.1
- Backport to p6 branch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>