Giter Club home page Giter Club logo

taos-tools's People

Contributors

afwerar avatar changxiaoqiang avatar chiyitao avatar codacy-badger avatar codering avatar danielclow avatar dapan1121 avatar duankuanjun avatar ericyangpan avatar facetosea avatar fansehep avatar gccgdb1234 avatar huajingyun01 avatar huskar-t avatar jiacy-jcy avatar jiajingbin avatar jtao1735 avatar kailixu avatar plum-lihui avatar sangshuduo avatar stephenkgu avatar taos-support avatar tomchon avatar wangmm0220 avatar xiaopingcs avatar zhaoyanggh avatar zitsen avatar zyyang90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taos-tools's Issues

taosdump导入数据非常慢

tdengine版本:2.6.0.6
服务器:2核8G

1个超级表,子表6w

使用taosdump导出数据,然后再使用taosdump导入数据。
数据量大概在12G左右
导入数据用了将近30个小时

taosdump 数据增量备份问题

环境:
系统:CentOS7
taos版本: 2.4.0.30

问题描述:
我想使用taosdump进行数据备份, 每天备份一次,每次只备份前一天的数据, 使用工具的命令如下:
taosdump -uroot
-pxxxxx -hlocalhost
-o /taosbackup/2022/12/28
--start-time --databases=xxx
--start-time='2022-12-28T00:00:00.000+0800'
--end-time='2022-12-29T00:00:00.000+0800'
使用该命令后导出来的数据有20多个G
但是我们的每天的增量也没有那么多,导出成csv文件的话也就i几百兆,最多1G
感觉--start-time --end-time 没有起到作用
这是导数据的过程中的一个截图
e04cd70b1d5e6d16a93982cc6812bae
请问这是什么原因呢?是我哪个参数格式不正确么?

unreadable code

驱动版本:taos-jdbcdriver-3.0.1-dist
使用dbweaver22.0.0时,使用restful驱动时,元数据显示异常,表名等都是十六进制的字符

jdbc方式,元数据正常
image
再次使用restful驱动查看时,元数据显示正常

taosdump运行报错

安装的是最新2.1.3版面本
系统 CENTOS7.9

运行

[root@tdengine1 bin]# taosdump -V
taosdump: symbol lookup error: taosdump: undefined symbol: inflateReset

备份报同样错误

[root@tdengine1 ~]# taosdump -o /mnt/tdenginebak/ljmtest/instance20220906 -T 4 ljmtest instance --debug
taosdump: symbol lookup error: taosdump: undefined symbol: inflateReset

taosdump导出文件报错

报错信息
zkj@:2022-10-10$ taosdump -A -L

========== arguments config =========
taosdump version 2.2.4
host: (null)
user: root
port: 0
outpath:
inpath:
resultFile: ./dump_result.txt
all_databases: true
databases: false
databasesSeq: (null)
schemaonly: false
with_property: true
answer_yes: false
avro codec: snappy
data_batch: 16383
thread_num: 8
allow_sys: false
escape_char: true
loose_mode: true
isDumpIn: false
arg_list_len: 0
OK: Database: db_26 exists
OK: Database: db_18 exists
OK: Database: db_49 exists
OK: Database: db_50 exists
OK: Database: db_12 exists
OK: Database: db_44 exists
OK: Database: db_48 exists
OK: Database: db_45 exists
OK: Database: db_14 exists
OK: Database: db_41 exists
OK: Database: db_13 exists
OK: Database: db_1 exists
OK: Database: db_47 exists
OK: Database: db_25 exists
OK: Database: db_43 exists
OK: Database: db_2 exists
OK: Database: db_11 exists
OK: Database: db_21 exists
OK: Database: db_40 exists
OK: Database: db_15 exists
OK: Database: db_9 exists
OK: Database: db_46 exists
OK: Database: db_17 exists
OK: Database: db_42 exists
OK: Database: db_27 exists
INFO: Start to dump out database: db_26
INFO: Getting tables' number of super table (logrecord) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_26's logrecord's total normal table count: 0
INFO: Getting tables' number of super table (properties_p3p0do07q12) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_26's properties_p3p0do07q12's total normal table count: 0
WARN: dumpNTablesOfDbNative() LN10846, database: db_26 has 0 tables
OK: Database db_26 dumped
INFO: Start to dump out database: db_18
INFO: Getting tables' number of super table (scenehistory) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_18's scenehistory's total normal table count: 0
INFO: Getting tables' number of super table (device_log_p98p4sjny19) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_18's device_log_p98p4sjny19's total normal table count: 0
INFO: Getting tables' number of super table (smsrecord) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_18's smsrecord's total normal table count: 0
INFO: Getting tables' number of super table (statecount) ...
INFO: dumpNtbOfStbByThreads() LN10417, db_18's statecount's total normal table count: 1
INFO: connection: 0x5591a2ba1a80 is dumping out schema of sub-table(s) of statecount
INFO: Getting tables' number of super table (statecount) ...
INFO: The number of tables of statecount is 1!
INFO: connection 0x5591a2ba1a80 fetched 100% of statecount' tbname
OK: total 1 sub-table's name of stable: statecount fetched
INFO: The number of tables of statecount be filled is 1!
INFO: connection 0x5591a2ba1a80 is dumping out schema:0% of statecount
ERROR: getTableTagValueNativeV2() LN2780, failed to run command <SELECT typeFROM db_18.statecount_dfcc3114eba075be491b45ed4932f800 LIMIT 1>, taos: 0x5591a2ba1a80, code: 0x80000216, reason: syntax error near ".statecount_dfcc3114eba075be491b45ed4932f800
INFO: connection 0x5591a2ba1a80 is dumping out schema:100% of statecount
OK: total 1 sub table(s) of stable: statecount dumped
ERROR: Invalid time precision: .
ERROR: dumpNtbOfStbByThreads() LN10548, get precision error
超级表结构
image

