[LLVMdev] Fail to compile LLVM on Gentoo Linux

Sergey Galanov sergey.e.galanov at gmail.com
Mon Sep 17 10:52:16 PDT 2012


Hi Duncan.
Probably it depends on exact gcc version and possibly assert/noassert
build option. I've got this problem with gcc 4.5.2 on 64-bit Suse (I
don't remember whether assertions were enabled).

On 17 September 2012 21:12, Duncan Sands <baldrick at free.fr> wrote:
> Hi Sergey,
>
>
>> This is a known gcc bug
>> (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53670). GCC 4.5 can't
>> compile clang 3.1
>
>
> are you sure?  I built the LLVM/clang-3.1 release binaries for ubuntu 64
> bits
> using gcc-4.5.
>
> Ciao, Duncan.
>
>
>>
>> On 13 September 2012 06:53, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw>
>> wrote:
>>>
>>> Hi all,
>>>
>>>    I think it's Gentoo's bug, but I want to know if anyone has the same
>>> issue here. I am compiling LLVM trunk on Gentoo (gcc 4.5.2), and I get
>>> error message below,
>>>
>>> ---
>>> make[4]: Entering directory
>>> `/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend'
>>> llvm[4]: Compiling InitHeaderSearch.cpp for Release+Asserts build
>>>
>>> /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:
>>> In member function
>>> 'void<unnamed>::InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef,
>>> llvm::StringRef, llvm::StringRef)':
>>>
>>> /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1:
>>> error: unrecognizable insn:
>>> (insn 318 317 46 2
>>> /nfs_home/chenwj/llvm-3.1/svn/llvm/include/llvm/ADT/Twine.h:181 (set (reg:DI
>>> 23 xmm2)
>>>          (plus:DI (reg:DI 23 xmm2)
>>>              (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC22") [flags 0x2]) [0 S8
>>> A64]))) -1 (expr_list:REG_EQUIV (plus:DI (reg/f:DI 7 sp)
>>>              (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC22") [flags 0x2]) [0 S8
>>> A64]))
>>>          (nil)))
>>>
>>> /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1:
>>> internal compiler error: in extract_insn, at recog.c:2103
>>> Please submit a full bug report,
>>> with preprocessed source if appropriate.
>>> See <http://bugs.gentoo.org/> for instructions.
>>> ---
>>>
>>>    Thanks.
>>>
>>> Regards,
>>> chenwj
>>>
>>> --
>>> Wei-Ren Chen (陳韋任)
>>> Computer Systems Lab, Institute of Information Science,
>>> Academia Sinica, Taiwan (R.O.C.)
>>> Tel:886-2-2788-3799 #1667
>>> Homepage: http://people.cs.nctu.edu.tw/~chenwj
>>>
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list