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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to