From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Brendan Jackman <jackmanb@google.com>
Cc: "Björn Töpel" <bjorn.topel@gmail.com>,
BPF-dev-list <bpf@vger.kernel.org>,
"Alexei Starovoitov" <alexei.starovoitov@gmail.com>,
"Daniel Borkmann" <borkmann@iogearbox.net>,
"Veronika Kabatova" <vkabatov@redhat.com>,
"Yauheni Kaliuta" <yauheni.kaliuta@redhat.com>,
"Stanislav Kozina" <skozina@redhat.com>,
brouer@redhat.com
Subject: Re: Issues compiling selftests XADD - "Invalid usage of the XADD return value"
Date: Mon, 18 Jan 2021 15:37:45 +0100 [thread overview]
Message-ID: <20210118153745.21b9727e@carbon> (raw)
In-Reply-To: <CA+i-1C1Te+c876s3JYSE6o7fw+TaTbC7TnMmyw8kx5Tg1jUxNw@mail.gmail.com>
On Mon, 18 Jan 2021 14:47:36 +0100
Brendan Jackman <jackmanb@google.com> wrote:
> On Mon, 18 Jan 2021 at 14:41, Jesper Dangaard Brouer <brouer@redhat.com> wrote:
> >
> > Hi All,
> >
> > After rebasing (my MTU patchset) to bpf-next (232164e041e925a) I'm
> > getting this error when compiling selftests (full error below signature):
> >
> > "CLNG-BPF [test_maps] atomics.o"
> > "fatal error: error in backend: line 27: Invalid usage of the XADD return value"
> > "PLEASE submit a bug report to https://bugs.llvm.org/ [...]"
> >
> > It looked like a LLVM bug, so I compiled llvm-11.1.0-rc1, but it still fails.
> >
> > I noticed Brendan Jackman changes... could this be related?
>
> Yes, since bpf-next commit 98d666d05a1d970 ("bpf: Add tests for new
> BPF atomic operations") you need llvm-project commit 286daafd6512 (was
> https://reviews.llvm.org/D72184) for the selftests, which will be in
> Clang 12. You'll need to build LLVM from master.
>
I'm compiling from LLVM 'main' branch (commit e6d758de82b6) but it
unfortunately fails to compile (see error below).
Any recommended LLVM commit id that works?
[...]
../include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h:1513:27: note: remove ‘std::move’ call
../include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h:1519:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
1519 | return std::move(Err);
| ^
../include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h:1519:27: note: remove ‘std::move’ call
../include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h:1526:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
1526 | return std::move(Err);
| ^
../include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h:1526:29: note: remove ‘std::move’ call
[2237/3183] Building CXX object tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o
FAILED: tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o
/usr/lib64/ccache/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/lib/ASTMatchers/Dynamic -I/home/jbrouer/git/llvm-project/clang/lib/ASTMatchers/Dynamic -I/home/jbrouer/git/llvm-project/clang/include -Itools/clang/include -Iinclude -I/home/jbrouer/git/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O2 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -MF tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o.d -o tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -c /home/jbrouer/git/llvm-project/clang/lib/ASTMatchers/Dynamic/Registry.cpp
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[2255/3183] Building CXX object tools/clang/lib/ASTMatchers/CMakeFiles/obj.clangASTMatchers.dir/ASTMatchFinder.cpp.o
[2262/3183] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o
ninja: build stopped: subcommand failed.
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
next prev parent reply other threads:[~2021-01-18 14:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 13:41 Issues compiling selftests XADD - "Invalid usage of the XADD return value" Jesper Dangaard Brouer
2021-01-18 13:47 ` Brendan Jackman
2021-01-18 14:24 ` Björn Töpel
2021-01-18 14:37 ` Jesper Dangaard Brouer [this message]
2021-01-18 15:24 ` Brendan Jackman
2021-01-18 16:33 ` Jesper Dangaard Brouer
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=20210118153745.21b9727e@carbon \
--to=brouer@redhat.com \
--cc=alexei.starovoitov@gmail.com \
--cc=bjorn.topel@gmail.com \
--cc=borkmann@iogearbox.net \
--cc=bpf@vger.kernel.org \
--cc=jackmanb@google.com \
--cc=skozina@redhat.com \
--cc=vkabatov@redhat.com \
--cc=yauheni.kaliuta@redhat.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox