This repository was archived by the owner on Dec 6, 2024. It is now read-only.
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
Error Running: Bazel #4
Closed as not planned
Description
I followed the readme file to clone the repo and download the data.
When I tried bazel run -c opt :print_names_and_sources /tmp/dm-code_contests/code_contests_train.riegeli*
, it ran into the error:
ERROR: /home/ubuntu64/.cache/bazel/_bazel_ubuntu64/0383bdf747a541d9fe51b3d550b07b10/external/com_google_riegeli/riegeli/records/BUILD:79:11: Compiling riegeli/records/record_position.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 31 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/com_google_riegeli/riegeli/records/record_position.cc:36:0:
external/com_google_riegeli/riegeli/bytes/string_writer.h: In instantiation of 'riegeli::StringWriter<Dest>::StringWriter(Dest&&, riegeli::StringWriterBase::Options) [with Dest = std::basic_string<char>*]':
external/com_google_riegeli/riegeli/records/record_position.cc:73:36: required from here
external/com_google_riegeli/riegeli/bytes/string_writer.h:291:28: error: no matching function for call to 'riegeli::StringWriterBase::StringWriterBase()'
: dest_(std::move(dest)) {
^
external/com_google_riegeli/riegeli/bytes/string_writer.h:92:17: note: candidate: riegeli::StringWriterBase::StringWriterBase(riegeli::Closed)
using Writer::Writer;
^
external/com_google_riegeli/riegeli/bytes/string_writer.h:92:17: note: candidate expects 1 argument, 0 provided
external/com_google_riegeli/riegeli/bytes/string_writer.h:232:8: note: candidate: riegeli::StringWriterBase::StringWriterBase(riegeli::StringWriterBase&&)
inline StringWriterBase::StringWriterBase(StringWriterBase&& that) noexcept
^
external/com_google_riegeli/riegeli/bytes/string_writer.h:232:8: note: candidate expects 1 argument, 0 provided
In file included from external/com_google_riegeli/riegeli/records/record_position.cc:35:0:
external/com_google_riegeli/riegeli/bytes/string_reader.h: In instantiation of 'riegeli::StringReader<Src>::StringReader(const Src&) [with Src = absl::lts_20211102::string_view]':
external/com_google_riegeli/riegeli/records/record_position.cc:94:35: required from here
external/com_google_riegeli/riegeli/bytes/string_reader.h:172:66: error: no matching function for call to 'riegeli::StringReaderBase::StringReaderBase()'
inline StringReader<Src>::StringReader(const Src& src) : src_(src) {
^
external/com_google_riegeli/riegeli/bytes/string_reader.h:46:17: note: candidate: riegeli::StringReaderBase::StringReaderBase(riegeli::Closed)
using Reader::Reader;
^
external/com_google_riegeli/riegeli/bytes/string_reader.h:46:17: note: candidate expects 1 argument, 0 provided
external/com_google_riegeli/riegeli/bytes/string_reader.h:157:8: note: candidate: riegeli::StringReaderBase::StringReaderBase(riegeli::StringReaderBase&&)
inline StringReaderBase::StringReaderBase(StringReaderBase&& that) noexcept
^
external/com_google_riegeli/riegeli/bytes/string_reader.h:157:8: note: candidate expects 1 argument, 0 provided
Target //:print_names_and_sources failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.878s, Critical Path: 1.50s
INFO: 5 processes: 3 internal, 2 linux-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
i install bazel
using apt install
sudo apt update && sudo apt install bazel
python 2.7 && python 3.5
ubuntu 16.04 (vmware virtual machine)
Metadata
Metadata
Assignees
Labels
No labels