payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/taosdata/TDengine/issues/485","repository_url":"https://api.github.com/repos/taosdata/TDengine","labels_url":"https://api.github.com/repos/taosdata/TDengine/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/taosdata/TDengine/issues/485/comments","events_url":"https://api.github.com/repos/taosdata/TDengine/issues/485/events","html_url":"https://github.com/taosdata/TDengine/issues/485","id":490999538,"node_id":"MDU6SXNzdWU0OTA5OTk1Mzg=","number":485,"title":"移植TDengine到32位ARM上","user":{"login":"subjectxbj","id":3634101,"node_id":"MDQ6VXNlcjM2MzQxMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/3634101?v=4","gravatar_id":"","url":"https://api.github.com/users/subjectxbj","html_url":"https://github.com/subjectxbj","followers_url":"https://api.github.com/users/subjectxbj/followers","following_url":"https://api.github.com/users/subjectxbj/following{/other_user}","gists_url":"https://api.github.com/users/subjectxbj/gists{/gist_id}","starred_url":"https://api.github.com/users/subjectxbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subjectxbj/subscriptions","organizations_url":"https://api.github.com/users/subjectxbj/orgs","repos_url":"https://api.github.com/users/subjectxbj/repos","events_url":"https://api.github.com/users/subjectxbj/events{/privacy}","received_events_url":"https://api.github.com/users/subjectxbj/received_events","type":"User","site_admin":false},"labels":[{"id":1446234731,"node_id":"MDU6TGFiZWwxNDQ2MjM0NzMx","url":"https://api.github.com/repos/taosdata/TDengine/labels/help%20wanted","name":"help wanted","color":"008672","default":true},{"id":1446234737,"node_id":"MDU6TGFiZWwxNDQ2MjM0NzM3","url":"https://api.github.com/repos/taosdata/TDengine/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-09T09:59:37Z","updated_at":"2019-09-09T09:59:37Z","closed_at":null,"author_association":"NONE","body":"花了一天时间移植TDengine到32位ARM系统上，基于musl libc.\r\n\r\n现在taosd跑起来了\r\n···\r\n[develop] ~/TDengine/build/build/bin # uname -a\r\nLinux develop 4.4.60 #2 SMP PREEMPT Wed Sep 4 19:24:03 UTC 2019 armv7l Linux\r\n\r\n[develop] ~/TDengine/build/build/bin # ./taosd &\r\n[develop] ~/TDengine/build/build/bin # 09/09 09:28:31.289221 76f584d8 ERROR UTL open file:/proc/3649/io failed\r\n09/09 09:28:31.289285 76f584d8 UTL timezone not configured, set to system default: (UTC, +0000)\r\n09/09 09:28:31.289306 76f584d8 UTL locale not configured, set to system default:C.UTF-8\r\n09/09 09:28:31.289325 76f584d8 UTL charset not configured, set to system default:UTF-8\r\n09/09 09:28:31.289448 76f584d8 UTL    taos config & system info:\r\n09/09 09:28:31.289464 76f584d8 UTL ==================================\r\n09/09 09:28:31.289479 76f584d8 UTL  internalIp:             192.168.1.215\r\n09/09 09:28:31.289501 76f584d8 UTL  serverIp:               0.0.0.0\r\n09/09 09:28:31.289515 76f584d8 UTL  localIp:                0.0.0.0\r\n09/09 09:28:31.289533 76f584d8 UTL  httpIp:                 0.0.0.0\r\n09/09 09:28:31.289548 76f584d8 UTL  httpPort:               6020\r\n09/09 09:28:31.289567 76f584d8 UTL  mgmtShellPort:          6030\r\n09/09 09:28:31.289581 76f584d8 UTL  vnodeShellPort:         6035\r\n09/09 09:28:31.289599 76f584d8 UTL  configDir:              /etc/taos\r\n09/09 09:28:31.289613 76f584d8 UTL  dataDir:                /var/lib/taos\r\n09/09 09:28:31.289630 76f584d8 UTL  logDir:                 /var/log/taos\r\n09/09 09:28:31.289644 76f584d8 UTL  scriptDir:              /etc/taos\r\n09/09 09:28:31.289658 76f584d8 UTL  numOfThreadsPerCore:    1.000000\r\n09/09 09:28:31.289676 76f584d8 UTL  ratioOfQueryThreads:    0.500000\r\n09/09 09:28:31.289693 76f584d8 UTL  numOfVnodesPerCore:     8\r\n09/09 09:28:31.289707 76f584d8 UTL  numOfTotalVnodes:       0\r\n09/09 09:28:31.289723 76f584d8 UTL  tables:                 1000\r\n09/09 09:28:31.289737 76f584d8 UTL  cache:                  16384(byte)\r\n09/09 09:28:31.289753 76f584d8 UTL  rows:                   4096\r\n09/09 09:28:31.289768 76f584d8 UTL  fileBlockMinPercent:    0.050000\r\n09/09 09:28:31.289783 76f584d8 UTL  ablocks:                4\r\n09/09 09:28:31.289799 76f584d8 UTL  tblocks:                100\r\n09/09 09:28:31.289813 76f584d8 UTL  monitorInterval:        30(s)\r\n09/09 09:28:31.289829 76f584d8 UTL  rpcTimer:               300(ms)\r\n09/09 09:28:31.289843 76f584d8 UTL  rpcMaxTime:             600(s)\r\n09/09 09:28:31.289859 76f584d8 UTL  ctime:                  3600(s)\r\n09/09 09:28:31.289873 76f584d8 UTL  statusInterval:         1(s)\r\n09/09 09:28:31.289889 76f584d8 UTL  shellActivityTimer:     3(s)\r\n09/09 09:28:31.289903 76f584d8 UTL  meterMetaKeepTimer:     7200(s)\r\n09/09 09:28:31.289919 76f584d8 UTL  metricMetaKeepTimer:    600(s)\r\n09/09 09:28:31.289932 76f584d8 UTL  maxUsers:               1000\r\n09/09 09:28:31.289948 76f584d8 UTL  maxDbs:                 1000\r\n09/09 09:28:31.289962 76f584d8 UTL  maxTables:              650000\r\n09/09 09:28:31.289978 76f584d8 UTL  maxVGroups:             1000\r\n09/09 09:28:31.289992 76f584d8 UTL  minSlidingTime:         10(ms)\r\n09/09 09:28:31.290008 76f584d8 UTL  minIntervalTime:        10(ms)\r\n09/09 09:28:31.290021 76f584d8 UTL  maxStreamCompDelay:     20000(ms)\r\n09/09 09:28:31.290035 76f584d8 UTL  maxFirstStreamCompDelay:10000(ms)\r\n09/09 09:28:31.290049 76f584d8 UTL  retryStreamCompDelay:   10(ms)\r\n09/09 09:28:31.290064 76f584d8 UTL  clog:                   1\r\n09/09 09:28:31.290078 76f584d8 UTL  comp:                   2\r\n09/09 09:28:31.290093 76f584d8 UTL  days:                   10\r\n09/09 09:28:31.290106 76f584d8 UTL  keep:                   3650\r\n09/09 09:28:31.290122 76f584d8 UTL  defaultDB:\r\n09/09 09:28:31.290135 76f584d8 UTL  defaultUser:            root\r\n09/09 09:28:31.290150 76f584d8 UTL  timezone:                (UTC, +0000)\r\n09/09 09:28:31.290165 76f584d8 UTL  locale:                 C.UTF-8\r\n09/09 09:28:31.290180 76f584d8 UTL  charset:                UTF-8\r\n09/09 09:28:31.290193 76f584d8 UTL  maxShellConns:          2000\r\n09/09 09:28:31.290209 76f584d8 UTL  maxMeterConnections:    10000\r\n09/09 09:28:31.290223 76f584d8 UTL  maxMgmtConnections:     2000\r\n09/09 09:28:31.290239 76f584d8 UTL  maxVnodeConnections:    10000\r\n09/09 09:28:31.290252 76f584d8 UTL  minimalLogDirGB:        0.100000(GB)\r\n09/09 09:28:31.290270 76f584d8 UTL  minimalTmpDirGB:        0.100000(GB)\r\n09/09 09:28:31.290289 76f584d8 UTL  minimalDataDirGB:       0.500000(GB)\r\n09/09 09:28:31.290313 76f584d8 UTL  enableHttp:             1\r\n09/09 09:28:31.290331 76f584d8 UTL  enableMonitor:          1\r\n09/09 09:28:31.290345 76f584d8 UTL  httpCacheSessions:      100\r\n09/09 09:28:31.290358 76f584d8 UTL  telegrafUseFieldNum:    0\r\n09/09 09:28:31.290373 76f584d8 UTL  httpMaxThreads:         2\r\n09/09 09:28:31.290387 76f584d8 UTL  httpEnableCompress:     0\r\n09/09 09:28:31.290402 76f584d8 UTL  numOfLogLines:          10000000\r\n09/09 09:28:31.290416 76f584d8 UTL  asyncLog:               1\r\n09/09 09:28:31.290431 76f584d8 UTL  debugFlag:              131\r\n09/09 09:28:31.290445 76f584d8 UTL  mDebugFlag:             135\r\n09/09 09:28:31.290458 76f584d8 UTL  dDebugFlag:             131\r\n09/09 09:28:31.290472 76f584d8 UTL  sdbDebugFlag:           135\r\n09/09 09:28:31.290485 76f584d8 UTL  taosDebugFlag:          131\r\n09/09 09:28:31.290499 76f584d8 UTL  tmrDebugFlag:           131\r\n09/09 09:28:31.290512 76f584d8 UTL  cDebugFlag:             199\r\n09/09 09:28:31.290526 76f584d8 UTL  jniDebugFlag:           131\r\n09/09 09:28:31.290539 76f584d8 UTL  odbcDebugFlag:          131\r\n09/09 09:28:31.290552 76f584d8 UTL  uDebugFlag:             131\r\n09/09 09:28:31.290566 76f584d8 UTL  httpDebugFlag:          131\r\n09/09 09:28:31.290579 76f584d8 UTL  monitorDebugFlag:       131\r\n09/09 09:28:31.290593 76f584d8 UTL  qDebugFlag:             131\r\n09/09 09:28:31.290606 76f584d8 UTL  gitinfo:                44f8a3d73d839b2b840b9c80243ec0edf0f5d5ab\r\n09/09 09:28:31.290621 76f584d8 UTL  buildinfo:              Built by slguan at 2019-08-22 16:51\r\n09/09 09:28:31.290636 76f584d8 UTL  version:                1.6.1.7\r\n09/09 09:28:31.290649 76f584d8 UTL  dataDir:                /var/lib/taos\r\n09/09 09:28:31.290663 76f584d8 UTL  os pageSize:            1422724272(KB)\r\n09/09 09:28:31.290679 76f584d8 UTL  os openMax:             1422724272\r\n09/09 09:28:31.290692 76f584d8 UTL  os streamMax:           1422724272\r\n09/09 09:28:31.290708 76f584d8 UTL  os numOfCores:          4\r\n09/09 09:28:31.290720 76f584d8 UTL  os totalDisk:           28.064709(GB)\r\n09/09 09:28:31.290737 76f584d8 UTL  os totalMemory:         886(MB)\r\n09/09 09:28:31.290751 76f584d8 UTL  os sysname:             Linux\r\n09/09 09:28:31.290765 76f584d8 UTL  os nodename:            develop\r\n09/09 09:28:31.290777 76f584d8 UTL  os release:             4.4.60\r\n09/09 09:28:31.290793 76f584d8 UTL  os version:             #2 SMP PREEMPT Wed Sep 4 19:24:03 UTC 2019\r\n09/09 09:28:31.290806 76f584d8 UTL  os machine:             armv7l\r\n09/09 09:28:31.290820 76f584d8 UTL ==================================\r\n09/09 09:28:31.290833 76f584d8 DND Server IP address is:192.168.1.215\r\n09/09 09:28:31.290857 76f584d8 DND starting to initialize TDengine engine ...\r\n09/09 09:28:31.295978 76f584d8 TSC taos client is initialized successfully\r\n09/09 09:28:31.299136 76f584d8 DND vnode is initialized successfully\r\n09/09 09:28:31.299226 76f584d8 MND starting to initialize TDengine mgmt ...\r\n09/09 09:28:31.300276 76f584d8 MND first access, set total vnodes:50\r\n09/09 09:28:31.344175 76f584d8 MND TDengine mgmt is initialized successfully\r\n09/09 09:28:31.344207 76f584d8 HTP starting to initialize http service ...\r\n09/09 09:28:31.344360 76f584d8 DND TDengine is initialized successfully\r\n09/09 09:28:31.344413 7580ed44 HTP http service init success at ip:0.0.0.0:6020\r\n···\r\n\r\n但是跑taos shell发现创建database失败：\r\n···\r\n[develop] ~/TDengine/build/build/bin # ./taos\r\n\r\nWelcome to the TDengine shell, client version:1.6.1.7  09/09 09:33:51.709376 76fa64d8 ERROR UTL open file:/proc/3715/io failed\r\n09/09 09:33:51.710004 76fa64d8 TSC starting to initialize TAOS client ...\r\n09/09 09:33:51.710021 76fa64d8 TSC Local IP address is:0.0.0.0\r\n09/09 09:33:51.714891 76fa64d8 TSC taos client is initialized successfully\r\n09/09 09:33:51.714959 76fa64d8 TSC try to create a connection to 0.0.0.0\r\n09/09 09:33:51.715039 76fa64d8 TSC 0x55e57ee0 SQL cmd:28 will be processed, name:\r\n09/09 09:33:51.715077 76fa64d8 TSC 0x55e57ee0 msg:connect is sent to server\r\n09/09 09:33:51.715555 76fa64d8 TSC 0x55e57ee0 send msg ret:117 code:0 sig:0x55e57ee0\r\n09/09 09:33:51.715934 76e81d44 TSC 0x55e57ee0 msg:0x55e58dec is received from server, pConn:0x76b100bc\r\n09/09 09:33:51.715971 76e81d44 TSC 0x55e57ee0 cmd:28 code:0 rsp len:63\r\n09/09 09:33:51.716026 76e81d44 TSC 0x76b100bc ip:0x0:999:1451:0x76a33010 added, connections in cache:1\r\n09/09 09:33:51.716067 76fa64d8 TSC 0x55e57e10 DB connection is opened\r\nserver version:1.6.1.7\r\nCopyright (c) 2017 by TAOS Data, Inc. All rights reserved.\r\n\r\ntaos> create database db;\r\n09/09 09:34:24.120452 76a32d44 TSC 0x55e57ee0 SQL: create database db; pObj:0x55e57e10\r\n09/09 09:34:24.120637 76a32d44 TSC 0x55e57ee0 SQL cmd:4 will be processed, name:0.db\r\n09/09 09:34:24.120705 76a32d44 TSC 0x76b10214 ip:0x0:999:1451:0x76a33050 removed, connections in cache:0\r\n09/09 09:34:24.120761 76a32d44 TSC 0x55e57ee0 msg:create-db is sent to server\r\n09/09 09:34:24.120953 76a32d44 TSC 0x55e57ee0 send msg ret:237 code:0 sig:0x55e57ee0\r\n09/09 09:34:24.121325 76e81d44 TSC 0x55e57ee0 msg:0x55e6b03c is received from server, pConn:0x76b102c0\r\n09/09 09:34:24.121350 76e81d44 TSC 0x55e57ee0 cmd:4 code:45 rsp len:21\r\n09/09 09:34:24.121371 76e81d44 TSC 0x76b102c0 ip:0x0:999:1451:0x76a33070 added, connections in cache:1\r\n09/09 09:34:24.121420 76a32d44 TSC 0x55e57ee0 SQL result:45, invalid option pObj:0x55e57e10\r\n09/09 09:34:24.121460 76a32d44 TSC 0x55e57ee0 start to free local reducer\r\n09/09 09:34:24.121495 76a32d44 TSC 0x55e57ee0 local reducer has been freed, abort\r\n\r\nTSDB error: invalid option\r\n\r\n09/09 09:34:24.121561 76a32d44 TSC 0x55e57ee0 start to free result\r\n09/09 09:34:24.121596 76a32d44 TSC 0x55e57ee0 qhandle is null, abort free, fp:0\r\n09/09 09:34:24.121631 76a32d44 TSC 0x55e57ee0 start to free local reducer\r\n09/09 09:34:24.121665 76a32d44 TSC 0x55e57ee0 local reducer has been freed, abort\r\ntaos> show databases;\r\n09/09 09:45:01.537459 76a32d44 TSC 0x55e57ee0 SQL: show databases; pObj:0x55e57e10\r\n09/09 09:45:01.537649 76a32d44 TSC 0x55e57ee0 SQL cmd:22 will be processed, name:\r\n09/09 09:45:01.537718 76a32d44 TSC 0x76b102c0 ip:0x0:999:1451:0x76a33070 removed, connections in cache:0\r\n09/09 09:45:01.537775 76a32d44 TSC 0x55e57ee0 msg:show is sent to server\r\n09/09 09:45:01.537990 76a32d44 TSC 0x55e57ee0 send msg ret:149 code:0 sig:0x55e57ee0\r\n09/09 09:45:01.538567 76e6ad44 TSC 0x55e57ee0 msg:0x55e6affc is received from server, pConn:0x76b1036c\r\n09/09 09:45:01.538597 76e6ad44 TSC 0x55e57ee0 cmd:22 code:0 rsp len:1300\r\n09/09 09:45:01.538675 76a32d44 TSC 0x55e57ee0 SQL result:0, success pObj:0x55e57e10\r\n09/09 09:45:01.538836 76a32d44 TSC 0x55e57ee0 SQL cmd:23 will be processed, name:\r\n09/09 09:45:01.538863 76a32d44 TSC 0x55e57ee0 msg:retrieve is sent to server\r\n09/09 09:45:01.539220 76e81d44 TSC 0x55e57ee0 msg:0x55e6b44c is received from server, pConn:0x76b1036c\r\n09/09 09:45:01.539220 76a32d44 TSC 0x55e57ee0 send msg ret:126 code:0 sig:0x55e57ee0\r\n09/09 09:45:01.539265 76e81d44 TSC 0x55e57ee0 cmd:23 code:0 rsp len:43\r\n09/09 09:45:01.539317 76a32d44 TSC 0x76b1036c ip:0x0:999:1451:0x76a33090 added, connections in cache:1\r\n09/09 09:45:01.539342 76a32d44 TSC 0x55e57ee0 start to free result\r\n09/09 09:45:01.539362 76a32d44 TSC 0x55e57ee0 start to free local reducer\r\n09/09 09:45:01.539378 76a32d44 TSC 0x55e57ee0 local reducer has been freed, abort\r\n09/09 09:45:01.539397 76a32d44 TSC 0x55e57ee0 sql result is freed\r\nQuery OK, 0 row(s) in set (0.001956s)\r\n\r\ntaos>\r\n···\r\n\r\n感觉还是有问题，代码里面用了很多Not Portable的东西，可移植性需要进一步健全。"}}
other: {"actor":{"display_login":"subjectxbj"}}