Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-13-2004, 08:08 AM   #1
LQ Newbie
Registered: Feb 2004
Location: france
Distribution: gnome2.6/gnu-linux-2.4.26(from scratch ~almost,i.e.suse7.0)
Posts: 3

Rep: Reputation: 0
kernel build from gcc 3.3.2 to gcc 3.4.1

hello everybody,

i am running a kernel 2.4.26 on my Pentium II ... i was using my favorite gnome gcc 3.3.2
with a glibc 2.3.2, trying to follow the evolution of the desktop gnome 2.6, 2.7, ... 2.8 (soon) !

once, i decided to build and use the next generation of gcc aka 3.4.1 ! no problem to build and install this new compiler ! but since this time, i'm not able to build my kernel anymore

the following is the problem reported by the link editor :

gcc -D__KERNEL__ -I/home/builds/gnome/linux-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /home/builds/gnome/linux-2.4.26/include/linux/sched.h:23,
from /home/builds/gnome/linux-2.4.26/include/linux/mm.h:4,
from /home/builds/gnome/linux-2.4.26/include/linux/slab.h:14,
from /home/builds/gnome/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/builds/gnome/linux-2.4.26/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/home/builds/gnome/linux-2.4.26/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
/home/builds/gnome/linux-2.4.26/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/home/builds/gnome/linux-2.4.26/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
In file included from /home/builds/gnome/linux-2.4.26/include/linux/unistd.h:9,
from init/main.c:17:
/home/builds/gnome/linux-2.4.26/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1

some of the standard header files may have changed ???
may somebody help ?
Old 09-13-2004, 08:19 AM   #2
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Building Kernel with gcc other than 2.05


AFAIK the only valid gcc for building the kernel is 2.95

The docs says it can be done with the newer once,
but it must not nececarily work.

I don't know about your settup,
but under debian it is no problem to have have several gcc versions installed simultantiously.
Then you can selext the gcc to use before you compile the kernel.

(I think it is with "update-allternatives"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel build problems -how to install older gcc version? kpachopoulos Fedora 3 07-04-2005 08:56 AM
Which there another book? matthewa Linux From Scratch 4 04-06-2005 06:40 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Can't build from sources - gcc problem jaybee Linux - Software 1 06-19-2004 10:26 AM
How can I use gcc to build a static library? vtluu Red Hat 1 04-12-2004 10:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration