Record Detail

Compile Error

prepare (1/4): 
finished

cmake (2/4): 
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /out/build
finished

make (3/4): 
Scanning dependencies of target lemondb
[  4%] Building CXX object CMakeFiles/lemondb.dir/db/Database.cpp.o
[  8%] Building CXX object CMakeFiles/lemondb.dir/main.cpp.o
/in/query/../db/Table.h:132:5: error: exception specification of explicitly defaulted move constructor does not match the calculated one [clang-diagnostic-error]
    ObjectImpl(ObjectImpl &&) noexcept = default;
    ^
/in/query/../db/Table.h:270:10: note: in instantiation of template class 'Table::ObjectImpl<std::reverse_iterator<__gnu_cxx::__normal_iterator<const Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >, const int>' requested here
  static ConstReverseObject::Ptr createProxy(ConstReverseDataIterator it,
         ^
/in/query/../db/Table.h:205:5: error: exception specification of explicitly defaulted move constructor does not match the calculated one [clang-diagnostic-error]
    IteratorImpl(IteratorImpl &&) noexcept = default;
    ^
/in/query/../db/Table.h:420:19: note: in instantiation of template class 'Table::IteratorImpl<Table::ObjectImpl<std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >, int>, std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > > >' requested here
  ReverseIterator rbegin() { return {data.rbegin(), this}; }
                  ^
Error running 'cppcheck': 
CMakeFiles/lemondb.dir/build.make:62: recipe for target 'CMakeFiles/lemondb.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/lemondb.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/in/db/Table.h:132:5: error: exception specification of explicitly defaulted move constructor does not match the calculated one [clang-diagnostic-error]
    ObjectImpl(ObjectImpl &&) noexcept = default;
    ^
/in/db/Table.h:270:10: note: in instantiation of template class 'Table::ObjectImpl<std::reverse_iterator<__gnu_cxx::__normal_iterator<const Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >, const int>' requested here
  static ConstReverseObject::Ptr createProxy(ConstReverseDataIterator it,
         ^
/in/db/Table.h:205:5: error: exception specification of explicitly defaulted move constructor does not match the calculated one [clang-diagnostic-error]
    IteratorImpl(IteratorImpl &&) noexcept = default;
    ^
/in/db/Table.h:420:19: note: in instantiation of template class 'Table::IteratorImpl<Table::ObjectImpl<std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > >, int>, std::reverse_iterator<__gnu_cxx::__normal_iterator<Table::Datum *, std::vector<Table::Datum, std::allocator<Table::Datum> > > > >' requested here
  ReverseIterator rbegin() { return {data.rbegin(), this}; }
                  ^
Error running 'cppcheck': 
CMakeFiles/lemondb.dir/build.make:86: recipe for target 'CMakeFiles/lemondb.dir/db/Database.cpp.o' failed
make[2]: *** [CMakeFiles/lemondb.dir/db/Database.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/lemondb.dir/all' failed
make[1]: *** [CMakeFiles/lemondb.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
p2 - 4821
Language
CMake
Submit At
2022-11-04 20:44:44
Judged At
2022-11-04 20:44:44
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes