Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources 2.4.20 won't compile!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
blamothe
Apprentice
Apprentice


Joined: 31 Jan 2003
Posts: 231
Location: Cambridge Mass

PostPosted: Fri Mar 14, 2003 6:20 am    Post subject: gentoo-sources 2.4.20 won't compile!! Reply with quote

i just upgraded to gentoo-sources 2.4.20 from 2.4.19, but each time I try to compile it, it won't, it always spits out this same error:

make[3]: Entering directory `/usr/src/linux-2.4.20-gentoo-r1/drivers/i2c'
rm -f i2c.o
ld -m elf_i386 -r -o i2c.o i2c-core.o i2c-dev.o i2c-algo-bit.o i2c-elv.o i2c-velleman.o i2c-pport.o i2c-algo-pcf.o i2c-elektor.o i2c-pcf-epp.o
i2c-pcf-epp.o(.data+0x14): multiple definition of `irq_driver_lock'
i2c-elektor.o(.data+0x8): first defined here
make[3]: *** [i2c.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/drivers/i2c'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/drivers/i2c'
make[1]: *** [_subdir_i2c] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/drivers'
make: *** [_dir_drivers] Error 2

what should i do, how do i fix this. Also, another related question, is vanilla sources a better choice than gentoo-sources? thanks
Back to top
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Fri Mar 14, 2003 8:14 am    Post subject: Reply with quote

Code:
 is vanilla sources a better choice than gentoo-sources?


As far as I know, the gentoo-source is just a patched version of vanilla. Looks like your problem is the lm_sensors/i2c patch. Try the vanilla source and see if that work.
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Fri Mar 14, 2003 12:00 pm    Post subject: Reply with quote

Do you need I2C?? Not very common hardware for the home user. Disable it in the config file.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Fri Mar 14, 2003 12:07 pm    Post subject: Reply with quote

I get this error.. now I don't know which option I turned on that caused this
and I'd be realy glad if someone could help me point that out.


Code:

In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/modversions.h:134,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:82:1: warning: "cpu_data" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/list.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/wait.h:14,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/include/linux/modversions.h:134,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:86:1: warning: "smp_num_cpus" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/include/linux/modversions.h:134,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:88:1: warning: "cpu_online_map" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/include/linux/modversions.h:134,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:102:1: warning: "smp_call_function" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/include/linux/modversions.h:162,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/ksyms.ver:594:1: warning: "del_timer_sync" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/ext3_fs_sb.h:20,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/fs.h:691,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/binfmts.h:6,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/include/linux/modversions.h:162,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/ksyms.ver:686:1: warning: "set_cpus_allowed" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:520:1: warning: this is the location of the previous definition
In file included from ksyms.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel_stat.h:58: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel_stat.h:58: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.20-gentoo-r1/include/linux/kernel_stat.h:58: for each function it appears in.)
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/interrupt.h:45,
                 from ksyms.c:22:
/usr/src/linux-2.4.20-gentoo-r1/include/asm/hardirq.h:41:1: warning: "synchronize_irq" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/modversions.h:134,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from ksyms.c:15:
/usr/src/linux-2.4.20-gentoo-r1/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-r1/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r1/kernel'
make: *** [_dir_kernel] Error 2
Back to top
View user's profile Send private message
wolf@zh
n00b
n00b


Joined: 14 Feb 2003
Posts: 72

PostPosted: Fri Mar 14, 2003 12:14 pm    Post subject: mrproper Reply with quote

hmmm...i once had an similar error, because i compiled smp into my first kernel....just save your kernel-configfile and then #make mrproper before compling the new kernel
Back to top
View user's profile Send private message
blamothe
Apprentice
Apprentice


Joined: 31 Jan 2003
Posts: 231
Location: Cambridge Mass

PostPosted: Sat Mar 15, 2003 12:17 am    Post subject: Reply with quote

ok, I run a p4 with gcc>3.1, vanilla sources won't compile and I think thats why. gentoo-sources-2.4.19 compiled fine, but I can't seem to get 2.4.20 to work. I don't think I enabled I2C, but I can check again. Last time, I didn't enable grsecurity, but the kernel didn't compile because of some error in that function, I think this may be the same type of thing, but it just isn't fixed in the same way.
Back to top
View user's profile Send private message
pheph
n00b
n00b


Joined: 26 Mar 2003
Posts: 1

PostPosted: Wed Mar 26, 2003 8:12 pm    Post subject: Reply with quote

I was getting the exact same error message (second one, involving ksyms.o), but when I compiled with SMP, the problem went away (sytem does not need SMP).

wolf@zh's solution worked for me... 'make clean' didn't even solve my problem... I had to backup my .config and 'make mrproper'. This was for recompling the 2.4.20-r2 kernel after booting into my new Gentoo 1.4rc3 system.
Back to top
View user's profile Send private message
quikchaos
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 107

PostPosted: Sat Mar 29, 2003 10:05 pm    Post subject: Re: mrproper Reply with quote

wolf@zh wrote:
hmmm...i once had an similar error, because i compiled smp into my first kernel....just save your kernel-configfile and then #make mrproper before compling the new kernel


Thanks a bunch. I was getting the same compile error about ksyms.o. I had grsecurity built in my previous, but not in this one.

Doing a make mrproper cleared it up and is compiling just fine now.
_________________
"Whether you think you can or you think you can't... you're right." -- Henry Ford
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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