taosdump -V
taosdump version 2.2.4

数据库版本 :
Welcome to the TDengine shell from Linux, Client Version:2.2.2.10
Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.

taosdump 2.3.2 Restore incomplete

同一个交换机下的网络,服务端在linux宿主机(centos8),备份到了windows(win 11),

服务端版本:3.0.2.0
客户端版本:TDengine-client-3.0.2.0-Windows-x64.exe
taosdump version 2.3.2

性能问题:
30多亿条数据,备份了18个小时(可以通过添加线程数,缩短时间)

还原问题:
不到1分钟,完成了,实际上是中断了
329ebbdff8a8e12d2cfb3581c3fe775

-- 数据库 1个
-- 超级表
select count() from information_schema.ins_stables; --113 还原后113
select count(
) from information_schema.ins_tables; --120030 还原后120030
-- 有数据的超级表
select count() from loctube.event_tdstore_gps; -- 555972745 3.75s 还原后1527167,重新尝试1530934
select count(
) from loctube.event_tdstore_isactitem; --1158279812 1.85s 还原后773084,重新尝试769818
select count() from loctube.event_tdstore_status; -- 555972746 35.833s 3.323s 3.308s 还原后0,重新尝试0
select count(
) from loctube.event_tdstore_generallocation; --555958629 1.974s 811ms 还原后1525260,重新尝试1527709
select count(*) from loctube.device_log_tdstore; -- 579594237 1.57s 还原后1420280,重新尝试1417324

不支持带小数点的表名导入

导出的表名中有小数点,导入时报错
ERROR: Failed to execute taos_stmt_set_tbname(JFRD_Y1GAF01:ACCUM_CF007.OUT).reason: The table name cannot contain '.'

导出脚本如下:
sudo taosdump -o /home/tdengine/install-package/export/avro/test d_qjny_jfrq JFRD_Y1GAF01:ACCUM_CF007.OUT JFRD_QDL_DI_GL1:12PES.CIN

导入脚本如下:
sudo taosdump -e -i /home/wltdengine/install-package/export/avro/test

build failed

  • cat /proc/version
    Linux version 4.18.0-372.13.1.el8_6.x86_64 ([email protected]) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-10) (GCC)) #1 SMP Wed Jun 29 17:21:09 UTC 2022

  • [root@node1 build]# gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-redhat-linux
    Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 8.5.0 20210514 (Red Hat 8.5.0-17) (GCC)

  • step

dnf install epel-release
dnf install 'dnf-command(config-manager)'
dnf config-manager --set-enabled PowerTools
sudo dnf install -y zlib-devel xz-devel snappy-devel jansson jansson-devel pkgconfig libatomic libstdc++-static openssl-devel gawk

git clone https://github.com/taosdata/taos-tools
cd taos-tools
git submodule update --init --recursive
mkdir build
cd build
cmake ..
make
sudo make install

  • log
