[llvm-bugs] [Bug 38324] New: llvm 6.0.1 build issue

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 25 22:28:17 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38324

            Bug ID: 38324
           Summary: llvm 6.0.1 build issue
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abinaya.manikandan at wipro.com
                CC: llvm-bugs at lists.llvm.org

Hi,

We are try to build llvm-6.0.1 with gcc-4.9.0 on our linux RedHat 6 machine.
Please find details of our machine below:

************************************************************
[root at abinaya-llvm6 rpmbuild]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)

[root at abinaya-llvm6 rpmbuild]# gcc --version
gcc (GCC) 4.9.0
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
************************************************************

Please find below steps which we are trying to build:

************************************************************
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
            -DCMAKE_INSTALL_RPATH=$ORIGIN/../lib:%{gccpath}/lib64\
            -DCMAKE_CROSSCOMPILING=True -DCMAKE_BUILD_TYPE=Release  \
            -Wno-dev  --enable-zlib -DCMAKE_BUILD_TYPE=Release \
            --enable-gold --enable-plugins \
            -DLLVM_ENABLE_ZLIB:BOOL=ON .. 

make

make install
*************************************************************

We could see the issue when we try to run "make" .

Please find below issue log:

******************************************************************************
In file included from
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/utility:198:0,
                 from
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/algorithm:642,
                 from
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__bit_reference:15,
                 from
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/vector:266,
                 from
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxxabi/src/cxa_demangle.cpp:20:
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple: In
substitution of 'template<bool ..._Pred> using __all =
std::__1::is_same<std::__1::__all_dummy<_Pred ...>,
std::__1::__all_dummy<(void(_Pred), true)...> > [with bool ..._Pred =
{{true}...}]':
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:401:84:  
required from here
/root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:395:82:
internal compiler error: unexpected expression '(void({true}), true)...' of
kind expr_pack_expansion
 using __all = is_same<__all_dummy<_Pred...>, __all_dummy<((void)_Pred,
true)...>>;
                                                                               
  ^
[  4%] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInstrDesc.cpp.o
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: ***
[projects/libcxxabi/src/CMakeFiles/cxxabi_objects.dir/cxa_demangle.cpp.o] Error
1
make[1]: *** [projects/libcxxabi/src/CMakeFiles/cxxabi_objects.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
*******************************************************************************

Please anyone help me on this.

Regards,
Abinaya

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180726/961b3317/attachment.html>


More information about the llvm-bugs mailing list