You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "gohalo (via GitHub)" <gi...@apache.org> on 2023/06/17 02:54:14 UTC

[GitHub] [doris] gohalo opened a new issue, #20931: [Bug] Compile be on master branch failed with undefined reference.

gohalo opened a new issue, #20931:
URL: https://github.com/apache/doris/issues/20931

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   dev-master
   
   ### What's Wrong?
   
   link doris_be failed with the following error.
   
   ```
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:56: error: undefined reference to 'doris::GeoPoint::GeoPoint()'                                                                                                                                                            
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:59: error: undefined reference to 'doris::GeoPoint::from_coord(double, double)'                                                                                                                                            
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:67: error: undefined reference to 'doris::GeoShape::encode_to(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'                                                                           
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:73: error: undefined reference to 'doris::GeoPoint::~GeoPoint()'                                                                                                                                                           
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:73: error: undefined reference to 'doris::GeoPoint::~GeoPoint()'                                                                                                                                                           
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:130: error: undefined reference to 'doris::GeoPoint::GeoPoint()'                                                                                                                                                           
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:133: error: undefined reference to 'doris::GeoShape::decode_from(void const*, unsigned long)'                                                                                                                              
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:139: error: undefined reference to 'doris::GeoPoint::x() const'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:145: error: undefined reference to 'doris::GeoPoint::~GeoPoint()'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:145: error: undefined reference to 'doris::GeoPoint::~GeoPoint()'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:162: error: undefined reference to 'doris::GeoPoint::GeoPoint()'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:165: error: undefined reference to 'doris::GeoShape::decode_from(void const*, unsigned long)'                                                                                                                             
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:171: error: undefined reference to 'doris::GeoPoint::y() const'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:199: error: undefined reference to 'doris::GeoPoint::ComputeDistance(double, double, double, double, double*)'                                                                                                            
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:233: error: undefined reference to 'doris::GeoPoint::ComputeAngleSphere(double, double, double, double, double*)'                                                                                                         
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:262: error: undefined reference to 'doris::GeoPoint::GeoPoint()'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:268: error: undefined reference to 'doris::GeoShape::decode_from(void const*, unsigned long)'                                                                                                                             
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:275: error: undefined reference to 'doris::GeoShape::decode_from(void const*, unsigned long)'                                                                                                                             
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:288: error: undefined reference to 'doris::GeoPoint::ComputeAngle(doris::GeoPoint*, doris::GeoPoint*, doris::GeoPoint*, double*)'                                                                                         
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:331: error: undefined reference to 'doris::GeoPoint::ComputeAzimuth(doris::GeoPoint*, doris::GeoPoint*, double*)'                                                                                                         
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:358: error: undefined reference to 'doris::GeoShape::from_encoded(void const*, unsigned long)'                                                                                                                            
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:365: error: undefined reference to 'doris::GeoShape::ComputeArea(doris::GeoShape*, double*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'                                             
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:393: error: undefined reference to 'doris::GeoShape::from_encoded(void const*, unsigned long)'                                                                                                                            
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:400: error: undefined reference to 'doris::GeoShape::ComputeArea(doris::GeoShape*, double*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'                                             
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:430: error: undefined reference to 'doris::GeoCircle::GeoCircle()'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:437: error: undefined reference to 'doris::GeoCircle::init(double, double, double)'
   /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:443: error: undefined reference to 'doris::GeoShape::encode_to(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'                                                                         /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:448: error: undefined reference to 'doris::GeoCircle::~GeoCircle()'/opt/doris/2x/be/src/vec/functions/functions_geo.cpp:448: error: undefined reference to 'doris::GeoCircle::~GeoCircle()'/opt/doris/2x/be/src/vec/functions/functions_geo.cpp:480: error: undefined reference to 'doris::GeoShape::from_encoded(void const*, unsigned long)'                                                                                                                            /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:649: error: undefined reference to 'doris::GeoShape::from_encoded(void const*, unsigned long)'                                                                  
                                                           /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:655: error: undefined reference to 'doris::GeoShape::as_binary[abi:cxx11](doris::GeoShape*)'                                                                                                                              /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:610: error: undefined reference to 'doris::GeoShape::from_wkb(char const*, unsigned long, doris::GeoParseStatus*)'                                                                                                        /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:616: error: undefined reference to 'doris::GeoShape::encode_to(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'                                                                         /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:610: error: undefined reference to 'doris::GeoShape::from_wkb(char const*
 , unsigned long, doris::GeoParseStatus*)'                                                                                                        /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:616: error: undefined reference to 'doris::GeoShape::encode_to(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'                                                                         /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:559: error: undefined reference to 'doris::GeoShape::from_wkt(char const*, unsigned long, doris::GeoParseStatus*)'                                                                                                        /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:559: error: undefined reference to 'doris::GeoShape::from_wkt(char const*, unsigned long, doris::GeoParseStatus*)'                                                                                                        /opt/doris/2x/be/src/vec/functions/func
 tions_geo.cpp:559: error: undefined reference to 'doris::GeoShape::from_wkt(char const*, unsigned long, doris::GeoParseStatus*)'                                                                                                        /opt/doris/2x/be/src/vec/functions/functions_geo.cpp:559: error: undefined reference to 'doris::GeoShape::from_wkt(char const*, unsigned long, doris::GeoParseStatus*)'                                                                                                        collect2: error: ld returned 1 exit statusmake[2]: *** [src/service/CMakeFiles/doris_be.dir/build.make:244: src/service/doris_be] Error 1make[1]: *** [CMakeFiles/Makefile2:2248: src/service/CMakeFiles/doris_be.dir/all] Error 2make: *** [Makefile:156: all] Error 2
   ```
   
   ### What You Expected?
   
   build success.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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] deadlinefen commented on issue #20931: [Bug] Compile be failed with undefined reference on master branch.

