Re: Use (two) different compilers at build-time?

2015-09-13 Thread Fengguang Wu
On Sun, Sep 13, 2015 at 05:21:41PM +0200, Sedat Dilek wrote: > On Thu, Sep 10, 2015 at 2:25 AM, Fengguang Wu wrote: > > On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: > >> Hi, > >> > >> is it possible to use a different compiler at build-time? > > > > btw, it'd be great if clang can

Re: Use (two) different compilers at build-time?

2015-09-13 Thread Sedat Dilek
On Thu, Sep 10, 2015 at 2:25 AM, Fengguang Wu wrote: > On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: >> Hi, >> >> is it possible to use a different compiler at build-time? > > btw, it'd be great if clang can just work on mainline kernel. > I am not a member of that LLVMLinux team,

Re: Use (two) different compilers at build-time?

2015-09-13 Thread Sedat Dilek
On Thu, Sep 10, 2015 at 2:25 AM, Fengguang Wu wrote: > On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: >> Hi, >> >> is it possible to use a different compiler at build-time? > > btw, it'd be great if clang can just work on mainline kernel. > I am not a member

Re: Use (two) different compilers at build-time?

2015-09-13 Thread Fengguang Wu
On Sun, Sep 13, 2015 at 05:21:41PM +0200, Sedat Dilek wrote: > On Thu, Sep 10, 2015 at 2:25 AM, Fengguang Wu wrote: > > On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: > >> Hi, > >> > >> is it possible to use a different compiler at build-time? > > > > btw,

Re: Use (two) different compilers at build-time?

2015-09-09 Thread Fengguang Wu
On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: > Hi, > > is it possible to use a different compiler at build-time? btw, it'd be great if clang can just work on mainline kernel. I tried to run clang in 0day kbuild tests, however make aborts quickly in seconds. There are dozens of

Re: Use (two) different compilers at build-time?

2015-09-09 Thread Fengguang Wu
On Mon, Sep 07, 2015 at 09:12:58PM +0200, Sedat Dilek wrote: > Hi, > > is it possible to use a different compiler at build-time? btw, it'd be great if clang can just work on mainline kernel. I tried to run clang in 0day kbuild tests, however make aborts quickly in seconds. There are dozens of

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Tue, Sep 8, 2015 at 7:45 AM, Sedat Dilek wrote: > On Tue, Sep 8, 2015 at 12:30 AM, Sedat Dilek wrote: >> On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: >>> On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds >>> wrote: On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: > >

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Tue, Sep 8, 2015 at 12:30 AM, Sedat Dilek wrote: > On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: >> On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds >> wrote: >>> On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: That does not work. >>> >>> .. because you didn't do what I

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: > On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds > wrote: >> On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: >>> >>> That does not work. >> >> .. because you didn't do what I told you to do. >> >>> I copied a gcc-compiled percpu.o OR

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: >> >> That does not work. > > .. because you didn't do what I told you to do. > >> I copied a gcc-compiled percpu.o OR deleted/renamed percpu.o and >> re-invoked make - this starts a

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: > > That does not work. .. because you didn't do what I told you to do. > I copied a gcc-compiled percpu.o OR deleted/renamed percpu.o and > re-invoked make - this starts a complete new build from scratch. Right. Because you changed the

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:42 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 1:31 PM, Sedat Dilek wrote: >> >> So, how do I do that conveniently? > > For a single file? Just compile everything with the primary compiler, > and then delete the single object file, and do "make" again. > That

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 1:31 PM, Sedat Dilek wrote: > > So, how do I do that conveniently? For a single file? Just compile everything with the primary compiler, and then delete the single object file, and do "make" again. Use a wrapper around the compiler (and point to that wrapper with the "to

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:15 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 12:12 PM, Sedat Dilek wrote: >> >> is it possible to use a different compiler at build-time? >> >> I have here a problem with mm/percpu.c and wanted to build everything >> with LLVM/Clang but this single file with

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 12:12 PM, Sedat Dilek wrote: > > is it possible to use a different compiler at build-time? > > I have here a problem with mm/percpu.c and wanted to build everything > with LLVM/Clang but this single file with GCC. > > Is that possible? It should work fine. It's

Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
Hi, is it possible to use a different compiler at build-time? I have here a problem with mm/percpu.c and wanted to build everything with LLVM/Clang but this single file with GCC. Is that possible? Regards, - Sedat - -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Tue, Sep 8, 2015 at 7:45 AM, Sedat Dilek wrote: > On Tue, Sep 8, 2015 at 12:30 AM, Sedat Dilek wrote: >> On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: >>> On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds >>>

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Tue, Sep 8, 2015 at 12:30 AM, Sedat Dilek wrote: > On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: >> On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds >> wrote: >>> On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 11:20 PM, Sedat Dilek wrote: > On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds > wrote: >> On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: >>> >>> That does not work. >> >> .. because you

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 1:31 PM, Sedat Dilek wrote: > > So, how do I do that conveniently? For a single file? Just compile everything with the primary compiler, and then delete the single object file, and do "make" again. Use a wrapper around the compiler (and point to

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:42 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 1:31 PM, Sedat Dilek wrote: >> >> So, how do I do that conveniently? > > For a single file? Just compile everything with the primary compiler, > and then delete

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: > > That does not work. .. because you didn't do what I told you to do. > I copied a gcc-compiled percpu.o OR deleted/renamed percpu.o and > re-invoked make - this starts a complete new build from scratch. Right. Because

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:59 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 1:53 PM, Sedat Dilek wrote: >> >> That does not work. > > .. because you didn't do what I told you to do. > >> I copied a gcc-compiled percpu.o OR deleted/renamed

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Linus Torvalds
On Mon, Sep 7, 2015 at 12:12 PM, Sedat Dilek wrote: > > is it possible to use a different compiler at build-time? > > I have here a problem with mm/percpu.c and wanted to build everything > with LLVM/Clang but this single file with GCC. > > Is that possible? It should work

Re: Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
On Mon, Sep 7, 2015 at 10:15 PM, Linus Torvalds wrote: > On Mon, Sep 7, 2015 at 12:12 PM, Sedat Dilek wrote: >> >> is it possible to use a different compiler at build-time? >> >> I have here a problem with mm/percpu.c and wanted to build

Use (two) different compilers at build-time?

2015-09-07 Thread Sedat Dilek
Hi, is it possible to use a different compiler at build-time? I have here a problem with mm/percpu.c and wanted to build everything with LLVM/Clang but this single file with GCC. Is that possible? Regards, - Sedat - -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in