ztxz16 / fastllm

纯c++的全平台llm加速库,支持python调用,chatglm-6B级模型单卡可达10000+token / s,支持glm, llama, moss基座,手机端流畅运行
Apache License 2.0
3.3k stars 336 forks source link

centos 安装报错 #20

Open zhouyangtingwen opened 1 year ago

zhouyangtingwen commented 1 year ago

$ cd /opt/jtmodel/chatgpt-mi10/fastllm/build $ cmake ..

报错: -- USE_CUDA: OFF -- CMAKE_CXX_FLAGS -pthread --std=c++17 -O2 -march=native CMake Error at CMakeLists.txt:35 (target_link_libraries): Object library target "fastllm" may not link to anything.

-- Configuring incomplete, errors occurred! See also "/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeOutput.log".

zhouyangtingwen commented 1 year ago

cat /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeOutput.log The system is: Linux - 3.10.0-1160.24.1.el7.x86_64 - x86_64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ Build flags: Id flags:

The output was: 0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/3.6.2/CompilerIdCXX/a.out"

Determining if the CXX compiler works passed with the following output: Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_b56fa/fast" /usr/bin/gmake -f CMakeFiles/cmTC_b56fa.dir/build.make CMakeFiles/cmTC_b56fa.dir/build gmake[1]: Entering directory /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_b56fa.dir/testCXXCompiler.cxx.o /usr/bin/c++ -o CMakeFiles/cmTC_b56fa.dir/testCXXCompiler.cxx.o -c /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_b56fa /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b56fa.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/cmTC_b56fa.dir/testCXXCompiler.cxx.o -o cmTC_b56fa gmake[1]: Leaving directory/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'

Detecting CXX compiler ABI info compiled with the following output: Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_ade2f/fast" /usr/bin/gmake -f CMakeFiles/cmTC_ade2f.dir/build.make CMakeFiles/cmTC_ade2f.dir/build gmake[1]: Entering directory /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o /usr/bin/c++ -o CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake-3.6/Modules/CMakeCXXCompilerABI.cpp Linking CXX executable cmTC_ade2f /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ade2f.dir/link.txt --verbose=1 /usr/bin/c++ -v CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_ade2f Using built-in specs. COLLECT_GCC=/usr/bin/c++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/ LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_ade2f' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_ade2f /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o gmake[1]: Leaving directory/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'

