Skip to content

Fedora编译be模块失败 #28

@Aegeaner

Description

@Aegeaner
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   thread
--   regex
--   system
--   filesystem
--   date_time
--   program_options
--   chrono
--   atomic
-- 
-- LLVM llvm-config found at: /home/aegeaner/Play/palo/thirdparty/installed/bin/llvm-config
-- LLVM clang++ found at: /home/aegeaner/Play/palo/thirdparty/installed/bin/clang++
-- LLVM opt found at: /home/aegeaner/Play/palo/thirdparty/installed/bin/opt
llvm-config: unknown component name: jit
CMake Error at CMakeLists.txt:252 (string):
  string sub-command REPLACE requires at least four arguments.


-- LLVM include dir: /usr/include/llvm3.7
-- LLVM lib dir: /usr/lib64/llvm3.7
-- LLVM libs: -ldl
-- LLVM compile flags: -L/usr/lib64/llvm3.7 -D__GLIBCXX_BITSIZE_INT_N_0=128 -D__GLIBCXX_TYPE_INT_N_0=__int128
-- fedora

-- Compiler Flags: -msse4.2 -Wall -Wno-sign-compare -Wno-deprecated -pthread -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -D__STDC_FORMAT_MACROS -g -O2 -ggdb -Wno-unused-local-typedefs -Wno-strict-aliasing -std=gnu++11 -DPERFORMANCE -D_FILE_OFFSET_BITS=64
-- Configuring incomplete, errors occurred!

be/build/CMakeFiles/CMakeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/aegeaner/palo/be/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_f8f50/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_f8f50.dir/build.make CMakeFiles/cmTC_f8f50.dir/build
gmake[1]: Entering directory '/home/aegeaner/palo/be/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f8f50.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_f8f50.dir/CheckSymbolExists.c.o   -c /home/aegeaner/palo/be/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_f8f50
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f8f50.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_f8f50.dir/CheckSymbolExists.c.o  -o cmTC_f8f50 
CMakeFiles/cmTC_f8f50.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]: *** [CMakeFiles/cmTC_f8f50.dir/build.make:98: cmTC_f8f50] Error 1
gmake[1]: Leaving directory '/home/aegeaner/palo/be/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:126: cmTC_f8f50/fast] Error 2

File /home/aegeaner/palo/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: /home/aegeaner/palo/be/build/CMakeFiles/CMakeTmp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions