Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot be compiled successfully #2

Open
GEJXD opened this issue Jul 31, 2024 · 0 comments
Open

Cannot be compiled successfully #2

GEJXD opened this issue Jul 31, 2024 · 0 comments

Comments

@GEJXD
Copy link

GEJXD commented Jul 31, 2024

Can't compile successfully on linux

env:

cmake 3.30.1
clang 18.1.8

logs:

-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Welcome to simpledb 
Version: 1.0.0.0

-- Compiler: /usr/bin/c++ Clang 
-- System: Linux 6.10.2-zen1-1-zen x86_64
-- System: NUMBER_OF_LOGICAL_CORES;NUMBER_OF_PHYSICAL_CORES: 16;8
-- System: HOSTNAME;FQDN: GE76-Raider;GE76-Raider
-- System: AVAILABLE_VIRTUAL_MEMORY;TOTAL_VIRTUAL_MEMORY: 32713;32767
-- System: AVAILABLE_PHYSICAL_MEMORY;TOTAL_PHYSICAL_MEMORY: 28195;31796
-- System: IS_64BIT;HAS_IA64: 1;0
-- System: HAS_FPU;HAS_MMX;HAS_MMX_PLUS: 1;1;0
-- System: HAS_SSE;HAS_SSE2;HAS_SSE_FP;HAS_SSE_MMX: 1;1;0;0
-- System: HAS_AMD_3DNOW;HAS_AMD_3DNOW_PLUS: 0;0
-- System: HAS_SERIAL_NUMBER;PROCESSOR_SERIAL_NUMBER: 0;
-- System: PROCESSOR_NAME;PROCESSOR_DESCRIPTION: Unknown P6 family;8 core 11th Gen Intel(R) Core(TM) i9-11980HK @ 2.60GHz
-- System: OS_NAME;OS_RELEASE;OS_VERSION;OS_PLATFORM: Linux;6.10.2-zen1-1-zen;#1 ZEN SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:32 +0000;x86_64
-- CMAKE_BUILD_TYPE: DEBUG
-- LOG_LEVEL: 1 (ERROR)
CMake Deprecation Warning at build/_deps/src/googletest/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at build/_deps/src/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at build/_deps/src/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning (dev) at build/_deps/src/googletest/googletest/cmake/internal_utils.cmake:243 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  build/_deps/src/googletest/googletest/CMakeLists.txt:91 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- [FOUND] googletest (https://github.com/google/googletest.git release-1.10.0 2019-10-03)
-- [ADDED] format and check-format (/usr/bin/clang-format)
-- [ADDED] check-tidy (/usr/bin/clang-tidy)
-- Configuring done (4.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/JXD/Project/simpledb/build
[  1%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/buffer/buffermanager.cpp.o
[  1%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/file/blockid.cpp.o
[  2%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/file/filemanager.cpp.o
[  3%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/file/page.cpp.o
[  4%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/btree/btpage.cpp.o
[  5%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/btree/btreedir.cpp.o
[  5%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/btree/btreeindex.cpp.o
[  6%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/btree/btreeleaf.cpp.o
[  7%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/btree/direntry.cpp.o
[  8%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/hash/hashindex.cpp.o
[  8%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/planner/indexjoinplan.cpp.o
[  9%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/planner/indexselectplan.cpp.o
[ 10%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/planner/indexupdateplanner.cpp.o
[ 11%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/query/indexjoinscan.cpp.o
[ 11%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/index/query/indexselectscan.cpp.o
[ 12%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/connectionadapter.cpp.o
[ 13%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/driveradapter.cpp.o
[ 14%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/embedded/embeddedconnection.cpp.o
[ 14%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/embedded/embeddeddriver.cpp.o
[ 15%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/embedded/embeddedmetadata.cpp.o
[ 16%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/embedded/embeddedresultset.cpp.o
[ 17%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/embedded/embeddedstatement.cpp.o
[ 18%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/resultsetadapter.cpp.o
[ 18%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/resultsetmetadataadapter.cpp.o
[ 19%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/jdbc/statementadapter.cpp.o
[ 20%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/log/logmanager.cpp.o
[ 21%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/materialize/groupbyplan.cpp.o
[ 21%] Building CXX object CMakeFiles/simpledb_objlib.dir/src/materialize/groupbyscan.cpp.o
/home/JXD/Project/simpledb/src/materialize/groupbyscan.cpp: In member function ‘virtual simpledb::constant simpledb::group_by_scan::get_val(const std::string&)’:
/home/JXD/Project/simpledb/src/materialize/groupbyscan.cpp:52:14: Error:‘runtime_error’ is not a member of ‘std’
   52 |   throw std::runtime_error("field " + pFldName + " not found.");
      |              ^~~~~~~~~~~~~
/home/JXD/Project/simpledb/src/materialize/groupbyscan.cpp:4:1: 附注:‘std::runtime_error’ is defined in header ‘<stdexcept>’; this is probably fixable by adding ‘#include <stdexcept>’
    3 | #include "materialize/groupbyscan.hpp"
  +++ |+#include <stdexcept>
    4 | 
/home/JXD/Project/simpledb/src/materialize/groupbyscan.cpp:53:1: 错误:在有返回值的函数中,控制流程到达函数尾 [-Werror=return-type]
   53 | }
      | ^
cc1plus:All warnings are treated as errors
make[2]: *** [CMakeFiles/simpledb_objlib.dir/build.make:454:CMakeFiles/simpledb_objlib.dir/src/materialize/groupbyscan.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:147:CMakeFiles/simpledb_objlib.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant