[llvm-dev] llvm build failed on Fedora 24
Amit Ghadge via llvm-dev
llvm-dev at lists.llvm.org
Fri Oct 21 07:37:22 PDT 2016
Oh, that was my mistake, Thanks.
On Fri, Oct 21, 2016 at 7:57 PM, Chuck Atkins <chuck.atkins at kitware.com>
wrote:
> Also, while not the source of your error, your install prefix
> specification is wrong:
> -DCMAKE_INSTALL_PREFIX=*prefix=*$INSTALL_PATH
> should be
> -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH
>
>
> ----------
> Chuck Atkins
> Staff R&D Engineer, Scientific Computing
> Kitware, Inc.
>
>
> On Fri, Oct 21, 2016 at 5:13 AM, Mehdi Amini via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>> You should update your source (including in tools/clang). Your LLVM and
>> clang are out-of-sync
>> (Unless you checked-out between r284681 and r284690).
>>
>> —
>> Mehdi
>>
>> > On Oct 21, 2016, at 1:43 AM, Amit Ghadge via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>> >
>> > 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/CMa
>> keFiles/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/too
>> ls/libclang/CIndex.cpp
>> > 00:04:30 In file included from
>> > /home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/too
>> ls/libclang/CIndex.cpp:17:0:
>> > 00:04:30 /home/aghadge/build/llvm/llvm_build.4.0/llvm/tools/clang/too
>> ls/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/too
>> ls/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/too
>> ls/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
>> > _______________________________________________
>> > LLVM Developers mailing list
>> > llvm-dev at lists.llvm.org
>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161021/99af2fc3/attachment.html>
More information about the llvm-dev
mailing list