From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Need help: sam2p не собирается с указанной архитектурой
Date: Mon, 18 Feb 2008 23:00:52 +0300
Message-ID: <20080218200052.GE30235@wo.int.altlinux.org> (raw)
In-Reply-To: <m3lk5i6oce.fsf@blard.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1563 bytes --]
On Tue, Feb 19, 2008 at 01:45:05AM +0600, Michael Pozhidaev wrote:
> Привет всем!
> Не могу побороть проблему, из-за которой не получается собрать sam2p.
> Суть в том, что после
> ./configure
> make
> всё успешно собирается и замечательно работает.
> Но:
> при указанной архитектуре CXXFLAGS='-march=i586'
> сборка очень быстро завершается с ошибкой.
> Выглядит это так:
> Compilation started at Tue Feb 19 01:37:44
>
> LANG=C make CXXFLAGS='-march=i586'
> g++ -s -O2 -march=i586 -ansi -pedantic -Wall -W -c ps_tiny.c
> ps_tiny.c: In function 'void copy(const char*)':
> ps_tiny.c:536: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
> ps_tiny.c: In function 'void compress0(const char*)':
> ps_tiny.c:605: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
> g++ -s -O2 -march=i586 -ansi -pedantic -Wall -W -c c_lgcc.cpp
> gcc -s ps_tiny.o c_lgcc.o -o ps_tiny
> ps_tiny.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> c_lgcc.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [ps_tiny] Error 1
>
> Compilation exited abnormally with code 2 at Tue Feb 19 01:37:45
> Кто-нибудь видит здесь причину?
Выбран неправильный фронтенд для линковки приложений на c++.
Если хотя бы один объектный файл скомпилирован g++, то и линковать следует
тоже с помощью g++ а не gcc.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-02-18 20:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 19:45 Michael Pozhidaev
2008-02-18 20:00 ` Dmitry V. Levin [this message]
2008-02-18 20:18 ` Sergey Vlasov
2008-02-18 21:54 ` Dmitry V. Levin
2008-02-19 10:33 ` Sergey Vlasov
2008-02-18 22:01 ` Michael Pozhidaev
2008-02-18 21:43 ` Michael Pozhidaev
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=20080218200052.GE30235@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git