compile linux-2.6 using llvm-gcc

Dear all,
Is there any method to compile linux-2.6 with llvm-gcc? I google the information, but found nothing. Can anybody help me?
Thanks!~
bests,
Ping

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.

Ciao, Duncan.

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.
:slight_smile:

– John T.

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.