Hi Ben, hi list,

On Thu, Jun 16, 2005 at 08:20:45 +0200, Benoit Audouard wrote:

> - current gcc version: 3.3.6
> - gcc version used for kernel: linux
> 
> Did someone else encountered a similar problem ?

Yes.  ;-)

Well, first of all, it seems that
extract_release /proc/version "gcc version"
failed. This is what is being done in ./configure. So perhaps
/proc/version has some peculiar stuff in it on Knoppix.

I don't want to boot Knoppix right now, so I can't check.

By the way, I have encountered a similar problem which needs to be
fixed. The named section of ./configure tries to reassure that the
module is built with the same compiler as the kernel. Yet if I redefine
the compiler - e.g. exactly for that reason - the script won't honor
it:
CC=gcc32 ./configure
It still complains although I'm trying to force the correct compiler
version.

I'm attaching a patch to fix this. In its comment, I wrote that I
assume gcc, but actually this would also work with icc (Intel C++
Compiler), if you went through the pain of building the kernel with it.
I haven't tried though.  ;-) (I know of no other compilers which are
capable of compiling the kernel.)

Regards,
Moritz
diff -ur eagle-usb-2.3.2/configure eagle-usb-2.3.2-gcc/configure
--- eagle-usb-2.3.2/configure   2005-05-30 02:38:51.000000000 +0200
+++ eagle-usb-2.3.2-gcc/configure       2005-06-03 21:01:54.000000000 +0200
@@ -5809,7 +5809,8 @@
 fi
 
 # ===== check for gcc version =====
-GCC_VERSION="`gcc -dumpversion`"
+# assuming kernel was also built with gcc, and $CC is set
+GCC_VERSION="`$CC -dumpversion`"
 GCC_VERSION_KERNEL=`extract_release /proc/version "gcc version"`
 #GCC_VERSION_MODULE="`/usr/sbin/eaglectrl -v | sed -n -e 's/Compiled with gcc 
//p;T;Q' | cut -d' ' -f1`"
 
diff -ur eagle-usb-2.3.2/configure.in eagle-usb-2.3.2-gcc/configure.in
--- eagle-usb-2.3.2/configure.in        2005-03-29 01:49:23.000000000 +0200
+++ eagle-usb-2.3.2-gcc/configure.in    2005-06-03 21:00:57.000000000 +0200
@@ -301,7 +301,8 @@
 fi
 
 # ===== check for gcc version =====
-GCC_VERSION="`gcc -dumpversion`"
+# assuming kernel was also built with gcc, and $CC is set
+GCC_VERSION="`$CC -dumpversion`"
 GCC_VERSION_KERNEL=`extract_release /proc/version "gcc version"`
 #GCC_VERSION_MODULE="`/usr/sbin/eaglectrl -v | sed -n -e 's/Compiled with gcc 
//p;T;Q' | cut -d' ' -f1`"
 

Reply via email to