Posted by "deadlinefen (via GitHub)" <gi...@apache.org>.
deadlinefen commented on issue #20931:
URL: https://github.com/apache/doris/issues/20931#issuecomment-1595625137

   > maybe it's related to this pr [e08de52](https://github.com/apache/doris/commit/e08de52ee7631c8f3fd498a05c63f817ec94aaaf)
   > 
   > ![image](https://user-images.githubusercontent.com/130516674/246581474-4a60523b-fb0c-42d4-b4b6-5539d1638b2b.png)
   > 
   > cmake also add the dependency at the end.
   > 
   > @deadlinefen
   
   If I remember correctly, geo_types.cpp uses a third-party library (I think it’s the arrow library) that is different from the version used in doris. This will cause a conflict between this file and the third-party library that is precompiled into PCH during compilation. That’s why I put this file in a separate static library.


-- 
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] gohalo commented on issue #20931: [Bug] Compile be failed with undefined reference on master branch.

Posted by "gohalo (via GitHub)" <gi...@apache.org>.
gohalo commented on issue #20931:
URL: https://github.com/apache/doris/issues/20931#issuecomment-1655314717

   got what's your mean now, the abseil's headers is conflict with opentelemetry's.
   
   ![image](https://github.com/apache/doris/assets/130516674/aeb99860-a98a-4621-ae7f-b6fe53b88274)
   


-- 
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] yiguolei closed issue #20931: [Bug] Compile be failed with undefined reference on master branch.

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #20931: [Bug] Compile be failed with undefined reference on master branch.
URL: https://github.com/apache/doris/issues/20931


-- 
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] gohalo commented on issue #20931: [Bug] Compile be on master branch failed with undefined reference.

Posted by "gohalo (via GitHub)" <gi...@apache.org>.
gohalo commented on issue #20931:
URL: https://github.com/apache/doris/issues/20931#issuecomment-1595589835

   maybe it's related to this pr https://github.com/apache/doris/commit/e08de52ee7631c8f3fd498a05c63f817ec94aaaf
   
   ![image](https://github.com/apache/doris/assets/130516674/4a60523b-fb0c-42d4-b4b6-5539d1638b2b)
   


-- 
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