[LLVMdev] compile linux-2.6 using llvm-gcc

Duncan Sands baldrick at free.fr
Thu Dec 15 09:36:02 PST 2011

On 15/12/11 18:19, John Criswell wrote:
> On 12/15/11 11:15 AM, Duncan Sands wrote:
>> Hi Ping,
>>> Is there any method to compile linux-2.6 with llvm-gcc? I google the
>>> information, but found nothing. Can anybody help me?
>> llvm-2.6 is so old I doubt anyone here wants to think about it.
>> But why do you want to compile LLVM with llvm-gcc?  Just compile
>> it with gcc or whatever compiler you have to hand.
> Just a note that he's compiling *Linux* 2.6; he's not wanting to use *LLVM* 2.6.
> :)

D'oh!  It seems my brain expands anything starting with "L" to LLVM nowadays!
Anyway, llvm-gcc is dead.  Ping will need to try clang or dragonegg.  I think
there is a metabug describing the status of compiling linux with clang.  You
can compile linux with dragonegg, but if you don't take care it will bail out
on uses of "asm goto".  The Makefile tests whether the compiler supports "asm
goto", but if you don't pay attention it will just test whether gcc alone
supports "asm goto" (which it does) rather than whether gcc+dragonegg supports
"asm goto" (which it doesn't).

Ciao, Duncan.

More information about the llvm-dev mailing list