You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "cambyzju (via GitHub)" <gi...@apache.org> on 2023/08/18 11:35:05 UTC

[GitHub] [doris] cambyzju opened a new pull request, #23190: [fix](gcc12) compile be with gcc12 failed

cambyzju opened a new pull request, #23190:
URL: https://github.com/apache/doris/pull/23190

   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   While compile be with gcc12, we got following error:
   ```
   /home/disk1/zhuxiaoli01/doris/baidu/bdg/doris/core/be/src/olap/rowset/rowset_meta_manager.cpp: In static member function 'static doris::Status doris::RowsetMetaManager::remove_binlog(doris::OlapMeta*, const std::string&)':
   /home/disk1/zhuxiaoli01/doris/baidu/bdg/doris/core/be/src/olap/rowset/rowset_meta_manager.cpp:416:24: error: call of overloaded 'remove(doris::ColumnFamilyIndex, <brace-enclosed initializer list>)' is ambiguous
     416 |     return meta->remove(META_COLUMN_FAMILY_INDEX,
         |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
     417 |                         {kBinlogMetaPrefix.data() + suffix, kBinlogDataPrefix.data() + suffix});
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from /home/disk1/zhuxiaoli01/doris/baidu/bdg/doris/core/be/src/olap/rowset/rowset_meta_manager.cpp:35:
   /home/disk1/zhuxiaoli01/doris/baidu/bdg/doris/core/be/src/olap/olap_meta.h:58:12: note: candidate: 'doris::Status doris::OlapMeta::remove(int, const std::string&)'
      58 |     Status remove(const int column_family_index, const std::string& key);
         |            ^~~~~~
   /home/disk1/zhuxiaoli01/doris/baidu/bdg/doris/core/be/src/olap/olap_meta.h:59:12: note: candidate: 'doris::Status doris::OlapMeta::remove(int, const std::vector<std::basic_string<char> >&)'
      59 |     Status remove(const int column_family_index, const std::vector<std::string>& keys);
         |            ^~~~~~
   [564/1144] Building CXX object src/olap/CMakeFiles/Olap.dir/reader.cpp.o
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685796206

   PR approved by at least one committer and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685810828

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] adonis0147 commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "adonis0147 (via GitHub)" <gi...@apache.org>.
adonis0147 commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685572511

   Maybe this issue is a bug in `GCC 12.1`. I can't reproduce this issue in GCC with newer versions.
   
   Although the code snippet mentioned above can not compiled by GCC-12 and GCC-13, but the original code snippet has some subtle differences.
   ```c++
   $ cat test.cpp
   #include <iostream>
   #include <vector>
   
   void foo(const std::string& s) {
       std::cout << "foo with string" << std::endl;
   }
   void foo(const std::vector<std::string>& v) {
       std::cout << "foo with vector string" << std::endl;
   }
   int main(int argc, char** argv) {
       foo({"123","456"});
   }
   ```
   
   I think the following code snippet is more similar to the original snippet.
   ```c++
   #include <iostream>
   #include <string_view>
   #include <vector>
   
   std::string_view prefix_1 = "prefix_1";
   std::string_view prefix_2 = "prefix_2";
   
   void foo(const std::string& s) {
       std::cout << "foo with string" << std::endl;
   }
   
   void foo(const std::vector<std::string>& v) {
       std::cout << "foo with vector string" << std::endl;
   }
   void test(const std::string& suffix) {
       foo({prefix_1.data() + suffix, prefix_2.data() + suffix});
   }
   
   int main(int argc, char** argv) {
       test("test");
       return 0;
   }
   ```
   
   The above code snippet can be compiled by GCC-12 (12.3.0) and GCC-13 (13.1.0) in Docker environments (ubuntu:22.04 and ubuntu:23.04).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #23190: [fix](gcc12) compile be with gcc12 failed

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1683794100

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685802840

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] JackDrogon commented on a diff in pull request #23190: [fix](gcc12) compile be with gcc12 failed

Posted by "JackDrogon (via GitHub)" <gi...@apache.org>.
JackDrogon commented on code in PR #23190:
URL: https://github.com/apache/doris/pull/23190#discussion_r1298364306


##########
be/src/olap/rowset/rowset_meta_manager.cpp:
##########
@@ -413,8 +413,9 @@ Status RowsetMetaManager::remove(OlapMeta* meta, TabletUid tablet_uid, const Row
 }
 
 Status RowsetMetaManager::remove_binlog(OlapMeta* meta, const std::string& suffix) {
-    return meta->remove(META_COLUMN_FAMILY_INDEX,
-                        {kBinlogMetaPrefix.data() + suffix, kBinlogDataPrefix.data() + suffix});
+    std::vector<std::string> keys = {kBinlogMetaPrefix.data() + suffix,

Review Comment:
   I test by gcc12. It can be compiled kindly.
   
   ```bash
   ./build_one.sh rowset_meta_manager.cpp src/olap/CMakeFiles/Olap.dir/rowset/rowset_meta_manager.cpp.o
   [1/1] ccache Doris/doris_toolchain/bin/g++ -DBOOST_STACKTRACE_USE_BACKTRACE -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DUSE_HADOOP_HDFS....
   
   Doris/doris_toolchain/bin/g++ --version
   g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
   Copyright (C) 2022 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] hello-stephen commented on pull request #23190: [fix](gcc12) compile be with gcc12 failed

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1683850540

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 47.22 seconds
    stream load tsv:          544 seconds loaded 74807831229 Bytes, about 131 MB/s
    stream load json:         21 seconds loaded 2358488459 Bytes, about 107 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
    insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
    storage size: 17162223078 Bytes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] cambyzju commented on pull request #23190: [fix](gcc12) compile be with gcc12 failed

Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1683806541

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] cambyzju commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685795369

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685802627

   PR approved by at least one committer and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] cambyzju commented on pull request #23190: [fix](gcc12) compile be with gcc12 failed

Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685512373

   > It can be compiled by gcc-12 kindly.
   Please try:
   ```
   $ cat /etc/redhat-release
   CentOS release 6.10 (Final)
   ```
   
   ```
   $ uname -a
   Linux xafj-palo-rpm65.xafj.baidu.com 3.10.0_3-0-0-34 #1 SMP Sun Apr 26 22:58:21 CST 2020 x86_64 GNU/Linux
   ```
   
   ```
   $ g++ --version
   g++ (GCC) 12.1.0
   Copyright (C) 2022 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] cambyzju merged pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju merged PR #23190:
URL: https://github.com/apache/doris/pull/23190


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] hello-stephen commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685839594

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 44.83 seconds
    stream load tsv:          548 seconds loaded 74807831229 Bytes, about 130 MB/s
    stream load json:         21 seconds loaded 2358488459 Bytes, about 107 MB/s
    stream load orc:          66 seconds loaded 1101869774 Bytes, about 15 MB/s
    stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
    insert into select:          29.8 seconds inserted 10000000 Rows, about 335K ops/s
    storage size: 17162360467 Bytes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] cambyzju commented on pull request #23190: [fix](compile) compile be failed with gcc12

Posted by "cambyzju (via GitHub)" <gi...@apache.org>.
cambyzju commented on PR #23190:
URL: https://github.com/apache/doris/pull/23190#issuecomment-1685801074

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org