>From the make-kpkg manual page:

"You may control which version of gcc used in kernel compilation by setting the Makefile variables CC and HOSTCC in the top level kernel Makefile. You can do this simply by

% MAKEFLAGS="CC=gcc-2.95" make-kpkg ...

"

Cheers,
Joel

On 8/30/05, Jerome BENOIT <[EMAIL PROTECTED]> wrote:
Hello,

thanks for your reply:
finally I built a 2.6.12.6 kernel with with gcc-4.0 .

As a matter of fact, I do not know how to proceed to build a kernel
with make-kpkg and a non-default gcc compiler:
I had tried

export HOSTCC=gcc-3.4
export HOSTCXX=g++-3.4
export CC=gcc-3.4
export CXX=g++-3.4
make-kpkg

but I still got error messages.

Jerome

Joel Peter William Pitt wrote:
> On 8/29/05, *Jerome BENOIT* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hello List,
>
>     I have jsut tried to build a kernel 2.6.11 with make-kernel on the
>     daily update Etch box:
>     while I could do a few weeks ago it without difficulty,
>     I get now error messages: I suspected that
>     gcc-4.0 finds code errors where gcc-3.x finds nothing.
>
>     Is it right ?
>     Is there a work around ?
>
>
> I compiled 2.6.12.5 < http://2.6.12.5> with gcc-4.0 without any trouble
> yesterday. A whole lot of warnings, but no errors. Thus I also suggest
> using gcc-3.x for your kernel as Marc Wilson said, or get a later kernel
> version.
>
> Joel


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to