You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2018/11/08 12:32:16 UTC

[GitHub] uestctxq opened a new issue #288: when executing sh build.sh threw error: incomplete result type '__float128'

uestctxq opened a new issue #288: when executing sh build.sh threw error: incomplete result type '__float128' 
URL: https://github.com/apache/incubator-doris/issues/288
 
 
   1.  OS:**CentOS 7.5**
   2.  gcc version :  **gcc 7.3.0**
   3.  question: when execute `sh build.sh` then throw :
   ` /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/std_abs.h:102:3: error: incomplete result type '__float128' in function definition 
   abs(__float128 __x)
   /var/local/incubator-doris/be/src/codegen/doris_ir.cpp:19:8: note: forward declaration of '__float128'
   struct __float128;
   `
   4. solution
   open `incubator-doris/be/CMakeLists.txt` 
   first in line 362 find `set(CLANG_IR_CXX_FLAGS ${CLANG_IR_CXX_FLAGS} "-std=gnu++11" "-c" "-emit-llvm" ` and change the `-std=gnu++11` to `-std=c++11`
   second comment 363-366 line  
   ![image](https://user-images.githubusercontent.com/5874970/48198895-4b6f0780-e395-11e8-8ecf-f5935a59847a.png)
   finally  clear previous build results and execute `sh build.sh` again, then build success.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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