miniob训练营的第一道题basic

miniob训练营的第一道题basic,是不是直接把代码推送到gitee就可以提测?如果这个都错了是不是布置的环境就有问题?

回答不完全正确

求细说。不太懂,也没有参考,搭环境都快要了半条命。 :scream:。环境要有问题真的快要废掉了。

你可以试一下,不是就清楚了吗

能构建成功一般环境没啥问题吧,不通过看给的输出结果对比

1 个赞

我basic也没过,编译失败
报错如下

compile failed,==1366==LeakSanitizer has encountered a fatal error.,==1366==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1,==1366==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc),CMake Error at /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:77 (message):,  Error running test executable.,,    Path: '/home/miniob/miniob_test/players/AntTech_SRMMFK/build/bin/pidfile_test',    Result: 1,    Output:,      ,,Call Stack (most recent call first):,  /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:173 (gtest_discover_tests_impl),,,make[2]: *** [bin/pidfile_test] Error 1,make[2]: *** Deleting file `bin/pidfile_test',make[1]: *** [unitest/CMakeFiles/pidfile_test.dir/all] Error 2,make[1]: *** Waiting for unfinished jobs....,==1377==LeakSanitizer has encountered a fatal error.,==1377==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1,==1377==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc),CMake Error at /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:77 (message):,  Error running test executable.,,    Path: '/home/miniob/miniob_test/players/AntTech_SRMMFK/build/bin/clog_test',    Result: 1,    Output:,      test_clog.,        test_clog,      ,,Call Stack (most recent call first):,  /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:173 (gtest_discover_tests_impl),,,make[2]: *** [bin/clog_test] Error 1,make[2]: *** Deleting file `bin/clog_test',make[1]: *** [unitest/CMakeFiles/clog_test.dir/all] Error 2,==1388==LeakSanitizer has encountered a fatal error.,==1388==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1,==1388==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc),CMake Error at /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:77 (message):,  Error running test executable.,,    Path: '/home/miniob/miniob_test/players/AntTech_SRMMFK/build/bin/record_manager_test',    Result: 1,    Output:,      test_record_page_handler.,        test_record_page_handler,        test_record_file_iterator,      ,,Call Stack (most recent call first):,  /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:173 (gtest_discover_tests_impl),,,make[2]: *** [bin/record_manager_test] Error 1,make[2]: *** Deleting file `bin/record_manager_test',make[1]: *** [unitest/CMakeFiles/record_manager_test.dir/all] Error 2,==1399==LeakSanitizer has encountered a fatal error.,==1399==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1,==1399==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc),CMake Error at /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:77 (message):,  Error running test executable.,,    Path: '/home/miniob/miniob_test/players/AntTech_SRMMFK/build/bin/persist_test',    Result: 1,    Output:,      test_persist.,        test_persist_file_io,      ,,Call Stack (most recent call first):,  /home/miniob/local/share/cmake-3.20/Modules/GoogleTestAddTests.cmake:173 (gtest_discover_tests_impl),,,make[2]: *** [bin/persist_test] Error 1,make[2]: *** Deleting file `bin/persist_test',make[1]: *** [unitest/CMakeFiles/persist_test.dir/all] Error 2,make: *** [all] Error 2,,failed to run make,compile failed

尝试过直接提交 oceanbase/miniob: MiniOB is one mini database, helping developers to learn how database works. (github.com)仓库也没通过,实验手册上说直接提交原生仓库都能通过basic

master分支一直在开发新功能,不是稳定分支,可以使用miniob_test分支,可以通过测试。