From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: devel@lists.altlinux.org
Subject: Re: [devel] glibc-2.8.90-alt1
Date: Tue, 21 Oct 2008 17:21:58 +0300
Message-ID: <20081021142158.GA4960@localhost.localdomain> (raw)
In-Reply-To: <20081021134642.GC19889@newmaster.mivlgu.local>
[-- Attachment #1: Type: text/plain, Size: 4052 bytes --]
On Tue, Oct 21, 2008 at 05:46:42PM +0400, Sergey Vlasov wrote:
> On Tue, Oct 21, 2008 at 03:17:22PM +0300, Kirill A. Shutemov wrote:
> > Споткнулся на странной проблеме. При линковке, к примеру, libcrypt.so
> > получаю кучу сообoщений об ошибке следующего вида:
> >
> > /usr/lib/gcc/arm-alt-linux-gnueabi/4.3.2/libgcc.a(_udivsi3.o): In function
> > `__aeabi_uidiv':
> > /usr/src/RPM/BUILD/gcc-4.3.2-20081008/obj-arm-alt-linux-gnueabi/arm-alt-linux-gnueabi/libgcc/../../../libgcc/../gcc/config/arm/lib1funcs.asm:810:
> > multiple definition of `__udivsi3'
> > /usr/lib/gcc/arm-alt-linux-gnueabi/4.3.2/libgcc.a(_udivsi3.o):/usr/src/RPM/BUILD/gcc-4.3.2-20081008/obj-arm-alt-linux-gnueabi/arm-alt-linux-gnueabi/libgcc/../../../libgcc/../gcc/config/arm/lib1funcs.asm:810:
> > first defined here
> >
> > Т.е. что-то типа конфликта libgcc.a с libgcc.a %-(
> >
> > Линковка происходит командой вида:
> > gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3 -B/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/csu/ -Wl,--version-script=/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/libcrypt.map -Wl,-soname=libcrypt.so.1 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -e __libc_main -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/math -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/elf -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/dlfcn -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nss -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nis -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/rt -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/resolv -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/crypt -L/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nptl -Wl,-rpath-link=/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/math:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/elf:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/dlfcn:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nss:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nis:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/rt:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/resolv:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/crypt:/usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/nptl -o /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/crypt/libcrypt.so -T /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/shlib.lds /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/csu/abi-note.o -Wl,--whole-archive /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/crypt/libcrypt_pic.a /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/elf/interp.os /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/libc.so /usr/src/RPM/BUILD/glibc-2.8.90-alt1/build-arm-linux/libc_nonshared.a
> >
> > Я не знаю, зачем нужен -Wl,--whole-archive, но если его удалить -- помогает.
>
> Нужен для libcrypt_pic.a - там таким странным образом собирают библиотеки
> (добавляют файлы в .a частями, а потом из них собирают .so - видимо, чтобы
> не наступить на ограничение размера командной строки при сборке libc.so из
> большого количества мелких файлов). По идее после libcrypt_pic.a должно
> быть -Wl,--no-whole-archive, чтобы остальное линковалось обычным образом.
Спасибо. Уже разобрался. Была ARM-специфичная проблема с configure.
--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-10-21 14:21 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 21:30 [devel] gcc-4.3.2-alt1 Dmitry V. Levin
2008-10-17 11:23 ` Wartan Hachaturow
2008-10-17 11:31 ` Dmitry V. Levin
2008-10-17 11:50 ` Wartan Hachaturow
2008-10-17 12:15 ` Kirill A. Shutemov
2008-10-17 12:49 ` Dmitry V. Levin
2008-10-17 13:57 ` Wartan Hachaturow
2008-10-17 14:13 ` Dmitry V. Levin
2008-10-18 12:11 ` Wartan Hachaturow
2008-10-18 12:17 ` Dmitry V. Levin
2008-10-18 15:18 ` wartan.hachaturow
2008-10-18 15:32 ` Anton Farygin
2008-10-17 12:14 ` Kirill A. Shutemov
2008-10-17 12:49 ` Dmitry V. Levin
2008-10-17 13:44 ` Kirill A. Shutemov
2008-10-17 14:09 ` Dmitry V. Levin
2008-10-17 18:30 ` Kirill A. Shutemov
2008-10-17 18:56 ` Kirill A. Shutemov
2008-10-20 1:20 ` [devel] glibc-2.8.90-alt1 Dmitry V. Levin
2008-10-20 7:29 ` Kirill A. Shutemov
2008-10-20 9:04 ` Kirill A. Shutemov
2008-10-20 9:07 ` Dmitry V. Levin
2008-10-21 12:17 ` Kirill A. Shutemov
2008-10-21 12:45 ` Dmitry V. Levin
2008-10-21 12:51 ` Kirill A. Shutemov
2008-10-21 13:46 ` Sergey Vlasov
2008-10-21 14:21 ` Kirill A. Shutemov [this message]
2008-10-26 17:23 ` Igor Zubkov
2008-10-20 9:03 ` [devel] gcc-4.3.2-alt1 Kirill A. Shutemov
2008-10-20 15:28 ` Dmitry V. Levin
2008-10-20 11:46 ` Kirill A. Shutemov
2008-10-20 15:14 ` Dmitry V. Levin
2008-10-20 20:03 ` Dmitry V. Levin
2008-10-22 5:39 ` Alexey Tourbin
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=20081021142158.GA4960@localhost.localdomain \
--to=kirill@shutemov.name \
--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