62%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/CUError.c.o
[ 64%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/MessageHandlers.c.o
[ 65%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/MyMem.c.o
[ 67%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/TestDB.c.o
[ 68%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/TestRun.c.o
[ 70%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Framework/Util.c.o
[ 71%] Building C object deps/CUnit/CMakeFiles/cunit.dir/Sources/Console/Console.c.o
[ 73%] Linking C static library libcunit.a
[ 73%] Built target cunit
[ 74%] Building C object deps/toolscJson/CMakeFiles/toolscJson.dir/src/toolscJson.c.o
[ 76%] Linking C static library libtoolscJson.a
[ 76%] Built target toolscJson
[ 77%] Building C object src/CMakeFiles/taosBenchmark.dir/benchMain.c.o
[ 79%] Building C object src/CMakeFiles/taosBenchmark.dir/benchTmq.c.o
/oceanbase/taos-tools/src/benchTmq.c:16:5: error: unknown type name ‘tmq_t’
     tmq_t* tmq;
     ^~~~~
/oceanbase/taos-tools/src/benchTmq.c:54:8: error: unknown type name ‘tmq_list_t’
 static tmq_list_t * buildTopicList(int size) {
        ^~~~~~~~~~
/oceanbase/taos-tools/src/benchTmq.c: In function ‘buildTopicList’:
/oceanbase/taos-tools/src/benchTmq.c:55:5: error: unknown type name ‘tmq_list_t’; did you mean ‘va_list’?
     tmq_list_t * topic_list = tmq_list_new();
     ^~~~~~~~~~
     va_list
/oceanbase/taos-tools/src/benchTmq.c:55:31: warning: implicit declaration of function ‘tmq_list_new’; did you mean ‘SYS_listen’? [-Wimplicit-function-declaration]
     tmq_list_t * topic_list = tmq_list_new();
                               ^~~~~~~~~~~~
                               SYS_listen
/oceanbase/taos-tools/src/benchTmq.c:55:31: warning: initialization of ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/oceanbase/taos-tools/src/benchTmq.c:59:9: warning: implicit declaration of function ‘tmq_list_append’; did you mean ‘inet6_opt_append’? [-Wimplicit-function-declaration]
         tmq_list_append(topic_list, buf);
         ^~~~~~~~~~~~~~~
         inet6_opt_append
/oceanbase/taos-tools/src/benchTmq.c: In function ‘tmqConsume’:
/oceanbase/taos-tools/src/benchTmq.c:72:33: warning: implicit declaration of function ‘tmq_consumer_poll’; did you mean ‘tmqConsume’? [-Wimplicit-function-declaration]
         TAOS_RES * tmqMessage = tmq_consumer_poll(
                                 ^~~~~~~~~~~~~~~~~
                                 tmqConsume
/oceanbase/taos-tools/src/benchTmq.c:72:33: warning: initialization of ‘TAOS_RES *’ {aka ‘void *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/oceanbase/taos-tools/src/benchTmq.c:83:24: warning: implicit declaration of function ‘taos_fetch_raw_block’; did you mean ‘taos_fetch_block’? [-Wimplicit-function-declaration]
             int code = taos_fetch_raw_block(tmqMessage, &numOfRows, &data);
                        ^~~~~~~~~~~~~~~~~~~~
                        taos_fetch_block
/oceanbase/taos-tools/src/benchTmq.c:93:16: warning: implicit declaration of function ‘tmq_consumer_close’; did you mean ‘tmqConsume’? [-Wimplicit-function-declaration]
     int code = tmq_consumer_close(pThreadInfo->tmq);
                ^~~~~~~~~~~~~~~~~~
                tmqConsume
In file included from /oceanbase/taos-tools/src/benchTmq.c:13:
/oceanbase/taos-tools/src/benchTmq.c:95:54: warning: implicit declaration of function ‘tmq_err2str’; did you mean ‘taos_errstr’? [-Wimplicit-function-declaration]
         errorPrint("failed to close consumer: %s\n", tmq_err2str(code));
                                                      ^~~~~~~~~~~
/oceanbase/taos-tools/src/../inc/bench.h:265:33: note: in definition of macro ‘errorPrint’
         fprintf(stderr, "" fmt, __VA_ARGS__);                               \
                                 ^~~~~~~~~~~
/oceanbase/taos-tools/src/../inc/bench.h:265:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
         fprintf(stderr, "" fmt, __VA_ARGS__);                               \
                         ^~
/oceanbase/taos-tools/src/benchTmq.c:95:9: note: in expansion of macro ‘errorPrint’
         errorPrint("failed to close consumer: %s\n", tmq_err2str(code));
         ^~~~~~~~~~
/oceanbase/taos-tools/src/benchTmq.c:95:48: note: format string is defined here
         errorPrint("failed to close consumer: %s\n", tmq_err2str(code));
                                               ~^
                                               %d
In file included from /oceanbase/taos-tools/src/benchTmq.c:13:
/oceanbase/taos-tools/src/../inc/bench.h:273:52: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
             fprintf(g_arguments->fpOfInsertResult, "" fmt, __VA_ARGS__);    \
                                                    ^~
/oceanbase/taos-tools/src/benchTmq.c:95:9: note: in expansion of macro ‘errorPrint’
         errorPrint("failed to close consumer: %s\n", tmq_err2str(code));
         ^~~~~~~~~~
/oceanbase/taos-tools/src/benchTmq.c:95:48: note: format string is defined here
         errorPrint("failed to close consumer: %s\n", tmq_err2str(code));
                                               ~^
                                               %d
/oceanbase/taos-tools/src/benchTmq.c: In function ‘subscribeTestProcess’:
/oceanbase/taos-tools/src/benchTmq.c:110:5: error: unknown type name ‘tmq_list_t’; did you mean ‘va_list’?
     tmq_list_t * topic_list =
     ^~~~~~~~~~
     va_list
/oceanbase/taos-tools/src/benchTmq.c:129:9: error: unknown type name ‘tmq_conf_t’
         tmq_conf_t * conf = tmq_conf_new();
         ^~~~~~~~~~
/oceanbase/taos-tools/src/benchTmq.c:129:29: warning: implicit declaration of function ‘tmq_conf_new’; did you mean ‘tmqConsume’? [-Wimplicit-function-declaration]
         tmq_conf_t * conf = tmq_conf_new();
                             ^~~~~~~~~~~~
                             tmqConsume
/oceanbase/taos-tools/src/benchTmq.c:129:29: warning: initialization of ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/oceanbase/taos-tools/src/benchTmq.c:133:9: warning: implicit declaration of function ‘tmq_conf_set’; did you mean ‘tmqConsume’? [-Wimplicit-function-declaration]
         tmq_conf_set(conf, "group.id", groupid);
         ^~~~~~~~~~~~
         tmqConsume
/oceanbase/taos-tools/src/benchTmq.c:136:28: warning: implicit declaration of function ‘tmq_consumer_new’; did you mean ‘tmqConsume’? [-Wimplicit-function-declaration]
         pThreadInfo->tmq = tmq_consumer_new(conf, NULL, 0);
                            ^~~~~~~~~~~~~~~~
                            tmqConsume
/oceanbase/taos-tools/src/benchTmq.c:136:26: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
         pThreadInfo->tmq = tmq_consumer_new(conf, NULL, 0);
                          ^
/oceanbase/taos-tools/src/benchTmq.c:137:9: warning: implicit declaration of function ‘tmq_conf_destroy’; did you mean ‘SYS_io_destroy’? [-Wimplicit-function-declaration]
         tmq_conf_destroy(conf);
         ^~~~~~~~~~~~~~~~
         SYS_io_destroy

restore not finish since 1162283680 items in apply queue

Bug Description
A clear and concise description of what the bug is.
windows10环境,使用taosBenchmark -f C:\TDengine\insert.json后,中断taosBenchmark,关闭taosd,重启taosd,打印部分日志后,一直输出restore not finish since 1162283680 items in apply queue。

To Reproduce
Steps to reproduce the behavior:

  1. 启动taosd
  2. 启动taosBenchmark
  3. 收入taosBenchmark -f C:\TDengine\insert.json
  4. 运行几分钟后关闭taosBenchmark
  5. 几分钟后关闭taosd
  6. 重启taosd

Expected Behavior
A clear and concise description of what you expected to happen.
期望能正常恢复使用
Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: windows10
  • Memory: 6/16GB 38%
  • CPU:
  • current Disk Space: C盘26G可用
  • TDengine Version:3.0.1.4

Additional Context
Add any other context about the problem here.
{ "filetype": "insert", "cfgdir": "C:\\TDengine\\cfg", "host": "127.0.0.1", "port": 6030, "user": "root", "password": "taosdata", "connection_pool_size": 8, "thread_count": 4, "create_table_thread_count": 7, "result_file": "./insert_res.txt", "confirm_parameter_prompt": "no", "insert_interval": 0, "interlace_rows": 100, "num_of_records_per_req": 100, "prepared_rand": 10000, "chinese": "no", "databases": [ { "dbinfo": { "name": "loctube", "drop": "yes", "replica": 1, "precision": "ms", "keep": 3650, "minRows": 100, "maxRows": 4096, "comp": 2 }, "super_tables": [ { "name": "properties_tdr", "child_table_exists": "no", "childtable_count": 200000, "childtable_prefix": "d", "escape_character": "yes", "auto_create_table": "no", "batch_create_tbl_num": 5, "data_source": "rand", "insert_mode": "taosc", "non_stop_mode": "no", "line_protocol": "line", "insert_rows": 1000, "childtable_limit": 10, "childtable_offset": 100, "interlace_rows": 0, "insert_interval": 0, "partial_col_num": 0, "disorder_ratio": 0, "disorder_range": 1000, "timestamp_step": 10, "start_timestamp": "2020-10-01 00:00:00.000", "sample_format": "csv", "sample_file": "./sample.csv", "use_sample_ts": "no", "tags_file": "", "columns": [ { "type": "FLOAT", "name": "current", "count": 1, "max": 12, "min": 8 }, { "type": "INT", "name": "voltage", "max": 225, "min": 215 }, { "type": "FLOAT", "name": "phase", "max": 1, "min": 0 } ], "tags": [ { "type": "TINYINT", "name": "groupid", "max": 10, "min": 1 }, { "name": "location", "type": "BINARY", "len": 16, "values": ["San Francisco", "Los Angles", "San Diego", "San Jose", "Palo Alto", "Campbell", "Mountain View", "Sunnyvale", "Santa Clara", "Cupertino"] } ] } ] } ] }

日志:
10/02 17:55:50.892000 00006604 VND vgId:6, add 1 new created tables into query table list
10/02 17:55:50.894000 00010412 MND trans:36, redoAction:1 is sent, msgType:drop-vnode numOfEps:1 inUse:0 ep:0-XTZJ-20211204UZ:6030
10/02 17:55:50.895000 00012908 DND vgId:6, start to drop vnode
10/02 17:55:50.899000 00012908 DND successed to write C:\TDengine\data\vnode\vnodes.json, numOfVnodes:2
10/02 17:55:50.900000 00012908 SYN only one replica, cannot leader transfer
10/02 17:55:50.902000 00013332 DND ERROR vgId:6, msg:0000022145446890 failed to put into vnode queue since Invalid Vgroup ID, type:create-table qtype:4, gtid:0x0:0x0
10/02 17:55:50.906000 00010412 MND trans:36, redoAction:2 is sent, msgType:drop-vnode numOfEps:1 inUse:0 ep:0-XTZJ-20211204UZ:6030
10/02 17:55:50.914000 00013332 VND vgId:6, restore not finish since 1162283680 items in apply queue
10/02 17:55:50.917000 00010412 MND trans:36, 1 of 3 actions executed
10/02 17:55:50.923000 00010412 MND trans:36, stage keep on redoAction since Action in progress
10/02 17:55:50.931000 00013332 VND vgId:6, restore not finish since 1162283680 items in apply queue
10/02 17:55:50.944000 00013332 VND vgId:6, restore not finish since 1162283680 items in apply queue

电脑待机后,第二早上启动电脑重新启动了taosd,已经正常了。也没有loctube库。
推断是反复启动taosBenchmarkdrop库被删除。
请问这中间是什么问题?缓存,队列?

第二天执行
taosBenchmark -f C:\TDengine\insert.json
taosBenchmark -f C:\TDengine\insert.json
并没有按照配置文件中创建对应的loctube,而是依旧使用默认配置。

aarch64 编译报错

[ 93%] Building C object src/CMakeFiles/taosdump.dir/taosdump.c.o
/root/taos-tools/src/taosdump.c: In function ‘dumpANormalTableNotBelong’:
/root/taos-tools/src/taosdump.c:7784:9: error: argument 2 null where non-null expected [-Werror=nonnull]
         fprintf(fp, "%s", tmpBuffer);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/taos-tools/src/taosdump.c:7784:9: note: in a call to built-in function ‘__builtin_fputs’
/root/taos-tools/src/taosdump.c:7796:13: error: argument 4 null where non-null expected [-Werror=nonnull]
             fprintf(fp, ";\n");
             ^~~~~~~~~~~~~~~~~~
/root/taos-tools/src/taosdump.c:7796:13: note: in a call to built-in function ‘__builtin_fwrite’
/root/taos-tools/src/taosdump.c:7803:5: error: argument 2 null where non-null expected [-Werror=nonnull]
     fprintf(fp, "\n");
     ^~~~~~~~~~~~~~~~~
/root/taos-tools/src/taosdump.c:7803:5: note: in a call to built-in function ‘__builtin_fputc’
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/taosdump.dir/build.make:63: src/CMakeFiles/taosdump.dir/taosdump.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:418: src/CMakeFiles/taosdump.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
[root@jumpserver build]# uname -i
aarch64
[root@jumpserver build]# uname -a
Linux jumpserver 4.19.90-23.8.v2101.ky10.aarch64 #1 SMP Mon May 17 17:07:38 CST 2021 aarch64 aarch64 aarch64 GNU/Linux

os:  银河麒麟V10
version:
             [root@jumpserver taos-tools]# cat VERSION 
             taosbenchmark-3.1.12
             taosdump-2.4.8
             2.4.12

新版dump工具指定时间参数

软件信息:
Tdengine 版本:2.4.0.4
taos-tool版本:1.1.0

系统硬件信息:
Centos7
内存:30G
CPU:Intel(R) Xeon(R) Silver 4210R CPU @ 2.40GHz

错误描述:

#!/bin/expect

set timeout 30
spawn taosdump -c /etc/taos/taos.cfg -o /data/taosExportData/temp/a2022-01-27/dynamic -D gc_dynamic_data -S 2022-01-2700:00:00.000+0800 -E 2022-01-2800:00:00.000+0800 -B 100 -T 20
expect "Enter password: "
send "taosdata\r"
interact

执行此dump语句的时候时间解析有问题
f22ba55d25200bf7135dc0c4956c3bc

=====================================================================

[root@node1 temp]# expect exportTaosDynamic.sh
spawn taosdump -c /etc/taos/taos.cfg -o /data/taosExportData/temp/a2022-01-27/dynamic -D gc_dynamic_data -S '2022-01-2700:00:00.000+0800' -E '2022-01-2800:00:00.000+0800' -B 100 -T 20
====== arguments config ======
host: (null)
user: root
password: taosdata
port: 0
outpath: /data/taosExportData/temp/a2022-01-27/dynamic/
inpath:
resultFile: ./dump_result.txt
all_databases: false
databases: 1
databasesSeq: gc_dynamic_data
schemaonly: false
with_property: true
answer_yes: false
avro codec: snappy
start_time: -9223372036854775806
human readable start time: 2022-01-2700:00:00.000+080
end_time: 9223372036854775807
human readable end time: 2022-01-2800:00:00.000+080
precision: ms
data_batch: 100
max_sql_len: 65480
thread_num: 20
allow_sys: 0
abort: 0
isDumpIn: 0
arg_list_len: 0
debug_print: 0

start_time 与endtime 转换的时间有问题吧 2022-01-27T00:00:00.000+0800 这种中间加T的也是这样 包括直接用13位时间戳也会有问题

编译taos-tools时failed

问题:在源码编译TDengine时发现avro编译出错,所以过来提下问题希望能解答,需要安装的一些安装包都安装好了

系统:Ubuntu18.04 X86_64环境
uname -a
Linux nvm-desktop 5.4.0-109-generic #123~18.04.1-Ubuntu SMP Fri Apr 8 09:48:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

详细描述:
在我运行完cmake .. 后执行make命令,发现进度在28%时,libsnappy.a找不到函数定义,后续报了一堆错误,感觉是libavro.a没有链接成功,但不知道怎么改

以下是详细输出:

cmake ..

-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
 Enabled deflate codec
-- Checking for module 'snappy'
--   Found snappy, version 1.1.7
 Enabled snappy codec
-- Checking for module 'liblzma'
--   Found liblzma, version 5.2.2
 Enabled lzma codec
-- Checking for module 'jansson>=2.3'
--   Found jansson, version 2.11
 jansson found
-- Performing Test HAS_NO_FORMAT_TRUNCATION
-- Performing Test HAS_NO_FORMAT_TRUNCATION - Success
C compiler: GNU
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file sched.h
-- Looking for include file sched.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for close
-- Looking for close - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for open
-- Looking for open - found
-- Looking for read
-- Looking for read - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of long long
-- Check size of long long - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of __int32
-- Check size of __int32 - failed
-- Check size of long
-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of __uint32
-- Check size of __uint32 - failed
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of __uint16
-- Check size of __uint16 - failed
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of __uint8
-- Check size of __uint8 - failed
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of SSIZE_T
-- Check size of SSIZE_T - failed
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoq
-- Looking for strtoq - found
-- Looking for _strtoi64
-- Looking for _strtoi64 - not found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Performing Test HAVE_INLINE
-- Performing Test HAVE_INLINE - Success
-- Performing Test HAVE___INLINE
-- Performing Test HAVE___INLINE - Success
-- Performing Test HAVE___INLINE__
-- Performing Test HAVE___INLINE__ - Success
-- Performing Test HAVE_SYNC_BUILTINS
-- Performing Test HAVE_SYNC_BUILTINS - Success
-- Performing Test HAVE_ATOMIC_BUILTINS
-- Performing Test HAVE_ATOMIC_BUILTINS - Success
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for zlibVersion in z
-- Looking for zlibVersion in z - found
-- Looking for lzo1x_1_15_compress in lzo2
-- Looking for lzo1x_1_15_compress in lzo2 - not found
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2
-- Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed
-- Performing Test HAVE_CLANG_MAVX
-- Performing Test HAVE_CLANG_MAVX - Success
-- Performing Test HAVE_CLANG_MBMI2
-- Performing Test HAVE_CLANG_MBMI2 - Success
-- Performing Test HAVE_BUILTIN_EXPECT
-- Performing Test HAVE_BUILTIN_EXPECT - Success
-- Performing Test HAVE_BUILTIN_CTZ
-- Performing Test HAVE_BUILTIN_CTZ - Success
-- Performing Test SNAPPY_HAVE_SSSE3
-- Performing Test SNAPPY_HAVE_SSSE3 - Failed
-- Performing Test SNAPPY_HAVE_BMI2
-- Performing Test SNAPPY_HAVE_BMI2 - Failed
-- Looking for mmap
-- Looking for mmap - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Found Git: /usr/bin/git (found version "2.17.1")
Taos tools tag: 1.4.5

taos-tools tag:1.4.5
taosdump's latest commit in short is:4dd3f85
taosbenchmark's latest commit in short is:717f5aa
taosdump's status is:
taosbenchmark's status is:
 RELEASE mode use static avro library to link for release
libstdc++.a path:/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvm/neidongfu/taos-tools/build

make

Scanning dependencies of target apache-avro
[  1%] Creating directories for 'apache-avro'
[  2%] No download step for 'apache-avro'
[  3%] No patch step for 'apache-avro'
[  4%] No update step for 'apache-avro'
[  5%] Performing configure step for 'apache-avro'
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
Enabled deflate codec
-- Found Snappy: /usr/local/lib/libsnappy.a
Enabled snappy codec
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'liblzma'
--   Found liblzma, version 5.2.2
Enabled lzma codec
-- Checking for module 'jansson>=2.3'
--   Found jansson, version 2.11
-- Searching for asciidoc...
CMake Warning at docs/CMakeLists.txt:51 (message):
  asciidoc and/or source-highlight not found.  HTML documentation will *NOT*
  be built.


-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvm/neidongfu/taos-tools/build/deps/avro/src/apache-avro-build
[  6%] Performing build step for 'apache-avro'
Scanning dependencies of target avro-static
[  1%] Building C object src/CMakeFiles/avro-static.dir/allocation.c.o
[  2%] Building C object src/CMakeFiles/avro-static.dir/array.c.o
[  3%] Building C object src/CMakeFiles/avro-static.dir/codec.c.o
[  3%] Building C object src/CMakeFiles/avro-static.dir/consumer.c.o
[  4%] Building C object src/CMakeFiles/avro-static.dir/consume-binary.c.o
[  5%] Building C object src/CMakeFiles/avro-static.dir/datafile.c.o
[  6%] Building C object src/CMakeFiles/avro-static.dir/datum.c.o
[  6%] Building C object src/CMakeFiles/avro-static.dir/datum_equal.c.o
[  7%] Building C object src/CMakeFiles/avro-static.dir/datum_read.c.o
[  8%] Building C object src/CMakeFiles/avro-static.dir/datum_size.c.o
[  9%] Building C object src/CMakeFiles/avro-static.dir/datum_skip.c.o
[  9%] Building C object src/CMakeFiles/avro-static.dir/datum_validate.c.o
[ 10%] Building C object src/CMakeFiles/avro-static.dir/datum_value.c.o
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/datum_value.c: In function ‘avro_datum_value_get_type’:
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/datum_value.c:86:2: warning: #warning "Bug: EINVAL is not of type avro_type_t." [-Wcpp]
 #warning "Bug: EINVAL is not of type avro_type_t."
  ^~~~~~~
[ 11%] Building C object src/CMakeFiles/avro-static.dir/datum_write.c.o
[ 12%] Building C object src/CMakeFiles/avro-static.dir/dump.c.o
[ 12%] Building C object src/CMakeFiles/avro-static.dir/encoding_binary.c.o
[ 13%] Building C object src/CMakeFiles/avro-static.dir/errors.c.o
[ 14%] Building C object src/CMakeFiles/avro-static.dir/generic.c.o
[ 15%] Building C object src/CMakeFiles/avro-static.dir/io.c.o
[ 15%] Building C object src/CMakeFiles/avro-static.dir/map.c.o
[ 16%] Building C object src/CMakeFiles/avro-static.dir/memoize.c.o
[ 17%] Building C object src/CMakeFiles/avro-static.dir/resolved-reader.c.o
[ 18%] Building C object src/CMakeFiles/avro-static.dir/resolved-writer.c.o
[ 18%] Building C object src/CMakeFiles/avro-static.dir/resolver.c.o
[ 19%] Building C object src/CMakeFiles/avro-static.dir/schema.c.o
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/schema.c: In function ‘avro_schema_from_json_t’:
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/schema.c:882:3: warning: #warning "Bug: '0' is not of type avro_type_t." [-Wcpp]
  #warning "Bug: '0' is not of type avro_type_t."
   ^~~~~~~
[ 20%] Building C object src/CMakeFiles/avro-static.dir/schema_equal.c.o
[ 21%] Building C object src/CMakeFiles/avro-static.dir/st.c.o
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/st.c: In function ‘st_foreach’:
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/st.c:467:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
     if (!tmp) {
        ^
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/st.c:476:4: note: here
    case ST_CONTINUE:
    ^~~~
[ 21%] Building C object src/CMakeFiles/avro-static.dir/string.c.o
[ 22%] Building C object src/CMakeFiles/avro-static.dir/value.c.o
[ 23%] Building C object src/CMakeFiles/avro-static.dir/value-hash.c.o
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/value-hash.c: In function ‘hash_buffer’:
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/value-hash.c:109:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
   case 3: k1 ^= tail[2] << 16;
           ~~~^~~~~~~~~~~~~~~~
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/value-hash.c:110:3: note: here
   case 2: k1 ^= tail[1] << 8;
   ^~~~
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/value-hash.c:110:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
   case 2: k1 ^= tail[1] << 8;
           ~~~^~~~~~~~~~~~~~~
/home/nvm/neidongfu/taos-tools/deps/avro/lang/c/src/value-hash.c:111:3: note: here
   case 1: k1 ^= tail[0];
   ^~~~
[ 24%] Building C object src/CMakeFiles/avro-static.dir/value-json.c.o
[ 24%] Building C object src/CMakeFiles/avro-static.dir/value-read.c.o
[ 25%] Building C object src/CMakeFiles/avro-static.dir/value-sizeof.c.o
[ 26%] Building C object src/CMakeFiles/avro-static.dir/value-write.c.o
[ 26%] Building C object src/CMakeFiles/avro-static.dir/wrapped-buffer.c.o
[ 27%] Linking C static library libavro.a
[ 27%] Built target avro-static
Scanning dependencies of target avrocat
[ 27%] Building C object src/CMakeFiles/avrocat.dir/avrocat.c.o
[ 28%] Linking C executable avrocat
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::internal::WorkingMemory::WorkingMemory(unsigned long)':
snappy.cc:(.text+0x81d): undefined reference to `std::allocator<char>::allocator()'
snappy.cc:(.text+0x84f): undefined reference to `std::allocator<char>::~allocator()'
snappy.cc:(.text+0x8af): undefined reference to `std::allocator<char>::~allocator()'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::internal::WorkingMemory::~WorkingMemory()':
snappy.cc:(.text+0x8ed): undefined reference to `std::allocator<char>::allocator()'
snappy.cc:(.text+0x917): undefined reference to `std::allocator<char>::~allocator()'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::Uncompress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
snappy.cc:(.text+0x1bc0): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::max_size() const'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::Compress(char const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
snappy.cc:(.text+0x1e71): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::STLStringResizeUninitialized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long)':
snappy.cc:(.text._ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm[_ZN6snappy28STLStringResizeUninitializedEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm]+0x1f): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::string_as_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x23): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::empty() const'
snappy.cc:(.text._ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6snappy15string_as_arrayEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::SnappySinkAllocator::Allocate(int)':
snappy.cc:(.text._ZN6snappy19SnappySinkAllocator8AllocateEi[_ZN6snappy19SnappySinkAllocator8AllocateEi]+0x2e): undefined reference to `operator new[](unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::SnappySinkAllocator::Deleter(void*, char const*, unsigned long)':
snappy.cc:(.text._ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm[_ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm]+0x23): undefined reference to `operator delete[](void*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<char>::allocate(unsigned long, void const*)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv]+0x2c): undefined reference to `std::__throw_bad_alloc()'
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv]+0x38): undefined reference to `operator new(unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcm[_ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcm]+0x1c): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `void std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> >::_M_realloc_insert<snappy::SnappySinkAllocator::Datablock const&>(__gnu_cxx::__normal_iterator<snappy::SnappySinkAllocator::Datablock*, std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> > >, snappy::SnappySinkAllocator::Datablock const&)':
snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0x1ec): undefined reference to `__cxa_begin_catch'
snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0x254): undefined reference to `__cxa_rethrow'
snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0x25c): undefined reference to `__cxa_end_catch'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> >::_M_check_len(unsigned long, char const*) const':
snappy.cc:(.text._ZNKSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE12_M_check_lenEmPKc[_ZNKSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE12_M_check_lenEmPKc]+0x5b): undefined reference to `std::__throw_length_error(char const*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<snappy::SnappySinkAllocator::Datablock>::deallocate(snappy::SnappySinkAllocator::Datablock*, unsigned long)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE10deallocateEPS3_m[_ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE10deallocateEPS3_m]+0x1c): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<snappy::SnappySinkAllocator::Datablock>::allocate(unsigned long, void const*)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE8allocateEmPKv]+0x2c): undefined reference to `std::__throw_bad_alloc()'
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIN6snappy19SnappySinkAllocator9DatablockEE8allocateEmPKv]+0x3c): undefined reference to `operator new(unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<char*>::deallocate(char**, unsigned long)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIPcE10deallocateEPS1_m[_ZN9__gnu_cxx13new_allocatorIPcE10deallocateEPS1_m]+0x1c): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `snappy::SnappySinkAllocator::Datablock* std::__uninitialized_copy<false>::__uninit_copy<std::move_iterator<snappy::SnappySinkAllocator::Datablock*>, snappy::SnappySinkAllocator::Datablock*>(std::move_iterator<snappy::SnappySinkAllocator::Datablock*>, std::move_iterator<snappy::SnappySinkAllocator::Datablock*>, snappy::SnappySinkAllocator::Datablock*)':
snappy.cc:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_]+0x77): undefined reference to `__cxa_begin_catch'
snappy.cc:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_]+0x8f): undefined reference to `__cxa_rethrow'
snappy.cc:(.text._ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_[_ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPN6snappy19SnappySinkAllocator9DatablockEES6_EET0_T_S9_S8_]+0x97): undefined reference to `__cxa_end_catch'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `void std::vector<char*, std::allocator<char*> >::_M_realloc_insert<char* const&>(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&)':
snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_[_ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_]+0x1ee): undefined reference to `__cxa_begin_catch'
snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_[_ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_]+0x257): undefined reference to `__cxa_rethrow'
snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_[_ZNSt6vectorIPcSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_]+0x25f): undefined reference to `__cxa_end_catch'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `std::vector<char*, std::allocator<char*> >::_M_check_len(unsigned long, char const*) const':
snappy.cc:(.text._ZNKSt6vectorIPcSaIS0_EE12_M_check_lenEmPKc[_ZNKSt6vectorIPcSaIS0_EE12_M_check_lenEmPKc]+0x5b): undefined reference to `std::__throw_length_error(char const*)'
/usr/local/lib/libsnappy.a(snappy.cc.o): In function `__gnu_cxx::new_allocator<char*>::allocate(unsigned long, void const*)':
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIPcE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIPcE8allocateEmPKv]+0x2c): undefined reference to `std::__throw_bad_alloc()'
snappy.cc:(.text._ZN9__gnu_cxx13new_allocatorIPcE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorIPcE8allocateEmPKv]+0x3c): undefined reference to `operator new(unsigned long)'
/usr/local/lib/libsnappy.a(snappy.cc.o):(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o): In function `snappy::Source::~Source()':
snappy-sinksource.cc:(.text+0x3a): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o): In function `snappy::Sink::~Sink()':
snappy-sinksource.cc:(.text+0x7a): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o): In function `snappy::ByteArraySource::~ByteArraySource()':
snappy-sinksource.cc:(.text+0x162): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o): In function `snappy::UncheckedByteArraySink::~UncheckedByteArraySink()':
snappy-sinksource.cc:(.text+0x228): undefined reference to `operator delete(void*)'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTVN6snappy4SinkE[_ZTVN6snappy4SinkE]+0x20): undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x20): undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x28): undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x30): undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy22UncheckedByteArraySinkE[_ZTIN6snappy22UncheckedByteArraySinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy15ByteArraySourceE[_ZTIN6snappy15ByteArraySourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy6SourceE[_ZTIN6snappy6SourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/local/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy4SinkE[_ZTIN6snappy4SinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
collect2: error: ld returned 1 exit status
src/CMakeFiles/avrocat.dir/build.make:97: recipe for target 'src/avrocat' failed
make[5]: *** [src/avrocat] Error 1
CMakeFiles/Makefile2:127: recipe for target 'src/CMakeFiles/avrocat.dir/all' failed
make[4]: *** [src/CMakeFiles/avrocat.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make[3]: *** [all] Error 2
deps/CMakeFiles/apache-avro.dir/build.make:110: recipe for target 'deps/avro/src/apache-avro-stamp/apache-avro-build' failed
make[2]: *** [deps/avro/src/apache-avro-stamp/apache-avro-build] Error 2
CMakeFiles/Makefile2:96: recipe for target 'deps/CMakeFiles/apache-avro.dir/all' failed
make[1]: *** [deps/CMakeFiles/apache-avro.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

哦对,在这台服务器上安装cmake时,有一个提示,是
libcurl.so.4: no version information available
我通过
sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/local/lib/libcurl.so.4
解决了,不知道会不会有影响

很感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.