ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] неиспользование %optflags во время линковки
Date: Wed, 15 Dec 2021 17:23:57 +0300
Message-ID: <20211215142357.GB6344@altlinux.org> (raw)
In-Reply-To: <20211208232431.GE31151@altlinux.org>

On Thu, Dec 09, 2021 at 02:24:31AM +0300, Dmitry V. Levin wrote:
> On Wed, Dec 08, 2021 at 01:55:26PM +0300, Dmitry V. Levin wrote:
[...]
> > Обычно так бывает, когда что-то одно было скомпилировано с -mthumb,
> > что-то другое - без -mthumb, а потом слинковано вместе.
> > 
> > При этом -flto имеет свойство делать важным указание %optflags в тех
> > местах, где раньше это было необязательно, ...
> > 
> > > Этим "кто-то" мог оказаться и компилятор, так уже бывало много раз, например
> > > 
> > > https://bugreports.qt.io/browse/QTBUG-69808?focusedCommentId=416504&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-416504
> > 
> > ... например, как было в этом случае.
> 
> Так оно оказалось и в случае этого многострадального qt3,
> фикс выглядит примерно так:
> 
> 	project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_CXXFLAGS"];

Аналогичная ошибка в boost: во время линковки не используется %optflags.

$ grep -Fce -flto=auto /beehive/logs/Sisyphus/x86_64/latest/success/boost-1\:1.77.0-alt2 
875
$ grep -Fc ' -shared ' beehive/logs/Sisyphus/x86_64/latest/success/boost-1\:1.77.0-alt2
43
$ grep -F ' -shared ' beehive/logs/Sisyphus/x86_64/latest/success/boost-1\:1.77.0-alt2 \
 |grep -Fce -flto=auto
0


-- 
ldv


      reply	other threads:[~2021-12-15 14:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 19:20 [devel] [#291354] EPERM (try 3) del=qt3 del=ananas del=esvn del=kaptain del=kniga del=kseg Dmitry V. Levin
2021-12-06 20:41 ` Igor Vlasenko
2021-12-06 21:19   ` Dmitry V. Levin
2021-12-06 22:12     ` Alexey Sheplyakov
2021-12-07  7:31       ` Sergey V Turchin
2021-12-08 10:18   ` Alexey Sheplyakov
2021-12-08 10:55     ` Dmitry V. Levin
2021-12-08 23:24       ` Dmitry V. Levin
2021-12-15 14:23         ` Dmitry V. Levin [this message]

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=20211215142357.GB6344@altlinux.org \
    --to=ldv@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