From: Alexey Sheplyakov <asheplyakov@basealt.ru> To: devel@lists.altlinux.org Subject: Re: [devel] проблема с boost::spirit на i586 и armh Date: Wed, 16 Dec 2020 16:45:23 +0400 Message-ID: <9305cfbe-eeb9-633a-521e-1e726961729c@basealt.ru> (raw) In-Reply-To: <20201213003557.GA21193@imap.altlinux.org> On 12/13/20 4:35 AM, Vladislav Zavjalov wrote: > Обнаружил странную регрессию в одной из своих программ: > на 32-битных архитектурах начались падения (Segmentation fault) > где-то в районе boost::spirit (очень смешная библиотека для > синтаксического разбора, когда-то давно она меня радовала). > Судя по всему, произошло это одновременно с переходом на gcc-10, > до этого пакет нормально пересобирался. > > Сделал тестовый пакет с каким-то минимальным кодом, пытался отлаживать > на сборочнице, но точное место поймать пока не смог. Как только правила > spirit становятся достаточно длинными - начинает падать. > Зато выяснил, что падения лечатся убиранием флага -O2. > Может быть, кому-нибудь такой рецепт поможет. При кросс-компиляции работает: $ git clone git://git.altlinux.org/tasks/263387/gears/2200/git fig $ cd fig/fig $ arm-linux-gnueabihf-g++-9 -O3 -static main.cpp fig_mask.cpp $ qemu-arm-static ./a.out OK $ file /usr/bin/arm-linux-gnueabihf-g++-9 /usr/bin/arm-linux-gnueabihf-g++-9: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=223dd45156912b3d36b4c283383606847ed7e539, for GNU/Linux 3.2.0, stripped > Если кто-то захочет покопаться, то код есть тут: > http://git.altlinux.org/tasks/263387/gears/2200/git > А типичный лог на сборочнице выглядит так: > http://git.altlinux.org/tasks/263387/build/2200/i586/log > Собираю и запускаю программу дважды: без флага -O2 и с ним. > Первый раз все работает, второй - падает. > На armh - то же самое. Видимо авторы gcc не рассматривают 32-битные ОС в качестве платформ разработки. В качестве target - пожалуйста, сколько угодно. Но сам компилятор умещать в 32-битное адресное пространство - нет уж, увольте.
next prev parent reply other threads:[~2020-12-16 12:45 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-13 0:35 Vladislav Zavjalov 2020-12-16 12:45 ` Alexey Sheplyakov [this message] 2020-12-16 12:50 ` Dmitry V. Levin 2020-12-16 13:28 ` Ivan A. Melnikov 2020-12-18 13:26 ` Alexey Sheplyakov
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=9305cfbe-eeb9-633a-521e-1e726961729c@basealt.ru \ --to=asheplyakov@basealt.ru \ --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