From: Arseny Maslennikov <arseny@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: https://www.altlinux.org/LTO
Date: Mon, 20 Sep 2021 14:58:06 +0300
Message-ID: <YUh3TkdfQ0rm96Tz@cello> (raw)
In-Reply-To: <a9a1548e-6b61-f254-1491-4293072f61a6@basealt.ru>
[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]
On Mon, Sep 13, 2021 at 10:04:12PM +0700, Илья Курдюков wrote:
> > Clang поддерживает LTO, но не поддерживает /auto/ в -flto=auto и опцию
> -ffat-lto-objects, поэтому для пакетов собираемых Clang нужно переопределить
> optflags_lto или отключить LTO, например:
>
> > %define optflags_lto -flto=thin
>
> В "netgen" это не работает:
>
> [aarch64] ld:/usr/lib/llvm-12.0/bin/../lib64/LLVMgold.so: error loading plugin: /usr/lib/llvm-12.0/bin/../lib64/LLVMgold.so: cannot open shared object file: No such file or directory
% mkdir ~/h
% hsh --initroot-only ~/h && hsh-install ~/h -- llvm-devel
% hsh-shell ~/h
[builder@localhost .in]$ cd
[builder@localhost ~]$ rpm -qf /usr/lib/llvm-12.0/bin/../lib64/LLVMgold.so
llvm12.0-devel-12.0.1-alt2.x86_64
[builder@localhost ~]$ logout
%
Возможно, этот плагин зря лежит в llvm-devel.
>
> Так что я просто отключу LTO для Clang (в netgen он используется только для
> aarch64). Кто хочет разобраться - почините LTO правильно и дополните
> инструкцию, чтобы другие не спотыкались о неработающие инструкции.
>
> On 10.09.2021 01:30, Dmitry V. Levin wrote:
> > Hi,
> >
> > Напоминаю, что по адресу https://www.altlinux.org/LTO пополняется перечень
> > рекомендаций по исправлению ошибок сборки, связанных с LTO.
> >
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2021-09-20 11:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 18:30 Dmitry V. Levin
2021-09-12 0:09 ` Andrey Savchenko
2021-09-20 11:30 ` Dmitry V. Levin
2021-09-21 10:27 ` Andrey Savchenko
2021-09-20 11:58 ` Arseny Maslennikov [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=YUh3TkdfQ0rm96Tz@cello \
--to=arseny@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