GithubHelp home page GithubHelp logo

Comments (7)

morningman avatar morningman commented on May 18, 2024

提供一下系统环境,版本,gcc版本等信息

from doris.

zepazhao avatar zepazhao commented on May 18, 2024

系统版本:
CentOS Linux release 7.2.1511 (Core)
Derived from Red Hat Enterprise Linux 7.2 (Source)
CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
cpe:/o:centos:centos:7
内核版本:
Linux version 3.10.0-327.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015
gcc版本:
[root@localhost ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)

from doris.

morningman avatar morningman commented on May 18, 2024

贴一下完整的输出日志吧,你是已经编译完成thirdparty,然后使用build.sh编译palo时报的错是吧?

from doris.

zepazhao avatar zepazhao commented on May 18, 2024

是的,thirdparty已经编译完成了

[root@localhost palo-master]# sh build.sh 
Apache Ant(TM) version 1.9.2 compiled on June 10 2014
Get params:
    BUILD_BE -- 1
    BUILD_FE -- 1
    CLEAN    -- 0
    RUN_UT   -- 0

Build generated code
make -C script
make[1]: Entering directory `/root/palo/palo-master/gensrc/script'
/root/palo/palo-master/gensrc/script/gen_build_version.sh
make[1]: Leaving directory `/root/palo/palo-master/gensrc/script'
make -C proto
make[1]: Entering directory `/root/palo/palo-master/gensrc/proto'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/proto'
make -C thrift
make[1]: Entering directory `/root/palo/palo-master/gensrc/thrift'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/thrift'
make -C parser
make[1]: Entering directory `/root/palo/palo-master/gensrc/parser'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/parser'
Build Backend
-- GCC version: 4.8.5

-- GCC major version: 4
-- GCC minor version: 8
-- defined PIC_LIB_PATH
-- build gensrc if necessary
make: Entering directory `/root/palo/palo-master/gensrc'
make -C script
make[1]: Entering directory `/root/palo/palo-master/gensrc/script'
/root/palo/palo-master/gensrc/script/gen_build_version.sh
make[1]: Leaving directory `/root/palo/palo-master/gensrc/script'
make -C proto
make[1]: Entering directory `/root/palo/palo-master/gensrc/proto'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/proto'
make -C thrift
make[1]: Entering directory `/root/palo/palo-master/gensrc/thrift'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/thrift'
make -C parser
make[1]: Entering directory `/root/palo/palo-master/gensrc/parser'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/palo/palo-master/gensrc/parser'
make: Leaving directory `/root/palo/palo-master/gensrc'
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106400
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1315 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:85 (find_package)


-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   thread
--   regex
--   system
--   filesystem
--   date_time
--   program_options
-- 
-- LLVM llvm-config found at: /root/palo/palo-master/thirdparty/installed/bin/llvm-config
-- LLVM clang++ found at: /root/palo/palo-master/thirdparty/installed/bin/clang++
-- LLVM opt found at: /root/palo/palo-master/thirdparty/installed/bin/opt
-- GCC version is less than 5.0.0, no need to set -D__GLIBCXX_BITSIZE_INT_N_0=128 and -D__GLIBCXX_TYPE_INT_N_0=__int128
-- CLANG_IR_CXX_FLAGS: -std=gnu++11;-c;-emit-llvm;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS;-DIR_COMPILE;-DNDEBUG;-DHAVE_INTTYPES_H;-DHAVE_NETINET_IN_H;-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG;-D__GLIBCXX_BITSIZE_INT_N_0=128;-D__GLIBCXX_TYPE_INT_N_0=__int128;-U_GLIBCXX_USE_FLOAT128
-- LLVM include dir: /root/palo/palo-master/thirdparty/installed/include
-- LLVM lib dir: /root/palo/palo-master/thirdparty/installed/lib
-- LLVM libs: -ldl;/root/palo/palo-master/thirdparty/installed/lib/libLLVMBitReader.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMipo.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMVectorize.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86Disassembler.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86AsmParser.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86CodeGen.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMSelectionDAG.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMAsmPrinter.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMMCParser.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86Desc.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86Info.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86AsmPrinter.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMX86Utils.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMJIT.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMRuntimeDyld.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMExecutionEngine.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMCodeGen.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMObjCARCOpts.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMScalarOpts.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMInstCombine.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMTransformUtils.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMipa.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMAnalysis.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMTarget.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMMC.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMObject.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMCore.a;/root/palo/palo-master/thirdparty/installed/lib/libLLVMSupport.a
-- LLVM compile flags: -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
CMake Error at CMakeLists.txt:272 (string):
  string no output variable specified


-- 
CMake Error at CMakeLists.txt:291 (message):
  Currently not support system


-- Configuring incomplete, errors occurred!
See also "/root/palo/palo-master/be/build/CMakeFiles/CMakeOutput.log".
See also "/root/palo/palo-master/be/build/CMakeFiles/CMakeError.log".

CMakeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_709a2/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_709a2.dir/build.make CMakeFiles/cmTC_709a2.dir/build
gmake[1]: Entering directory `/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o   -c /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_709a2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_709a2.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o  -o cmTC_709a2 -rdynamic 
CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_709a2] Error 1
gmake[1]: Leaving directory `/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_709a2/fast] Error 2

File /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_69589/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_69589.dir/build.make CMakeFiles/cmTC_69589.dir/build
gmake[1]: Entering directory `/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_69589
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_69589.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o  -o cmTC_69589 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_69589] Error 1
gmake[1]: Leaving directory `/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_69589/fast] Error 2

from doris.

morningman avatar morningman commented on May 18, 2024

你看下你的系统是否有 lsb_release 这个命令,如果没有,需要安装下

from doris.

morningman avatar morningman commented on May 18, 2024

还有 有可能需要安装 vim-common

from doris.

zepazhao avatar zepazhao commented on May 18, 2024

感谢,已经编译完成。

from doris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.