zhaomingzhu opened a new issue #1399: llvm 无法编译
URL: https://github.com/apache/incubator-doris/issues/1399
 
 
   环境:
   1)OS centos7.2
   2)gcc --version
   gcc (GCC) 5.4.0
   3)cmake --version
   cmake version 3.4.3
   3)rpm -qa|grep libstdc
   **libstdc++-devel-4.8.5-36.el7.x86_64
   libstdc++-4.8.5-36.el7.x86_64
   libstdc++-static-4.8.5-36.el7.x86_64**
   4)rpm -qa|grep libatomic
   **libatomic-4.8.5-36.el7.x86_64**
   5)llvm-3.4.2.src 
   
   问题:编译报错:
    1) /usr/bin/g++
     -L/export/apache-doris-0.9.0.rc02-incubating-src/thirdparty/installed/lib
     -static-libstdc++ -static-libgcc
     CMakeFiles/cmTC_390a5.dir/testCXXCompiler.cxx.o -o cmTC_390a5
   
     /usr/bin/ld: 找不到 -lstdc++
   
     collect2: 错误:ld 返回 1
   
     gmake[1]: *** [cmTC_390a5] 错误 1
   
   2)去掉#LDFLAGS="-L${TP_LIB_DIR} -static-libstdc++ -static-libgcc"   
-static-libstdc++编译报错
   CMake Error at cmake/modules/CheckAtomic.cmake:53 (message):
     Host compiler appears to require libatomic, but cannot find it.

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