Parsed CXX implicit link information from above output: link line regex: [^( |.[/])(ld|([^/]+-)?ld|collect2)[^/]*( |$)] ignore line: [Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/gmake" "cmTC_ade2f/fast"] ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_ade2f.dir/build.make CMakeFiles/cmTC_ade2f.dir/build] ignore line: [gmake[1]: Entering directory `/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'] ignore line: [Building CXX object CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o] ignore line: [/usr/bin/c++ -o CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake-3.6/Modules/CMakeCXXCompilerABI.cpp] ignore line: [Linking CXX executable cmTC_ade2f] ignore line: [/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ade2f.dir/link.txt --verbose=1] ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_ade2f ] ignore line: [Using built-in specs.] ignore line: [COLLECT_GCC=/usr/bin/c++] ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper] ignore line: [Target: x86_64-redhat-linux] ignore line: [Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux] ignore line: [Thread model: posix] ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ] ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/] ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_ade2f' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_ade2f /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o] arg [/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2] ==> ignore arg [--build-id] ==> ignore arg [--no-add-needed] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [--hash-style=gnu] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib64/ld-linux-x86-64.so.2] ==> ignore arg [-o] ==> ignore arg [cmTC_ade2f] ==> ignore arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o] ==> ignore arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] arg [-L/lib/../lib64] ==> dir [/lib/../lib64] arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] arg [CMakeFiles/cmTC_ade2f.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore arg [-lstdc++] ==> lib [stdc++] arg [-lm] ==> lib [m] arg [-lgcc_s] ==> lib [gcc_s] arg [-lgcc] ==> lib [gcc] arg [-lc] ==> lib [c] arg [-lgcc_s] ==> lib [gcc_s] arg [-lgcc] ==> lib [gcc] arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o] ==> ignore arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o] ==> ignore remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] remove lib [gcc] collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] ==> [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] ==> [/usr/lib64] collapse library dir [/lib/../lib64] ==> [/lib64] collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> [/usr/lib] implicit libs: [stdc++;m;c] implicit dirs: [/usr/lib/gcc/x86_64-redhat-linux/4.8.5;/usr/lib64;/lib64;/usr/lib] implicit fwks: []

Detecting CXX [-std=c++1y] compiler features compiled with the following output: Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_ade44/fast" /usr/bin/gmake -f CMakeFiles/cmTC_ade44.dir/build.make CMakeFiles/cmTC_ade44.dir/build gmake[1]: Entering directory /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ade44.dir/feature_tests.cxx.o /usr/bin/c++ -std=c++1y -o CMakeFiles/cmTC_ade44.dir/feature_tests.cxx.o -c /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_ade44 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ade44.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/cmTC_ade44.dir/feature_tests.cxx.o -o cmTC_ade44 gmake[1]: Leaving directory/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'

Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
Feature record: CXX_FEATURE:1cxx_alias_templates
Feature record: CXX_FEATURE:1cxx_alignas
Feature record: CXX_FEATURE:1cxx_alignof
Feature record: CXX_FEATURE:1cxx_attributes
Feature record: CXX_FEATURE:0cxx_attribute_deprecated
Feature record: CXX_FEATURE:1cxx_auto_type
Feature record: CXX_FEATURE:0cxx_binary_literals
Feature record: CXX_FEATURE:1cxx_constexpr
Feature record: CXX_FEATURE:0cxx_contextual_conversions
Feature record: CXX_FEATURE:1cxx_decltype
Feature record: CXX_FEATURE:0cxx_decltype_auto
Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
Feature record: CXX_FEATURE:1cxx_default_function_template_args
Feature record: CXX_FEATURE:1cxx_defaulted_functions
Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
Feature record: CXX_FEATURE:1cxx_delegating_constructors
Feature record: CXX_FEATURE:1cxx_deleted_functions
Feature record: CXX_FEATURE:0cxx_digit_separators
Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
Feature record: CXX_FEATURE:1cxx_explicit_conversions
Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
Feature record: CXX_FEATURE:1cxx_extern_templates
Feature record: CXX_FEATURE:1cxx_final
Feature record: CXX_FEATURE:1cxx_func_identifier
Feature record: CXX_FEATURE:1cxx_generalized_initializers
Feature record: CXX_FEATURE:0cxx_generic_lambdas
Feature record: CXX_FEATURE:1cxx_inheriting_constructors
Feature record: CXX_FEATURE:1cxx_inline_namespaces
Feature record: CXX_FEATURE:1cxx_lambdas
Feature record: CXX_FEATURE:0cxx_lambda_init_captures
Feature record: CXX_FEATURE:1cxx_local_type_template_args
Feature record: CXX_FEATURE:1cxx_long_long_type
Feature record: CXX_FEATURE:1cxx_noexcept
Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
Feature record: CXX_FEATURE:1cxx_nullptr
Feature record: CXX_FEATURE:1cxx_override
Feature record: CXX_FEATURE:1cxx_range_for
Feature record: CXX_FEATURE:1cxx_raw_string_literals
Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
Feature record: CXX_FEATURE:0cxx_return_type_deduction
Feature record: CXX_FEATURE:1cxx_right_angle_brackets
Feature record: CXX_FEATURE:1cxx_rvalue_references
Feature record: CXX_FEATURE:1cxx_sizeof_member
Feature record: CXX_FEATURE:1cxx_static_assert
Feature record: CXX_FEATURE:1cxx_strong_enums
Feature record: CXX_FEATURE:1cxx_template_template_parameters
Feature record: CXX_FEATURE:1cxx_thread_local
Feature record: CXX_FEATURE:1cxx_trailing_return_types
Feature record: CXX_FEATURE:1cxx_unicode_literals
Feature record: CXX_FEATURE:1cxx_uniform_initialization
Feature record: CXX_FEATURE:1cxx_unrestricted_unions
Feature record: CXX_FEATURE:1cxx_user_literals
Feature record: CXX_FEATURE:0cxx_variable_templates
Feature record: CXX_FEATURE:1cxx_variadic_macros
Feature record: CXX_FEATURE:1cxx_variadic_templates

Detecting CXX [-std=c++11] compiler features compiled with the following output: Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_3e64e/fast" /usr/bin/gmake -f CMakeFiles/cmTC_3e64e.dir/build.make CMakeFiles/cmTC_3e64e.dir/build gmake[1]: Entering directory /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_3e64e.dir/feature_tests.cxx.o /usr/bin/c++ -std=c++11 -o CMakeFiles/cmTC_3e64e.dir/feature_tests.cxx.o -c /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_3e64e /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3e64e.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/cmTC_3e64e.dir/feature_tests.cxx.o -o cmTC_3e64e gmake[1]: Leaving directory/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'

Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
Feature record: CXX_FEATURE:1cxx_alias_templates
Feature record: CXX_FEATURE:1cxx_alignas
Feature record: CXX_FEATURE:1cxx_alignof
Feature record: CXX_FEATURE:1cxx_attributes
Feature record: CXX_FEATURE:0cxx_attribute_deprecated
Feature record: CXX_FEATURE:1cxx_auto_type
Feature record: CXX_FEATURE:0cxx_binary_literals
Feature record: CXX_FEATURE:1cxx_constexpr
Feature record: CXX_FEATURE:0cxx_contextual_conversions
Feature record: CXX_FEATURE:1cxx_decltype
Feature record: CXX_FEATURE:0cxx_decltype_auto
Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
Feature record: CXX_FEATURE:1cxx_default_function_template_args
Feature record: CXX_FEATURE:1cxx_defaulted_functions
Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
Feature record: CXX_FEATURE:1cxx_delegating_constructors
Feature record: CXX_FEATURE:1cxx_deleted_functions
Feature record: CXX_FEATURE:0cxx_digit_separators
Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
Feature record: CXX_FEATURE:1cxx_explicit_conversions
Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
Feature record: CXX_FEATURE:1cxx_extern_templates
Feature record: CXX_FEATURE:1cxx_final
Feature record: CXX_FEATURE:1cxx_func_identifier
Feature record: CXX_FEATURE:1cxx_generalized_initializers
Feature record: CXX_FEATURE:0cxx_generic_lambdas
Feature record: CXX_FEATURE:1cxx_inheriting_constructors
Feature record: CXX_FEATURE:1cxx_inline_namespaces
Feature record: CXX_FEATURE:1cxx_lambdas
Feature record: CXX_FEATURE:0cxx_lambda_init_captures
Feature record: CXX_FEATURE:1cxx_local_type_template_args
Feature record: CXX_FEATURE:1cxx_long_long_type
Feature record: CXX_FEATURE:1cxx_noexcept
Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
Feature record: CXX_FEATURE:1cxx_nullptr
Feature record: CXX_FEATURE:1cxx_override
Feature record: CXX_FEATURE:1cxx_range_for
Feature record: CXX_FEATURE:1cxx_raw_string_literals
Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
Feature record: CXX_FEATURE:0cxx_return_type_deduction
Feature record: CXX_FEATURE:1cxx_right_angle_brackets
Feature record: CXX_FEATURE:1cxx_rvalue_references
Feature record: CXX_FEATURE:1cxx_sizeof_member
Feature record: CXX_FEATURE:1cxx_static_assert
Feature record: CXX_FEATURE:1cxx_strong_enums
Feature record: CXX_FEATURE:1cxx_template_template_parameters
Feature record: CXX_FEATURE:1cxx_thread_local
Feature record: CXX_FEATURE:1cxx_trailing_return_types
Feature record: CXX_FEATURE:1cxx_unicode_literals
Feature record: CXX_FEATURE:1cxx_uniform_initialization
Feature record: CXX_FEATURE:1cxx_unrestricted_unions
Feature record: CXX_FEATURE:1cxx_user_literals
Feature record: CXX_FEATURE:0cxx_variable_templates
Feature record: CXX_FEATURE:1cxx_variadic_macros
Feature record: CXX_FEATURE:1cxx_variadic_templates

Detecting CXX [-std=c++98] compiler features compiled with the following output: Change Dir: /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_19038/fast" /usr/bin/gmake -f CMakeFiles/cmTC_19038.dir/build.make CMakeFiles/cmTC_19038.dir/build gmake[1]: Entering directory /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_19038.dir/feature_tests.cxx.o /usr/bin/c++ -std=c++98 -o CMakeFiles/cmTC_19038.dir/feature_tests.cxx.o -c /opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/feature_tests.cxx Linking CXX executable cmTC_19038 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_19038.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/cmTC_19038.dir/feature_tests.cxx.o -o cmTC_19038 gmake[1]: Leaving directory/opt/jtmodel/chatgpt-mi10/fastllm/build/CMakeFiles/CMakeTmp'

Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
Feature record: CXX_FEATURE:0cxx_alias_templates
Feature record: CXX_FEATURE:0cxx_alignas
Feature record: CXX_FEATURE:0cxx_alignof
Feature record: CXX_FEATURE:0cxx_attributes
Feature record: CXX_FEATURE:0cxx_attribute_deprecated
Feature record: CXX_FEATURE:0cxx_auto_type
Feature record: CXX_FEATURE:0cxx_binary_literals
Feature record: CXX_FEATURE:0cxx_constexpr
Feature record: CXX_FEATURE:0cxx_contextual_conversions
Feature record: CXX_FEATURE:0cxx_decltype
Feature record: CXX_FEATURE:0cxx_decltype_auto
Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types
Feature record: CXX_FEATURE:0cxx_default_function_template_args
Feature record: CXX_FEATURE:0cxx_defaulted_functions
Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers
Feature record: CXX_FEATURE:0cxx_delegating_constructors
Feature record: CXX_FEATURE:0cxx_deleted_functions
Feature record: CXX_FEATURE:0cxx_digit_separators
Feature record: CXX_FEATURE:0cxx_enum_forward_declarations
Feature record: CXX_FEATURE:0cxx_explicit_conversions
Feature record: CXX_FEATURE:0cxx_extended_friend_declarations
Feature record: CXX_FEATURE:0cxx_extern_templates
Feature record: CXX_FEATURE:0cxx_final
Feature record: CXX_FEATURE:0cxx_func_identifier
Feature record: CXX_FEATURE:0cxx_generalized_initializers
Feature record: CXX_FEATURE:0cxx_generic_lambdas
Feature record: CXX_FEATURE:0cxx_inheriting_constructors
Feature record: CXX_FEATURE:0cxx_inline_namespaces
Feature record: CXX_FEATURE:0cxx_lambdas
Feature record: CXX_FEATURE:0cxx_lambda_init_captures
Feature record: CXX_FEATURE:0cxx_local_type_template_args
Feature record: CXX_FEATURE:0cxx_long_long_type
Feature record: CXX_FEATURE:0cxx_noexcept
Feature record: CXX_FEATURE:0cxx_nonstatic_member_init
Feature record: CXX_FEATURE:0cxx_nullptr
Feature record: CXX_FEATURE:0cxx_override
Feature record: CXX_FEATURE:0cxx_range_for
Feature record: CXX_FEATURE:0cxx_raw_string_literals
Feature record: CXX_FEATURE:0cxx_reference_qualified_functions
Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
Feature record: CXX_FEATURE:0cxx_return_type_deduction
Feature record: CXX_FEATURE:0cxx_right_angle_brackets
Feature record: CXX_FEATURE:0cxx_rvalue_references
Feature record: CXX_FEATURE:0cxx_sizeof_member
Feature record: CXX_FEATURE:0cxx_static_assert
Feature record: CXX_FEATURE:0cxx_strong_enums
Feature record: CXX_FEATURE:1cxx_template_template_parameters
Feature record: CXX_FEATURE:0cxx_thread_local
Feature record: CXX_FEATURE:0cxx_trailing_return_types
Feature record: CXX_FEATURE:0cxx_unicode_literals
Feature record: CXX_FEATURE:0cxx_uniform_initialization
Feature record: CXX_FEATURE:0cxx_unrestricted_unions
Feature record: CXX_FEATURE:0cxx_user_literals
Feature record: CXX_FEATURE:0cxx_variable_templates
Feature record: CXX_FEATURE:0cxx_variadic_macros
Feature record: CXX_FEATURE:0cxx_variadic_templates
jhmjhm commented 1 year ago

gcc的版本低了,升级到11.x就可以了

TylunasLi commented 1 year ago

gcc版本太低,亲测Centos 7可使用 scl 源的 devtoolset-8 在 c++14/c++17 上编译。

Wyfnnnnb commented 1 year ago

请教,已经试过 devtoolset-8/10 会报错:(glm2) [aiteam@VM-48-15-centos build]$ make -j [ 2%] Building CXX object CMakeFiles/fastllm.dir/src/model.cpp.o [ 5%] Building CXX object CMakeFiles/fastllm_tools.dir/src/device.cpp.o [ 10%] Building CXX object CMakeFiles/fastllm_tools.dir/src/fastllm.cpp.o [ 13%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cpu/cpudevice.cpp.o [ 13%] Building CXX object CMakeFiles/fastllm.dir/src/device.cpp.o [ 15%] Building CXX object CMakeFiles/fastllm.dir/src/fastllm.cpp.o [ 21%] Building CXX object CMakeFiles/fastllm_tools.dir/src/model.cpp.o [ 21%] Building CXX object CMakeFiles/fastllm.dir/src/models/chatglm.cpp.o [ 23%] Building CXX object CMakeFiles/fastllm_tools.dir/src/executor.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ [ 26%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cpu/cpudevicebatch.cpp.o [ 28%] Building CXX object CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevice.cpp.o [ 31%] Building CXX object CMakeFiles/fastllm.dir/src/models/qwen.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:104: CMakeFiles/fastllm.dir/src/model.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 34%] Building CXX object CMakeFiles/fastllm.dir/src/models/moss.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:76: CMakeFiles/fastllm.dir/src/fastllm.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:90: CMakeFiles/fastllm_tools.dir/src/device.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:90: CMakeFiles/fastllm.dir/src/device.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:76: CMakeFiles/fastllm_tools.dir/src/fastllm.cpp.o] Error 1 [ 36%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cuda/cudadevice.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:132: CMakeFiles/fastllm.dir/src/devices/cpu/cpudevice.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ [ 39%] Building CXX object CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevicebatch.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:160: CMakeFiles/fastllm.dir/src/models/chatglm.cpp.o] Error 1 [ 42%] Building CXX object CMakeFiles/fastllm.dir/src/models/llama.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ [ 47%] Building CXX object CMakeFiles/fastllm.dir/src/executor.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:174: CMakeFiles/fastllm.dir/src/models/moss.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ [ 47%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cuda/cudadevicebatch.cpp.o make[2]: [CMakeFiles/fastllm_tools.dir/build.make:104: CMakeFiles/fastllm_tools.dir/src/model.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm.dir/build.make:202: CMakeFiles/fastllm.dir/src/models/qwen.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:118: CMakeFiles/fastllm_tools.dir/src/executor.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm_tools.dir/build.make:132: CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevice.cpp.o] Error 1 [ 50%] Building CXX object CMakeFiles/fastllm.dir/src/models/basellm.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ [ 52%] Building CXX object CMakeFiles/fastllm_tools.dir/src/models/chatglm.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:146: CMakeFiles/fastllm.dir/src/devices/cpu/cpudevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:188: CMakeFiles/fastllm.dir/src/models/llama.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm.dir/build.make:230: CMakeFiles/fastllm.dir/src/devices/cuda/cudadevice.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm_tools.dir/build.make:146: CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:244: CMakeFiles/fastllm.dir/src/devices/cuda/cudadevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:118: CMakeFiles/fastllm.dir/src/executor.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:216: CMakeFiles/fastllm.dir/src/models/basellm.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:93: CMakeFiles/fastllm.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:160: CMakeFiles/fastllm_tools.dir/src/models/chatglm.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:223: CMakeFiles/fastllm_tools.dir/all] Error 2 make: [Makefile:91: all] Error 2

LivinLuo1993 commented 1 year ago

请教,已经试过 devtoolset-8/10 会报错:(glm2) [aiteam@VM-48-15-centos build]$ make -j [ 2%] Building CXX object CMakeFiles/fastllm.dir/src/model.cpp.o [ 5%] Building CXX object CMakeFiles/fastllm_tools.dir/src/device.cpp.o [ 10%] Building CXX object CMakeFiles/fastllm_tools.dir/src/fastllm.cpp.o [ 13%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cpu/cpudevice.cpp.o [ 13%] Building CXX object CMakeFiles/fastllm.dir/src/device.cpp.o [ 15%] Building CXX object CMakeFiles/fastllm.dir/src/fastllm.cpp.o [ 21%] Building CXX object CMakeFiles/fastllm_tools.dir/src/model.cpp.o [ 21%] Building CXX object CMakeFiles/fastllm.dir/src/models/chatglm.cpp.o [ 23%] Building CXX object CMakeFiles/fastllm_tools.dir/src/executor.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ [ 26%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cpu/cpudevicebatch.cpp.o [ 28%] Building CXX object CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevice.cpp.o [ 31%] Building CXX object CMakeFiles/fastllm.dir/src/models/qwen.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:104: CMakeFiles/fastllm.dir/src/model.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 34%] Building CXX object CMakeFiles/fastllm.dir/src/models/moss.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:76: CMakeFiles/fastllm.dir/src/fastllm.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:90: CMakeFiles/fastllm_tools.dir/src/device.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:90: CMakeFiles/fastllm.dir/src/device.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:76: CMakeFiles/fastllm_tools.dir/src/fastllm.cpp.o] Error 1 [ 36%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cuda/cudadevice.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:132: CMakeFiles/fastllm.dir/src/devices/cpu/cpudevice.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ [ 39%] Building CXX object CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevicebatch.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:160: CMakeFiles/fastllm.dir/src/models/chatglm.cpp.o] Error 1 [ 42%] Building CXX object CMakeFiles/fastllm.dir/src/models/llama.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ [ 47%] Building CXX object CMakeFiles/fastllm.dir/src/executor.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:174: CMakeFiles/fastllm.dir/src/models/moss.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ [ 47%] Building CXX object CMakeFiles/fastllm.dir/src/devices/cuda/cudadevicebatch.cpp.o make[2]: [CMakeFiles/fastllm_tools.dir/build.make:104: CMakeFiles/fastllm_tools.dir/src/model.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm.dir/build.make:202: CMakeFiles/fastllm.dir/src/models/qwen.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:118: CMakeFiles/fastllm_tools.dir/src/executor.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm_tools.dir/build.make:132: CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevice.cpp.o] Error 1 [ 50%] Building CXX object CMakeFiles/fastllm.dir/src/models/basellm.cpp.o c++: error: unrecognized command line option ‘--std=c++17’ [ 52%] Building CXX object CMakeFiles/fastllm_tools.dir/src/models/chatglm.cpp.o make[2]: [CMakeFiles/fastllm.dir/build.make:146: CMakeFiles/fastllm.dir/src/devices/cpu/cpudevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:188: CMakeFiles/fastllm.dir/src/models/llama.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm.dir/build.make:230: CMakeFiles/fastllm.dir/src/devices/cuda/cudadevice.cpp.o] Error 1 make[2]: [CMakeFiles/fastllm_tools.dir/build.make:146: CMakeFiles/fastllm_tools.dir/src/devices/cpu/cpudevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:244: CMakeFiles/fastllm.dir/src/devices/cuda/cudadevicebatch.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:118: CMakeFiles/fastllm.dir/src/executor.cpp.o] Error 1 c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm.dir/build.make:216: CMakeFiles/fastllm.dir/src/models/basellm.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:93: CMakeFiles/fastllm.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... c++: error: unrecognized command line option ‘--std=c++17’ make[2]: [CMakeFiles/fastllm_tools.dir/build.make:160: CMakeFiles/fastllm_tools.dir/src/models/chatglm.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:223: CMakeFiles/fastllm_tools.dir/all] Error 2 make: [Makefile:91: all] Error 2

大佬,请问你解决了吗,我也是遇到一样得问题,更换gcc 8\9\10\11都不行