mars xlog编译失败

gwo2fgha  于 5个月前  发布在  其他
关注(0)|答案(3)|浏览(46)

环境 m2 ,13.3 ,ndk16.1.4479499 cmake3.26.3

-- ==============config mars====================
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/astro/Astro/code/other/mars/mars/cmake_build/Android
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/debug.c.o
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/threading.c.o
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/zstd_common.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/error_private.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/fse_decompress.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/entropy_common.c.o
[ 18%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/xxhash.c.o
[ 25%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/pool.c.o
[ 31%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/fse_compress.c.o
[ 31%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/hist.c.o
[ 37%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/huf_compress.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_literals.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_sequences.c.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_double_fast.c.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_fast.c.o
[ 56%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_lazy.c.o
[ 56%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_ldm.c.o
[ 62%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_opt.c.o
[ 62%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstdmt_compress.c.o
[ 68%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress.c.o
[ 68%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_ddict.c.o
[ 75%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress.c.o
[ 75%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress_block.c.o
[ 81%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/cover.c.o
[ 81%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/divsufsort.c.o
[ 87%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/fastcover.c.o
[ 87%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/zdict.c.o
[ 93%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_common.c.o
[ 93%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_compress.c.o
[100%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_decompress.c.o
[100%] Linking C static library libzstd.a
[100%] Built target libzstd_static
[  1%] Building CXX object xlog/CMakeFiles/xlog.dir/src/appender.cc.o
[  2%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/atomic/src/lockpool.cpp.o
[  2%] Building C object comm/CMakeFiles/comm.dir/adler32.c.o
[  4%] Building CXX object xlog/CMakeFiles/xlog.dir/src/log_base_buffer.cc.o
[  4%] Building CXX object xlog/CMakeFiles/xlog.dir/src/formater.cc.o
[  5%] Building CXX object comm/CMakeFiles/comm.dir/alarm.cc.o
[  5%] Building CXX object xlog/CMakeFiles/xlog.dir/src/log_zlib_buffer.cc.o
[ 28%] Built target libzstd_static
[ 28%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/date_generators.cpp.o
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/log_base_buffer.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [comm/CMakeFiles/comm.dir/alarm.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/appender.cc.o] Error 1
make[3]: *** [comm/CMakeFiles/comm.dir/adler32.c.o] Error 1
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/log_zlib_buffer.cc.o] Error 1
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/formater.cc.o] Error 1
make[2]: *** [xlog/CMakeFiles/xlog.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object comm/CMakeFiles/comm.dir/anr.cc.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_month.cpp.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o
[ 33%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [comm/CMakeFiles/comm.dir/anr.cc.o] Error 1
make[2]: *** [comm/CMakeFiles/comm.dir/all] Error 2
[ 33%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/codecvt_error_category.cpp.o
[ 34%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/operations.cpp.o
[ 34%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path.cpp.o
[ 36%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path_traits.cpp.o
[ 36%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/portability.cpp.o
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/unique_path.cpp.o
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o
[ 39%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/windows_file_codecvt.cpp.o
[ 39%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/file_descriptor.cpp.o
[ 40%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/mapped_file.cpp.o
[ 40%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_collector.cpp.o
[ 42%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_debug_hooks.cpp.o
[ 42%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/system/src/error_code.cpp.o
[ 43%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/thread/src/future.cpp.o
[ 43%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/execution_context.cpp.o
[ 44%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/posix/stack_traits.cpp.o
[ 44%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/detail/coroutine_context.cpp.o
[ 46%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/exceptions.cpp.o
[ 46%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/posix/stack_traits.cpp.o
[ 47%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/jump_arm_aapcs_elf_gas.S.o
[ 47%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/make_arm_aapcs_elf_gas.S.o
[ 49%] Linking CXX static library libmars-boost.a
[ 49%] Built target mars-boost
make[1]: *** [CMakeFiles/marsxlog.dir/rule] Error 2
make: *** [marsxlog] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!
~~~
wz8daaqr

wz8daaqr1#

我这边编译倒是没有问题,就是想最小化集成,发现编译出来的.a文件 在其他项目中出现各种问题

n7taea2i

n7taea2i3#

环境 m2 ,13.3 ,ndk16.1.4479499 cmake3.26.3

-- ==============config mars====================
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/astro/Astro/code/other/mars/mars/cmake_build/Android
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/debug.c.o
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/threading.c.o
[  6%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/zstd_common.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/error_private.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/fse_decompress.c.o
[ 12%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/entropy_common.c.o
[ 18%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/xxhash.c.o
[ 25%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/pool.c.o
[ 31%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/fse_compress.c.o
[ 31%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/hist.c.o
[ 37%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/huf_compress.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_literals.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress.c.o
[ 43%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_sequences.c.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_double_fast.c.o
[ 50%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_fast.c.o
[ 56%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_lazy.c.o
[ 56%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_ldm.c.o
[ 62%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_opt.c.o
[ 62%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstdmt_compress.c.o
[ 68%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress.c.o
[ 68%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_ddict.c.o
[ 75%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress.c.o
[ 75%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress_block.c.o
[ 81%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/cover.c.o
[ 81%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/divsufsort.c.o
[ 87%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/fastcover.c.o
[ 87%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/zdict.c.o
[ 93%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_common.c.o
[ 93%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_compress.c.o
[100%] Building C object zstd/CMakeFiles/libzstd_static.dir/__/__/__/lib/deprecated/zbuff_decompress.c.o
[100%] Linking C static library libzstd.a
[100%] Built target libzstd_static
[  1%] Building CXX object xlog/CMakeFiles/xlog.dir/src/appender.cc.o
[  2%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/atomic/src/lockpool.cpp.o
[  2%] Building C object comm/CMakeFiles/comm.dir/adler32.c.o
[  4%] Building CXX object xlog/CMakeFiles/xlog.dir/src/log_base_buffer.cc.o
[  4%] Building CXX object xlog/CMakeFiles/xlog.dir/src/formater.cc.o
[  5%] Building CXX object comm/CMakeFiles/comm.dir/alarm.cc.o
[  5%] Building CXX object xlog/CMakeFiles/xlog.dir/src/log_zlib_buffer.cc.o
[ 28%] Built target libzstd_static
[ 28%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/date_generators.cpp.o
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/log_base_buffer.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [comm/CMakeFiles/comm.dir/alarm.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/appender.cc.o] Error 1
make[3]: *** [comm/CMakeFiles/comm.dir/adler32.c.o] Error 1
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/log_zlib_buffer.cc.o] Error 1
make[3]: *** [xlog/CMakeFiles/xlog.dir/src/formater.cc.o] Error 1
make[2]: *** [xlog/CMakeFiles/xlog.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object comm/CMakeFiles/comm.dir/anr.cc.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o
[ 30%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_month.cpp.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o
[ 31%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o
[ 33%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o
error: unknown warning option '-Werror=tautological-unsigned-zero-compare'
      [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Werror=tautological-type-limit-compare'
      [-Werror,-Wunknown-warning-option]
make[3]: *** [comm/CMakeFiles/comm.dir/anr.cc.o] Error 1
make[2]: *** [comm/CMakeFiles/comm.dir/all] Error 2
[ 33%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/codecvt_error_category.cpp.o
[ 34%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/operations.cpp.o
[ 34%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path.cpp.o
[ 36%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/path_traits.cpp.o
[ 36%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/portability.cpp.o
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/unique_path.cpp.o
[ 37%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o
[ 39%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/filesystem/src/windows_file_codecvt.cpp.o
[ 39%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/file_descriptor.cpp.o
[ 40%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/iostreams/src/mapped_file.cpp.o
[ 40%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_collector.cpp.o
[ 42%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/smart_ptr/src/sp_debug_hooks.cpp.o
[ 42%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/system/src/error_code.cpp.o
[ 43%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/thread/src/future.cpp.o
[ 43%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/execution_context.cpp.o
[ 44%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/context/src/posix/stack_traits.cpp.o
[ 44%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/detail/coroutine_context.cpp.o
[ 46%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/exceptions.cpp.o
[ 46%] Building CXX object boost/CMakeFiles/mars-boost.dir/libs/coroutine/src/posix/stack_traits.cpp.o
[ 47%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/jump_arm_aapcs_elf_gas.S.o
[ 47%] Building ASM object boost/CMakeFiles/mars-boost.dir/libs/context/src/asm/make_arm_aapcs_elf_gas.S.o
[ 49%] Linking CXX static library libmars-boost.a
[ 49%] Built target mars-boost
make[1]: *** [CMakeFiles/marsxlog.dir/rule] Error 2
make: *** [marsxlog] Error 2
!!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!
~~~

你好最后咋解决的呀

相关问题