mondave
February 17th, 2005, 07:52 PM
Hi,
I'm getting a compile failure when I try to compile the kernel with gcc 2.95 . With gcc 3.3.4 things work fine.
Here's the commands that I am using to do the build:
apt-get install linux-source-2.6.8.1
tar xvfj linux-source-2.6.8.1.tar.bz2
cd linux-source-2.6.8.1
cp /boot/config-2.6.8.1-3-686 .config
make-kpkg clean
MAKEFLAGS="CC=gcc-2.95" make-kpkg --initrd --append-to-version=-e kernel_image
With these commands, I eventually get the following compile error:
CC [M] drivers/isdn/hardware/mISDN/layer2.o
CC [M] drivers/isdn/hardware/mISDN/tei.o
CC [M] drivers/isdn/hardware/mISDN/x25_dte.o
CC [M] drivers/isdn/hardware/mISDN/x25_l3.o
CC [M] drivers/isdn/hardware/mISDN/sedl_fax.o
CC [M] drivers/isdn/hardware/mISDN/isar.o
drivers/isdn/hardware/mISDN/isar.c: In function `isar_down':
drivers/isdn/hardware/mISDN/isar.c:1655: parse error before `)'
make[5]: *** [drivers/isdn/hardware/mISDN/isar.o] Error 1
make[4]: *** [drivers/isdn/hardware/mISDN] Error 2
make[3]: *** [drivers/isdn/hardware] Error 2
make[2]: *** [drivers/isdn] Error 2
make[1]: *** [drivers] Error 2
If I start over, but change the compiler version as follows :
make-kpkg --initrd --append-to-version=-g kernel_image
Then I get no errors.
I'm not sure if this is a problem or not. The linux source documentation says to use gcc 2.95.X ( X >= 3 ) but I see lots of comments that indicate that gcc 3.3 or higher should work as well.
My questions are:
What are the risks/concerns of using gcc 3.3 ( or other ) compiler?
What am I doing wrong that causes me to run into this compile error?
Thanks
- Dave
Here is the output from gcc -v and gcc-2.95 -v :
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)
root@ruby:/usr/src # gcc-2.95 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
I'm getting a compile failure when I try to compile the kernel with gcc 2.95 . With gcc 3.3.4 things work fine.
Here's the commands that I am using to do the build:
apt-get install linux-source-2.6.8.1
tar xvfj linux-source-2.6.8.1.tar.bz2
cd linux-source-2.6.8.1
cp /boot/config-2.6.8.1-3-686 .config
make-kpkg clean
MAKEFLAGS="CC=gcc-2.95" make-kpkg --initrd --append-to-version=-e kernel_image
With these commands, I eventually get the following compile error:
CC [M] drivers/isdn/hardware/mISDN/layer2.o
CC [M] drivers/isdn/hardware/mISDN/tei.o
CC [M] drivers/isdn/hardware/mISDN/x25_dte.o
CC [M] drivers/isdn/hardware/mISDN/x25_l3.o
CC [M] drivers/isdn/hardware/mISDN/sedl_fax.o
CC [M] drivers/isdn/hardware/mISDN/isar.o
drivers/isdn/hardware/mISDN/isar.c: In function `isar_down':
drivers/isdn/hardware/mISDN/isar.c:1655: parse error before `)'
make[5]: *** [drivers/isdn/hardware/mISDN/isar.o] Error 1
make[4]: *** [drivers/isdn/hardware/mISDN] Error 2
make[3]: *** [drivers/isdn/hardware] Error 2
make[2]: *** [drivers/isdn] Error 2
make[1]: *** [drivers] Error 2
If I start over, but change the compiler version as follows :
make-kpkg --initrd --append-to-version=-g kernel_image
Then I get no errors.
I'm not sure if this is a problem or not. The linux source documentation says to use gcc 2.95.X ( X >= 3 ) but I see lots of comments that indicate that gcc 3.3 or higher should work as well.
My questions are:
What are the risks/concerns of using gcc 3.3 ( or other ) compiler?
What am I doing wrong that causes me to run into this compile error?
Thanks
- Dave
Here is the output from gcc -v and gcc-2.95 -v :
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)
root@ruby:/usr/src # gcc-2.95 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)