[llvm-dev] llvm build failed on Fedora 24

Amit Ghadge via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 21 01:43:07 PDT 2016


Hi,

I'm try to build llvm on my PC but it failed. I'm using following command,

$ cmake -G "Ninja" ../llvm -DCMAKE_INSTALL_PREFIX=prefix=$INSTALL_PATH
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=On
$ ninja-build -j 2

I have skipped libcxx and libcxxabi package.

It shows below error,


00:04:23 [3261/3430] Building CXX object
tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexCXX.cpp.o
00:04:30 [3262/3430] Building CXX object
tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o
00:04:30 FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o
00:04:30 /usr/bin/c++   -DCLANG_ENABLE_ARCMT
-DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER
-DCLANG_TOOL_EXTRA_BUILD -DGTEST_HAS_RTTI=0 -D_CINDEX_LIB_ -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -Itools/clang/tools/libclang
-I/home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang
-I/home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/include
-Itools/clang/include -Iinclude
-I/home/aghadge/build/llvm/llvm_build.4.0/llvm/include -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor
-Wno-comment -Werror=date-time -std=c++11 -ffunction-sections
-fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing
-O3  -fPIC   -UNDEBUG  -fno-exceptions -fno-rtti -MMD -MT
tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o -MF
tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o.d -o
tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o -c
/home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang/CIndex.cpp
00:04:30 In file included from
/home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang/CIndex.cpp:17:0:
00:04:30 /home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang/CIndex.cpp:
In function ‘CXErrorCode clang_createTranslationUnit2(CXIndex, const
char*, CXTranslationUnitImpl**)’:
00:04:30 /home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang/CLog.h:101:38:
error: ‘LLVM_FUNCTION_NAME’ was not declared in this scope
00:04:30  #define LOG_FUNC_SECTION LOG_SECTION(LLVM_FUNCTION_NAME)
00:04:30                                       ^
00:04:30 /home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/tools/libclang/CLog.h:100:67:
note: in definition of macro ‘LOG_SECTION’
00:04:30      if (clang::cxindex::LogRef Log =
clang::cxindex::Logger::make(NAME))


Thanks,
Amit Ghadge


More information about the llvm-dev mailing list