搜尋

首頁  >  問答  >  主體

centos7 mariadb10 編譯失敗。

The following tests FAILED:
 20 - pfs_instr_class (Not Run)
 21 - pfs_instr_class-oom (Not Run)
 22 - pfs_instr (Not Run)
 23 - pfs_instr-oom (Not Run)
 24 - pfs_account-oom (Not Run)
 25 - pfs_host-oom (Not Run)
 26 - pfs_timer (Not Run)
 27 - pfs_user-oom (Not Run)
 28 - pfs (Not Run)
 29 - ma_control_file (Not Run)
 30 - trnman (Not Run)
 31 - ma_test_loghandler (Not Run)
 32 - ma_test_loghandler_multigroup (Not Run)
 33 - ma_test_loghandler_multithread (Not Run)
 34 - ma_test_loghandler_pagecache (Not Run)
 35 - ma_test_loghandler_long (Not Run)
 36 - ma_test_loghandler_noflush (Not Run)
 37 - ma_test_loghandler_first_lsn (Not Run)
 38 - ma_test_loghandler_max_lsn (Not Run)
 39 - ma_test_loghandler_purge (Not Run)
 40 - ma_test_loghandler_readonly (Not Run)
 41 - ma_test_loghandler_nologs (Not Run)
 42 - ma_pagecache_single_1k (Not Run)
 43 - ma_pagecache_single_8k (Not Run)
 44 - ma_pagecache_single_64k (Not Run)
 45 - ma_pagecache_consist_1k (Not Run)
 46 - ma_pagecache_consist_64k (Not Run)
 47 - ma_pagecache_consist_1kHC (Not Run)
 48 - ma_pagecache_consist_64kHC (Not Run)
 49 - ma_pagecache_consist_1kRD (Not Run)
 50 - ma_pagecache_consist_64kRD (Not Run)
 51 - ma_pagecache_consist_1kWR (Not Run)
 52 - ma_pagecache_consist_64kWR (Not Run)
 53 - ma_pagecache_rwconsist_1k (Not Run)
 54 - ma_pagecache_rwconsist2_1k (Not Run)
 55 - dbug (Not Run)

Errors while running CTest
make: *** [test] Error 8
總是在編譯到這裡報錯
make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] Error

巴扎黑巴扎黑2805 天前1158

全部回覆(5)我來回復

  • 某草草

    某草草2017-04-25 09:03:28

    我也遇到了,很多人都沒找到根本原因。
    最後找出問題了,特別是在使用AWS或者阿里雲,會遇到這些情況,一般要么添加內存,或者弄個SWAP,這樣可以解決MEM不足的問題! !

    回覆
    0
  • phpcn_u1582

    phpcn_u15822017-04-25 09:03:28

    如果是阿里雲的ECS的話是內存不夠導致的,在mroonga編譯的地方會佔用較多內存,1G升級到2G就能編譯通過了。

    回覆
    0
  • PHP中文网

    PHP中文网2017-04-25 09:03:28

    資訊不夠多呀

    回覆
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-25 09:03:28

    我也遇到同樣的問題,CentOS編譯安裝時報的錯誤。

    [ 62%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o
    cc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] Error 4
    make[1]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all] Error 2
    make: *** [all] Error 2
    

    回覆
    0
  • 高洛峰

    高洛峰2017-04-25 09:03:28

    別人說是makefike的-Werror導致的,但是我去掉了很多地方這個參數,但是還是不行,求解
    下面是make出現的錯誤:

    Linking CXX shared module ha_spider.so
    [ 62%] Built target spider
    Scanning dependencies of target archive
    [ 62%] Building C object storage/archive/CMakeFiles/archive.dir/azio.c.o
    [ 62%] Building CXX object storage/archive/CMakeFiles/archive.dir/ha_archive.cc.o
    Linking CXX shared module ha_archive.so
    [ 62%] Built target archive
    Scanning dependencies of target libgroonga
    [ 62%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/com.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/command.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/ctx.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/ctx_impl_mrb.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building CXX object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/dat.cpp.o
    cc1plus: 警告:命令行选项“-Wno-pointer-sign”对 C/ObjC 是有效的,但对 C++ 无效
    cc1plus: 警告:命令行选项“-Wdeclaration-after-statement”对 C/ObjC 是有效的,但对 C++ 无效
    cc1plus: 警告:命令行选项“-Wbad-function-cast”对 C/ObjC 是有效的,但对 C++ 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/db.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building CXX object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/egn.cpp.o
    cc1plus: 警告:命令行选项“-Wno-pointer-sign”对 C/ObjC 是有效的,但对 C++ 无效
    cc1plus: 警告:命令行选项“-Wdeclaration-after-statement”对 C/ObjC 是有效的,但对 C++ 无效
    cc1plus: 警告:命令行选项“-Wbad-function-cast”对 C/ObjC 是有效的,但对 C++ 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/error.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    [ 63%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o
    cc1: 警告:命令行选项“-fimplicit-templates”对 C++/ObjC++ 是有效的,但对 C 无效
    /home/andyyan/download/mariadb-10.1.7/storage/mroonga/vendor/groonga/lib/expr.c: 在函数‘grn_expr_exec’中:
    /home/andyyan/download/mariadb-10.1.7/storage/mroonga/vendor/groonga/lib/expr.c:3351: 警告:由于数据类型范围限制,比较结果永远为假
    /home/andyyan/download/mariadb-10.1.7/storage/mroonga/vendor/groonga/lib/expr.c:3351: 警告:由于数据类型范围限制,比较结果永远为假
    /home/andyyan/download/mariadb-10.1.7/storage/mroonga/vendor/groonga/lib/expr.c:3363: 警告:由于数据类型范围限制,比较结果永远为假
    /home/andyyan/download/mariadb-10.1.7/storage/mroonga/vendor/groonga/lib/expr.c:3363: 警告:由于数据类型范围限制,比较结果永远为假
    cc: 内部错误:已杀死 (程序 cc1)
    请提交一份完整的错误报告。
    具体步骤请参见 <http://bugzilla.redhat.com/bugzilla>。
    make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] 错误 1
    make[1]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all] 错误 2
    make: *** [all] 错误 2
    

    回覆
    0
  • 取消回覆