* [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
@ 2020-07-21 20:20 Sergey Y. Afonin
2020-07-21 21:58 ` Sergey Bolshakov
0 siblings, 2 replies; 6+ messages in thread
From: Sergey Y. Afonin @ 2020-07-21 20:20 UTC (permalink / raw)
To: ALT Linux Team development discussions
Приветствую.
[#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 из сборки?
Хотя, по идее, утилита может полезной оказаться.
--
С уважением, Сергей Афонин
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
@ 2020-07-21 20:37 ` Dmitry V. Levin
2020-07-21 21:59 ` Sergey Y. Afonin
2020-07-21 20:40 ` Andrey Savchenko
1 sibling, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2020-07-21 20:37 UTC (permalink / raw)
To: ALT Devel discussion list
On Tue, Jul 21, 2020 at 11:30:16PM +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
Видимо, у других на arm по умолчанию нет -fomit-frame-pointer,
а у нас почему-то есть. В качестве объезда попробуйте, например,
%remove_optflags -fomit-frame-pointer
--
ldv
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
2020-07-21 20:37 ` Dmitry V. Levin
@ 2020-07-21 20:40 ` Andrey Savchenko
2020-07-21 21:58 ` Sergey Y. Afonin
1 sibling, 1 reply; 6+ messages in thread
From: Andrey Savchenko @ 2020-07-21 20:40 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
2020-07-21 20:40 ` Andrey Savchenko
@ 2020-07-21 21:58 ` Sergey Y. Afonin
0 siblings, 0 replies; 6+ messages in thread
From: Sergey Y. Afonin @ 2020-07-21 21:58 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Wednesday 22 July 2020, Andrey Savchenko wrote:
> Вылечить можно двумя способами:
> 1) отключить -pg
> 2) -fno-omit-frame-pointer
-pg появляется из-за попытки собрать iperf3_profile. На самом деле это
не планировалось, но почему-то параметр --disable-profiling в новой версии
произвёл обратный эффект: включил сборку iperf3_profile. Вообще в этом месте
произошло изменение - сборка iperf3_profile стала отключена по умолчанию, так
что помогло удаление --disable-profiling.
--
С уважением, Сергей Афонин
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
2020-07-21 20:20 [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible Sergey Y. Afonin
@ 2020-07-21 21:58 ` Sergey Bolshakov
1 sibling, 0 replies; 6+ messages in thread
From: Sergey Bolshakov @ 2020-07-21 21:58 UTC (permalink / raw)
To: devel
>>>>> "Sergey" == Sergey Y Afonin <asy-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> writes:
> Приветствую.
> [#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 из сборки?
> Хотя, по идее, утилита может полезной оказаться.
Никаких причин иметь -pg в iperf, собираемом в дистрибутив, нет.
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible
2020-07-21 20:37 ` Dmitry V. Levin
@ 2020-07-21 21:59 ` Sergey Y. Afonin
0 siblings, 0 replies; 6+ messages in thread
From: Sergey Y. Afonin @ 2020-07-21 21:59 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Wednesday 22 July 2020, Dmitry V. Levin wrote:
> > https://pkgs.org/download/iperf3
>
> Видимо, у других на arm по умолчанию нет -fomit-frame-pointer,
> а у нас почему-то есть. В качестве объезда попробуйте, например,
> %remove_optflags -fomit-frame-pointer
Так не сработало, но пока убрал -pg.
--
С уважением, Сергей Афонин
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-07-21 21:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 20:20 [devel] armh-alt-linux-gnueabi-gcc: error: -pg and -fomit-frame-pointer are incompatible 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
2020-07-21 21:58 ` Sergey Y. Afonin
2020-07-21 21:58 ` Sergey Bolshakov
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