From: Blue Swirl <blauwirbel@gmail.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190ca
Date: Sun, 13 Sep 2009 21:31:22 +0300 [thread overview]
Message-ID: <f43fc5580909131131qb4c9680t92278554446fad1e@mail.gmail.com> (raw)
In-Reply-To: <cc557aab0909131045x5f055f30q797f624df4a9459@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4117 bytes --]
On Sun, Sep 13, 2009 at 8:45 PM, Kirill A. Shutemov
<kirill@shutemov.name> wrote:
> On Sun, Sep 13, 2009 at 8:28 PM, Blue Swirl <blauwirbel@gmail.com> wrote:
>> On Sun, Sep 13, 2009 at 8:19 PM, Kirill A. Shutemov
>> <kirill@shutemov.name> wrote:
>>> On Sun, Sep 13, 2009 at 7:47 PM, Blue Swirl <blauwirbel@gmail.com> wrote:
>>>> On Sun, Sep 13, 2009 at 7:39 PM, Kirill A. Shutemov
>>>> <kirill@shutemov.name> wrote:
>>>>> Could you provide more info about breakage?
>>>>>
>>>>
>>>> LINK i386-linux-user/qemu-i386
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_fini':
>>>> (.text+0x4): undefined reference to `__fini_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_fini':
>>>> (.text+0x8): undefined reference to `__fini_array_end'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_fini':
>>>> (.text+0xc): undefined reference to `__fini_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_fini':
>>>> (.text+0x10): undefined reference to `__fini_array_end'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0x64): undefined reference to `__preinit_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0x68): undefined reference to `__preinit_array_end'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0x6c): undefined reference to `__preinit_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0x70): undefined reference to `__preinit_array_end'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0xc0): undefined reference to `__init_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0xc4): undefined reference to `__init_array_end'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0xc8): undefined reference to `__init_array_start'
>>>> /usr/lib/gcc/sparc-linux-gnu/4.3.2/../../../../lib/libc.a(elf-init.o):
>>>> In function `__libc_csu_init':
>>>> (.text+0xcc): undefined reference to `__init_array_end'
>>>> collect2: ld returned 1 exit status
>>>> make[1]: *** [qemu-i386] Error 1
>>>
>>> Is it reproducible for all linux-user targets or only for i386?
>>
>> I think all of them. I did not run the compilation with make -k very
>> far until I fixed this but there were others.
>>
>>>> Using built-in specs.
>>>> Target: sparc-linux-gnu
>>>> Configured with: ../src/configure -v --with-pkgversion='Debian
>>>> 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
>>>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>>>> --enable-shared --with-system-zlib --libexecdir=/usr/lib
>>>> --without-included-gettext --enable-threads=posix --enable-nls
>>>> --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
>>>> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
>>>> --enable-mpfr --with-cpu=v8 --with-long-double-128
>>>> --enable-checking=release --build=sparc-linux-gnu
>>>> --host=sparc-linux-gnu --target=sparc-linux-gnu
>>>> Thread model: posix
>>>> gcc version 4.3.2 (Debian 4.3.2-1.1)
>>>>
>>>
>>> What is your version of glibc and bintuils?
>>>
>>
>> dpkg -s libc6|grep Version
>> Version: 2.7-18
>>
>> dpkg -s binutils|grep Version
>> Version: 2.18.1~cvs20080103-7
>>
>
> I guess, the problem is in sparc.ld. It lacks defining these symbols.
> Could you play with sparc.ld to fix the problem without ugly hacks?
>
I see. The attached patch fixes the problem.
[-- Attachment #2: 0001-Fix-sparc.ld.patch --]
[-- Type: application/mbox, Size: 1172 bytes --]
next prev parent reply other threads:[~2009-09-13 18:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 16:39 [Qemu-devel] Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190ca Kirill A. Shutemov
2009-09-13 16:47 ` [Qemu-devel] " Blue Swirl
2009-09-13 17:19 ` Kirill A. Shutemov
2009-09-13 17:28 ` Blue Swirl
2009-09-13 17:45 ` Kirill A. Shutemov
2009-09-13 18:31 ` Blue Swirl [this message]
2009-09-13 18:54 ` Kirill A. Shutemov
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=f43fc5580909131131qb4c9680t92278554446fad1e@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=kirill@shutemov.name \
--cc=qemu-devel@nongnu.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).