From: Anton Farygin <rider@altlinux.com>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] gcc -m32 не работает в x86_64
Date: Thu, 05 Oct 2006 13:00:39 +0400
Message-ID: <4524C9B7.3000502@altlinux.com> (raw)
In-Reply-To: <20061004210012.GA22656@basalt.office.altlinux.org>
Dmitry V. Levin wrote:
> On Thu, Oct 05, 2006 at 12:33:22AM +0400, Vitaly Lipatov wrote:
>> $ gcc -m32 test.c
>> /usr/bin/ld: skipping
>> incompatible /usr/lib64/gcc/x86_64-alt-linux/4.1.1/./libgcc.a
>> when searching for -lgcc
>> /usr/bin/ld: cannot find -lgcc
>> collect2: ld returned 1 exit status
>>
>> Пытался собрать wine и вот что получил для начала.
>> Как нужно поступить, если нужно собрать 32-битную программу на
>> 64-битной машине?
>
> Я в таких случаях (да и в других случаях, когда надо что-то собрать)
> использую hasher; в данном случае setarch i686 hasher --apt-conf=...
Дима, ты не понял вопроса.
Я тоже с этим столкнулся.. задача - собрать 32-х разрядное приложения
для x86_64. Зачем это нужно ? Понятно зачем.. что бы работало.
Примеры таких приложений:
grub
wine
пускалка плагинов для браузеров (позволяющая запускать 32-х разрядные
плагины в собранных под x86_64 плагинах).
...
и т.д.
Что для этого нужно:
- зафиксить kernel-headers
- собрать gcc с поддержкой -m32
- собрать glibc-x86-compat для x86_64
- собрать все необходимые библиотеки для x86_64 в режиме compat с i586.
И если мы планируем использовать grub на x86_64, то это придётся сделать
до фриза. Во всяком случае я сходу не смог собрать grub для x86_64 без -m32
Rgds,
Rider
next prev parent reply other threads:[~2006-10-05 9:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 20:33 Vitaly Lipatov
2006-10-04 21:00 ` Dmitry V. Levin
2006-10-05 9:00 ` Anton Farygin [this message]
2006-10-05 11:16 ` Sergey Vlasov
2006-10-05 11:45 ` Dmitry V. Levin
2006-10-05 11:45 ` Anton Farygin
2006-10-10 21:46 ` Vitaly Lipatov
2006-10-11 4:50 ` Anton Farygin
2006-10-04 21:48 ` Konstantin A. Lepikhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4524C9B7.3000502@altlinux.com \
--to=rider@altlinux.com \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git