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 17:33:14 +0100 [thread overview]
Message-ID: <20210118173314.063ab3af@carbon> (raw)
In-Reply-To: <CA+i-1C1f2UUc=iuhQzus9iVrftHWonyPRB8pZhz2HKfKg6uKuw@mail.gmail.com>
On Mon, 18 Jan 2021 16:24:10 +0100
Brendan Jackman <jackmanb@google.com> wrote:
> On Mon, 18 Jan 2021 at 15:38, Jesper Dangaard Brouer <brouer@redhat.com> wrote:
> > 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?
>
> :(
>
> I'm on 6f4ee6f87060 and things are working.
I got compiling to work on this commit. But the error below, were
likely caused by my compile machine simply ran out of memory (it "only"
have 16GB RAM).
I reduced the number of parallel jobs (ninja -j6) and have now
successfully compiled devel branch of LLVM.
Now the compile of BPF-selftests is possible again.
> >
> > [...]
> > ../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
prev parent reply other threads:[~2021-01-18 16:38 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
2021-01-18 15:24 ` Brendan Jackman
2021-01-18 16:33 ` Jesper Dangaard Brouer [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=20210118173314.063ab3af@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.