From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
Date: Tue, 21 Jul 2020 23:40:51 +0300
Message-ID: <20200721234051.c1555a1fb909f5158bc9d07d@altlinux.org> (raw)
In-Reply-To: <CAGvFrt0mgRpA-17vMu_nbnvpMEChkEJ_3hczwL4vkkr13AqsRQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2080 bytes --]
On Tue, 21 Jul 2020 23:30:16 +0300 Aleksey Novodvorsky wrote:
> вт, 21 июл. 2020 г., 23:20 Sergey Y. Afonin <asy@altlinux.org>:
>
> > Приветствую.
> >
> > [#255218] [test-only] FAILED iperf3.git=3.8.1-alt1
> >
> > armh-alt-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -pg -g -pipe
> > -frecord-gcc-switches -Wall -g -O2 -fomit-frame-pointer -march=armv7-a
> > -mthumb -Wall -c -o iperf3_profile-main.o `test -f 'main.c' || echo
> > './'`main.c
> > armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are
> > incompatible
> > make[2]: *** [Makefile:979: iperf3_profile-main.o] Error 1
> >
> > Это стоит как-то пытаться чинить, или исключить armh из сборки?
> > Хотя, по идее, утилита может полезной оказаться.
> >
>
> Да.
>
> Посмотрите, как ее другие собирают
>
> https://pkgs.org/download/iperf3
Это проблема не сборки iperf3, а того, что у нас по-умолчанию для
armh задан -fomit-frame-pointer — что я тоже могу понять, т.к. для
32-битных архитектур каждый регистр на счету, а frame pointer один
такой съедает.
У меня была такая же проблема в simpletest:
http://git.altlinux.org/gears/s/simpletest.git?p=simpletest.git;a=blobdiff;f=Makefile.base;h=7135036eae00b71736de993d7c1a928add56e387;hp=be3edc11ad6744638f4563f193827447c7c1e65c;hb=3a73bd68486725629d84f697a61c421eac0fa3c8;hpb=ee9ce31f6171eb1bb05cf65c09ce50871f68fb38
Вылечить можно двумя способами:
1) отключить -pg
2) -fno-omit-frame-pointer
Выбирайте, что лучше для Вашего пакета. Если coverage ему не нужен, то
уберите -pg (желательно для всех архитектур). Если нужен, то добавьте
-fno-omit-frame-pointer.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-07-21 20:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 20:20 Sergey Y. Afonin
2020-07-21 20:37 ` Dmitry V. Levin
2020-07-21 21:59 ` Sergey Y. Afonin
2020-07-21 20:40 ` Andrey Savchenko [this message]
2020-07-21 21:58 ` Sergey Y. Afonin
2020-07-21 21:58 ` Sergey Bolshakov
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=20200721234051.c1555a1fb909f5158bc9d07d@altlinux.org \
--to=bircoph@altlinux.org \
--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