Hi

I've just failed to build a kernel and figured out that using gcc 3.3 is
not the best way to get my kernel compiled.

I recall that the issue of problem overriding the version of gcc when
using make-kpkg . 

I see the following in /usr/bin/make-kpkg:

  my $cc = $ENV{'CC'};
  $cc =~ s/^\s+//g;
  $cc =~ s/\s+$//g;
  $cc .= " ";
  if ($cc eq ' ') { $cc = $cross_compile; $cc .= "gcc "; };

  #$cc .= " -D__KERNEL__ -I";
  #chomp($cc .= `pwd`);
  #$cc .= "/include";

  # For some reason, this causes all modules to fail
  #$command .= " CC=\"$cc\" HOSTCC=\"$hostcc\"";
  $command .= " $Targets";
  # print STDERR $command;
  exec $command;

So the following trivial change seems to do the trick:

--- /tmp/make-kpkg_orig 2003-06-12 02:08:45.000000000 +0300
+++ /usr/bin/make-kpkg  2003-06-12 02:09:21.000000000 +0300
@@ -962,7 +962,7 @@
   #$cc .= "/include";
 
   # For some reason, this causes all modules to fail
-  #$command .= " CC=\"$cc\" HOSTCC=\"$hostcc\"";
+  $command .= " CC=\"$cc\" HOSTCC=\"$hostcc\"";
   $command .= " $Targets";
   # print STDERR $command; 
   exec $command; 


But this looked too simple to last that much unfixed, and indeed
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=196197 suggests
that this is not the way to go.

Anyway, I have just had the building with gcc-2.95 fail at the same
file. The problem seems to be in the uml patch :-(

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to