Simon,

IIRC the suggested gcc version was 2.95..

I ended up changed the symlink gcc pointing to gcc-2.95. 

I tried passing the CC override as suggested by Gus and others but I
ended up sth similar - doesn't seems to use v2.95.


On Mon, Jun 16, 2003 at 11:38:50AM +1000, Simon Wong wrote:
> On Thu, 2003-06-12 at 16:12, Chris D. wrote:
> > gcc-3.3 can't build 2.4 kernels up to 2.4.21.
> 
> Bum!  I'm trying to build 2.4.20.
> 
> > Change your toplevel (of the kernel source) Makefile so that CC =
> > gcc-3.2 or gcc-2.95 and install the appropriate version (e.g. apt-get install
> > gcc-3.2)
> 
> I have changed the Makefile so that:
> 
>       HOSTCC          = gcc-3.2
>       ...
>       CC              = $(CROSS_COMPILE)gcc-3.2
> 
> I also tried setting both to gcc-2.95.
> 
> I'm now getting errors in the kernel build portion:
>       
>     gcc-3.2 -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall
>     -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
>     -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
>     -march=i686   -nostdinc -iwithprefix include
>     -DKBUILD_BASENAME=sys_i386  -c -o sys_i386.o sys_i386.c
>     sys_i386.c: In function `do_mmap2':
>     sys_i386.c:59: warning: passing arg 1 of `do_mmap_pgoff' from
>     incompatible pointer type
>     sys_i386.c:59: warning: passing arg 2 of `do_mmap_pgoff' makes
>     pointer from integer without a cast
>     sys_i386.c:59: too few arguments to function `do_mmap_pgoff'
>     make[2]: *** [sys_i386.o] Error 1
>     make[2]: Leaving directory
>     `/usr/src/kernel-source-2.4.20/arch/i386/kernel'
>     make[1]: *** [_dir_arch/i386/kernel] Error 2
>     make[1]: Leaving directory `/usr/src/kernel-source-2.4.20'
>     make: *** [stamp-build] Error 2
> 
> The commands I am using are:
> 
>     $ fakeroot make-kpkg clean
>     
>     $ fakeroot make-kpkg --config=xconfig --append-to-version=".160603"
>     --revision="lonewolf01" --added-patches="freeswan"
>     --added-modules="drm-trunk,atmelwlandriver-source,qce-source-0.40d-2" 
> kernel_image modules_image
> 
> 
> Any help would be much appreciated.
> 
> I have also tried rebuilding my current 2.4.19 kernel with the Makefile
> set to use gcc-2.95 and it works OK.
> 
> Thanks.
> 
> 
> 
> -- 
> **************
> * Simon Wong *
> **************
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to