Re: Kernel will not compile

2003-06-17 Thread Kevin McKinley
On 17 Jun 2003 14:52:41 -0700
Jeremy Brooks <[EMAIL PROTECTED]> wrote:

> what version of kernel-source are you using?  I have 2.4.20-7 (from
> testing) and cannot compile with gcc3.3.  

I haven't actually, but I was speaking of 2.4.20-8, which others have used
successfully with gcc3.3.

Here's an excerpt from the changelog:

   * Use static inline in net/core/rtnetlink.c (closes: #194196).
   * Fixed multiline string literals:
 . drivers/scsi/aic7xxx/aic7xxx_osm.c
 . driver/net/tokenring/olympic.c
 . driver/net/wan/sdla_chdlc.c
 . fs/reiserfs/super.c
 . arch/i386/math-emu/poly.h

IIRC the above were the things that caused the problems.

Kevin


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



Re: Kernel will not compile

2003-06-17 Thread Jeremy Brooks
what version of kernel-source are you using?  I have 2.4.20-7 (from
testing) and cannot compile with gcc3.3.  


On Tue, 2003-06-17 at 13:11, Kevin McKinley wrote:
> On Tue, 17 Jun 2003 09:49:44 -0700
> Craig Dickson <[EMAIL PROTECTED]> wrote:
> 
> > Gary Hennigan wrote:
> > 
> > > I think, in general, it's best to stick with 2.95 compilers for the
> > > kernel.
> > 
> > This seems to be the common view of the kernel developers, but I've had
> > no trouble building 2.4.20 and .21 kernels using whatever gcc was
> > current in Debian unstable at the time (3.3 currently, and I just built
> > a .21 kernel the other day with it, which seems to be doing fine).
> > 
> > It may be relevant that I use kernel source tarballs from kernel.org,
> > not Debian packages, and I do not use make-kpkg.
> 
> I don't think it's really relevant.
> 
> I use both Debian kernel sources and make-kpkg, and it's not a problem for
> me.
> 
> The problems building kernels with gcc3.3 were similar to the binutils a 
> while back -- newer versions spat out bad code that earlier versions
> swallowed.
> 
> The latest version of kernel-source-2.4.20 fixes the bad code, so the kernel
> now builds with gcc3.3.
> 
> Kevin
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 



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



Re: Kernel will not compile

2003-06-17 Thread Patrick Wiseman
On Tue, 17 Jun 2003 at 9:25am, Gary Hennigan wrote:

:"Patrick Wiseman" <[EMAIL PROTECTED]> writes:
:> On Tue, 17 Jun 2003 at 1:42am, Roberto Sanchez wrote:

[...]

:> :> Anyone know why this is not compiling?
:>
:> No, but I grabbed the 2.4.20 source and had all sorts of other problems.
:> I'm on a 'testing' system; you too?  I suspect it's the testing gcc which
:> is causing the problem (from Googling another error I was getting trying
:> to compile 2.4.20).  Can anyone confirm?
:
:I think, in general, it's best to stick with 2.95 compilers for the
:kernel. There are exceptions, but the easiest route is to use gcc-2.95
:for compiling kernel source. You can do this by editing the
:kernel-source-2.4.20/Makefile and setting HOSTCC=gcc-2.95 and
:CC=$(CROSS_COMPILE)gcc-2.95. If you have external modules you're
:building then you'll also want to add CC=gcc-2.95 to the
:environment. Like:
:
:   CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage kernel_image
:
:and then
:
:CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage modules_image

Thanks!  That worked.  I should pay closer attention - I didn't even know
I still had 2.95 on the system after upgrading, if that's the word, to
testing.

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


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



Re: Kernel will not compile

2003-06-17 Thread Kevin McKinley
On Tue, 17 Jun 2003 09:49:44 -0700
Craig Dickson <[EMAIL PROTECTED]> wrote:

> Gary Hennigan wrote:
> 
> > I think, in general, it's best to stick with 2.95 compilers for the
> > kernel.
> 
> This seems to be the common view of the kernel developers, but I've had
> no trouble building 2.4.20 and .21 kernels using whatever gcc was
> current in Debian unstable at the time (3.3 currently, and I just built
> a .21 kernel the other day with it, which seems to be doing fine).
> 
> It may be relevant that I use kernel source tarballs from kernel.org,
> not Debian packages, and I do not use make-kpkg.

I don't think it's really relevant.

I use both Debian kernel sources and make-kpkg, and it's not a problem for
me.

The problems building kernels with gcc3.3 were similar to the binutils a 
while back -- newer versions spat out bad code that earlier versions
swallowed.

The latest version of kernel-source-2.4.20 fixes the bad code, so the kernel
now builds with gcc3.3.

Kevin


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



Re: Kernel will not compile

2003-06-17 Thread Jozsef Bakosi
I use the deb-packages. On Unstable: kernel-package (8.040), gcc(3.3-2), 
kernel-source-2.4.20 (2.4.20-8). I also had problems before, which could 
be solved by changing the Makefile back to gcc-2.95 (eg. it compiled), 
but now, with the packages above, everything seems to be just fine.

Best wishes,
Jozsef
Craig Dickson wrote:
Gary Hennigan wrote:


I think, in general, it's best to stick with 2.95 compilers for the
kernel.


This seems to be the common view of the kernel developers, but I've had
no trouble building 2.4.20 and .21 kernels using whatever gcc was
current in Debian unstable at the time (3.3 currently, and I just built
a .21 kernel the other day with it, which seems to be doing fine).
It may be relevant that I use kernel source tarballs from kernel.org,
not Debian packages, and I do not use make-kpkg.
Craig




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



Re: Kernel will not compile

2003-06-17 Thread Craig Dickson
Gary Hennigan wrote:

> I think, in general, it's best to stick with 2.95 compilers for the
> kernel.

This seems to be the common view of the kernel developers, but I've had
no trouble building 2.4.20 and .21 kernels using whatever gcc was
current in Debian unstable at the time (3.3 currently, and I just built
a .21 kernel the other day with it, which seems to be doing fine).

It may be relevant that I use kernel source tarballs from kernel.org,
not Debian packages, and I do not use make-kpkg.

Craig


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



Re: Kernel will not compile

2003-06-17 Thread Brian P. Flaherty
"Gary Hennigan" <[EMAIL PROTECTED]> writes:
>
> I think, in general, it's best to stick with 2.95 compilers for the
> kernel. There are exceptions, but the easiest route is to use gcc-2.95
> for compiling kernel source. You can do this by editing the
> kernel-source-2.4.20/Makefile and setting HOSTCC=gcc-2.95 and
> CC=$(CROSS_COMPILE)gcc-2.95. If you have external modules you're
> building then you'll also want to add CC=gcc-2.95 to the
> environment. Like:
>
>CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage kernel_image
>
> and then
>
> CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage modules_image

I bumped into this problem as well yesterday and found builder-cc.  I
am running testing and gcc-3.3 is the default, but builder-cc gives
you two environment variables to set the architecture and gcc-version.
So, instead of editing files, I set DEBIAN_BUILDARCH=pentium and
DEBIAN_BUILDGCCVER=2.95 and off I went.  I assume this will work with
kernel compilation as well as any other compliation.  I was building a
new kernel module and gcc-3.3 was having a lot of problems with my old
kernel source.  See man builder-cc.  Also, thanks to whoever thought of
this way to manage multiple gcc versions.

Brian



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



Re: Kernel will not compile

2003-06-17 Thread Gary Hennigan
"Patrick Wiseman" <[EMAIL PROTECTED]> writes:
> On Tue, 17 Jun 2003 at 1:42am, Roberto Sanchez wrote:
>
> : --- dhobner <[EMAIL PROTECTED]> escribió:
> :> I did the following:
> :>
> :> apt-get install gcc
> :> apt-get install kernel-package
> :> apt-get install kernel-source.2.4.18
> :> apt-get install libc6-dev
> :> apt-get install tk8.3
> :> apt-get install libncurses5-dev
> :>
> :> tar -jxf kernel-source-2.4.18.tar.bz2
> :>
> :> make-kpkg clean
> :>
> :
> :I beleive that you are missing a 'make config' (or menuconfig or xconfig).
>
> No, I'm having the same problem and I made config first.
>
> :Check your kernel-source directory and make sure that the .config exists
> :and has your selected options.
> :
> :> make-kpkg --append-to-version=.030320 kernel_image
> :>
> :> The following error occurs:
> :>
> :> In file included from ksyms.c:50
> :> /usr/src/Kernel-source-2.4.18/include/asm/checksum.h:72:30:Missing
> :> terminating " character
> :> ***other errors after this within the same header file
> :>
> :> Anyone know why this is not compiling?
>
> No, but I grabbed the 2.4.20 source and had all sorts of other problems.
> I'm on a 'testing' system; you too?  I suspect it's the testing gcc which
> is causing the problem (from Googling another error I was getting trying
> to compile 2.4.20).  Can anyone confirm?

I think, in general, it's best to stick with 2.95 compilers for the
kernel. There are exceptions, but the easiest route is to use gcc-2.95
for compiling kernel source. You can do this by editing the
kernel-source-2.4.20/Makefile and setting HOSTCC=gcc-2.95 and
CC=$(CROSS_COMPILE)gcc-2.95. If you have external modules you're
building then you'll also want to add CC=gcc-2.95 to the
environment. Like:

   CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage kernel_image

and then

CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage modules_image


Gary



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



Re: Kernel will not compile

2003-06-16 Thread Patrick Wiseman
On Tue, 17 Jun 2003 at 1:42am, Roberto Sanchez wrote:

: --- dhobner <[EMAIL PROTECTED]> escribió:
:> I did the following:
:>
:> apt-get install gcc
:> apt-get install kernel-package
:> apt-get install kernel-source.2.4.18
:> apt-get install libc6-dev
:> apt-get install tk8.3
:> apt-get install libncurses5-dev
:>
:> tar -jxf kernel-source-2.4.18.tar.bz2
:>
:> make-kpkg clean
:>
:
:I beleive that you are missing a 'make config' (or menuconfig or xconfig).

No, I'm having the same problem and I made config first.

:Check your kernel-source directory and make sure that the .config exists
:and has your selected options.
:
:> make-kpkg --append-to-version=.030320 kernel_image
:>
:> The following error occurs:
:>
:> In file included from ksyms.c:50
:> /usr/src/Kernel-source-2.4.18/include/asm/checksum.h:72:30:Missing
:> terminating " character
:> ***other errors after this within the same header file
:>
:> Anyone know why this is not compiling?

No, but I grabbed the 2.4.20 source and had all sorts of other problems.
I'm on a 'testing' system; you too?  I suspect it's the testing gcc which
is causing the problem (from Googling another error I was getting trying
to compile 2.4.20).  Can anyone confirm?

Patrick


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



Re: Kernel will not compile

2003-06-16 Thread Roberto Sanchez
 --- dhobner <[EMAIL PROTECTED]> escribió: 
> I did the following:
> 
> apt-get install gcc
> apt-get install kernel-package
> apt-get install kernel-source.2.4.18
> apt-get install libc6-dev
> apt-get install tk8.3
> apt-get install libncurses5-dev
> 
> tar -jxf kernel-source-2.4.18.tar.bz2
> 
> make-kpkg clean
> 

I beleive that you are missing a 'make config' (or menuconfig or xconfig).
Check your kernel-source directory and make sure that the .config exists
and has your selected options.

> make-kpkg --append-to-version=.030320 kernel_image
> 
> The following error occurs:
> 
> In file included from ksyms.c:50
> /usr/src/Kernel-source-2.4.18/include/asm/checksum.h:72:30:Missing
> terminating " character
> ***other errors after this within the same header file
> 
> Anyone know why this is not compiling?
> 
>

-Roberto Sanchez


___
Yahoo! Sorteos  -  http://loteria.yahoo.es
Juega a la Lotería Primitiva sin salir de casa


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



Re: Kernel will not compile

2003-06-16 Thread Colin Watson
On Mon, Jun 16, 2003 at 11:30:53AM -0400, dhobner wrote:
> I did the following:
> 
> apt-get install gcc
> apt-get install kernel-package
> apt-get install kernel-source.2.4.18
> apt-get install libc6-dev
> apt-get install tk8.3
> apt-get install libncurses5-dev
> 
> tar -jxf kernel-source-2.4.18.tar.bz2
> 
> make-kpkg clean
> 
> make-kpkg --append-to-version=.030320 kernel_image
> 
> The following error occurs:
> 
> In file included from ksyms.c:50
> /usr/src/Kernel-source-2.4.18/include/asm/checksum.h:72:30:Missing
> terminating " character
> ***other errors after this within the same header file
> 
> Anyone know why this is not compiling?

asm/checksum.h in kernel 2.4.18 contained incorrect code which gcc 3.2
and earlier let it get away with but gcc 3.3 rejects. Either use gcc
2.95 or 3.2, or get a newer kernel: for example, 2.4.20 has fixed that
particular mistake.

-- 
Colin Watson  [EMAIL PROTECTED]


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



Kernel will not compile

2003-06-16 Thread dhobner
I did the following:

apt-get install gcc
apt-get install kernel-package
apt-get install kernel-source.2.4.18
apt-get install libc6-dev
apt-get install tk8.3
apt-get install libncurses5-dev

tar -jxf kernel-source-2.4.18.tar.bz2

make-kpkg clean

make-kpkg --append-to-version=.030320 kernel_image

The following error occurs:

In file included from ksyms.c:50
/usr/src/Kernel-source-2.4.18/include/asm/checksum.h:72:30:Missing
terminating " character
***other errors after this within the same header file

Anyone know why this is not compiling?


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