[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel source and gcc-4.0



On Mon, 29 Aug 2005 the mental interface of
Jerome BENOIT told:

> 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 ?

Edit the Makefile in sourcetree as follows:

--- Makefile.orig       2005-08-31 00:45:04.395163464 +0200
+++ Makefile    2005-08-31 00:44:12.619034632 +0200
@@ -204,6 +204,7 @@
 HOSTCC         = gcc
 HOSTCXX        = g++
 HOSTCFLAGS     = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
+                 -Wno-pointer-sign
 HOSTCXXFLAGS   = -O2

 #      Decide whether to build built-in, modular, or both.
 #

HTH
Elimar

-- 
  Experience is something you don't get until 
  just after you need it!



Reply to: