Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo-sources r7 not compiling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Bouncelot
n00b
n00b


Joined: 09 Sep 2003
Posts: 56

PostPosted: Fri Sep 19, 2003 1:03 pm    Post subject: Gentoo-sources r7 not compiling Reply with quote

Not sure if this is the right forum, but it seemed the most relevent. I am getting an error(output below) while trying to compile the r7 kernel. It just a series of warning followed by a broken build....I have tried removing every option that seemed to these messages with no luck. anyone know what may be causing this?

-----------------------------------------------------------
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium3 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium3 " -C kernel
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r7/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r7/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium3 -nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB -c ksyms.c
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:137,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/i386_ksyms.ver:82:1: warning: "cpu_data" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/list.h:6,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/wait.h:14,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/fs.h:12,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/capability.h:17,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/binfmts.h:6,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:9,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/asm/processor.h:80:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:137,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/i386_ksyms.ver:86:1: warning: "smp_num_cpus" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:23,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/smp.h:80:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:137,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/i386_ksyms.ver:88:1: warning: "cpu_online_map" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:23,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/smp.h:90:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:137,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/i386_ksyms.ver:102:1: warning: "smp_call_function" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:23,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/smp.h:89:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:174,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/ksyms.ver:596:1: warning: "del_timer_sync" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/ext3_fs_sb.h:20,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/fs.h:692,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/capability.h:17,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/binfmts.h:6,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:9,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/timer.h:30:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:174,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/ksyms.ver:688:1: warning: "set_cpus_allowed" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/slab.h:14,
from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/sched.h:539:1: warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.20-gentoo-r7/include/linux/kernel_stat.h:58: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.20-gentoo-r7/include/linux/kernel_stat.h:58: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.20-gentoo-r7/include/linux/kernel_stat.h:58: for each function it appears in.)
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/interrupt.h:45,
from ksyms.c:21:
/usr/src/linux-2.4.20-gentoo-r7/include/asm/hardirq.h:41:1: warning: "synchronize_irq" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r7/include/linux/modversions.h:137,
from /usr/src/linux-2.4.20-gentoo-r7/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux-2.4.20-gentoo-r7/include/linux/modules/i386_ksyms.ver:90:1: warning: this is the location of the previous definition
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r7/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r7/kernel'
make: *** [_dir_kernel] Error 2
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Sep 19, 2003 2:21 pm    Post subject: Reply with quote

did you give 'make mrproper' a try?
Code:

cd /usr/src/linux-2.4.20-gentoo-r7
cp .config /root
make mrproper
mv /root/.config .
make dep && make clean bzImage modules modules_install
Back to top
View user's profile Send private message
Bouncelot
n00b
n00b


Joined: 09 Sep 2003
Posts: 56

PostPosted: Fri Sep 19, 2003 3:57 pm    Post subject: Reply with quote

I didn't know about mrproper, still a little new to all this ;)

running it seems to have made things worse, not I am getting a bunch of "don't know how to make target" for all sorts of include files. I am gona try un unmerger and merge, I think the tree is messed up somehow.
Back to top
View user's profile Send private message
Bouncelot
n00b
n00b


Joined: 09 Sep 2003
Posts: 56

PostPosted: Fri Sep 19, 2003 4:32 pm    Post subject: No go Reply with quote

I did a:
emerge -C gentoo-sources
emerge gentoo-sources

and the "don't know how to make target" (/usr/src/linux-2.4.20-gentoo-r7/include/autoconf.h being the first one listed)
errors are still there. Is there a special way to clean? after the unmerge shouls I be removing the all the contents of /usr/src/ ?
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Fri Sep 19, 2003 4:37 pm    Post subject: Reply with quote

Did you remember to cp your config back to /usr/src/linux or make a new one with make menuconfig? If you don't have a .config I don't think you'll be able to compile it with "make bzImage modules".
Anyway, I had problems compiling r7 myself.

Considering the ChangeLog,

Quote:
*gentoo-sources-2.4.20-r7 (11 Sep 2003)

11 Sep 2003; <plasmaroo@gentoo.org> gentoo-sources-2.4.20-r7.ebuild,
files/gentoo-sources-2.4.20-gcc33.patch:
Added GCC3.3 compatibility patch.

08 Sep 2003; Martin Holzer <mholzer@gentoo.org>
gentoo-sources-2.4.19-r10.ebuild, gentoo-sources-2.4.20-r5.ebuild,
gentoo-sources-2.4.20-r6.ebuild:
SRC now uses mirror://kernel


I'd stick with r6 unless you are using GCC3.3.

EDIT: you can do "rm -rf /usr/src/linux/ && rm -rf linux-2.4.20-gentoo-r7" after emerge -C to make sure all files are gone.
_________________
Hello.
Back to top
View user's profile Send private message
Bouncelot
n00b
n00b


Joined: 09 Sep 2003
Posts: 56

PostPosted: Fri Sep 19, 2003 4:42 pm    Post subject: Reply with quote

hmmm, I didn't notice that. thanks.
I think I will stick with r6 for now.
Back to top
View user's profile Send private message
yanos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 149
Location: montreal, canada

PostPosted: Fri Sep 26, 2003 4:32 pm    Post subject: Reply with quote

i got the same error as you (problems with autoconf.h after an 'make mrproper'). To fix this, you just have to do a 'make menuconfig' and then exiting without changing anything and answer 'yes' when it ask to save your config. 'make dep' after and you'll see no error.
Back to top
View user's profile Send private message
yanos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 149
Location: montreal, canada

PostPosted: Fri Sep 26, 2003 4:33 pm    Post subject: Reply with quote

i got the same error as you (problems with autoconf.h after an 'make mrproper'). To fix this, you just have to do a 'make menuconfig' and then exiting without changing anything and answer 'yes' when it ask to save your config. 'make dep' after and you'll see no error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum