Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Many errors in compile
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
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 1:43 am    Post subject: Many errors in compile Reply with quote

I'm kinda new at gentoo linux but i've gotten as far as compiling the kernel with the help of a friend. But the kernel doesn't seem right since it doesn't boot at all and it just says in LILO,
Loading Linux....................
BIOS data check

But back to the compiling.
There are plenty of errors during the process:
Code:
ypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=context  -DEXPORT_SYMTAB -c context.c
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 context.c:16:
/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/module.h:12,
                 from context.c:16:
/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/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 context.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/timer.h:30:1: warning: "del_timer_sync" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/modversions.h:163,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from context.c:16:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/ksyms.ver:594:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from context.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/smp.h:80:1: warning: "smp_num_cpus" 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 context.c:16:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:86:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from context.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/smp.h:89:1: warning: "smp_call_function" 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 context.c:16:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:102:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:23,
                 from context.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/smp.h:90:1: warning: "cpu_online_map" 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 context.c:16:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/i386_ksyms.ver:88:1: warning: this is the location of the previous definition
In file included from context.c:18:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/sched.h:520:1: warning: "set_cpus_allowed" redefined
In file included from /usr/src/linux-2.4.20-gentoo-r1/include/linux/modversions.h:163,
                 from /usr/src/linux-2.4.20-gentoo-r1/include/linux/module.h:21,
                 from context.c:16:
/usr/src/linux-2.4.20-gentoo-r1/include/linux/modules/ksyms.ver:686:1: warning: this is the location of the previous definition
context.c: In function `context_thread':
context.c:113: warning: no return statement in function returning non-void
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=futex  -c -o futex.o futex.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=uid16  -c -o uid16.o uid16.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c ksyms.c
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:163,
                 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:163,
                 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
cdimage linux #

The whole compiling process takes about 5 minutes on a AMD K6-3/450 processor with 196 megs of ram, which is WAY too fast from what i'm told by a friend.

Anyone have a clue what these errors are about?
Back to top
View user's profile Send private message
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 1:46 am    Post subject: Reply with quote

To follow up on the first part where i talk about the booting with LILO, after it displays BIOS data check, it then reboots where, if left untouched, would continue in a reboot loop.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Mar 25, 2003 2:13 am    Post subject: Reply with quote

Compiling a kernel for the wrong CPU type can cause it to reboot as soon as the kernel starts.
I noticed -march=i686 in your compiler output. It should be -march=k6-3 or -march=i586 for your CPU.
Back to top
View user's profile Send private message
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 2:47 am    Post subject: Reply with quote

That's weird, because in make.conf, it says:
Code:
CFLAGS="-mcpu=k6-3 -O3 -pipe


Here are most of the commands from make.conf:
Code:

CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-3 -O3 -pipe"
CXXFLAGS="${CFLAGS}"


Everything else besides a couple of portage directories are commented out.

I don't know why it still is using i686. Emerge -p system does nothing. I started from stage2 using the i586 1.4_rc2 package. Does that have anything to do with it?
Back to top
View user's profile Send private message
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 2:55 am    Post subject: Reply with quote

Even after changing make.conf to -march=k6-3, compiling still has i686.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Mar 25, 2003 2:55 am    Post subject: Reply with quote

/etc/make.conf settings affect everything except your kernel.
The kernel has its own settings in "make menuconfig"
Code:
Processor type and features  --->
(K6/K6-II/K6-III) Processor family

Press <enter> to change this setting.
Back to top
View user's profile Send private message
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 3:00 am    Post subject: Reply with quote

I can't find (K6/K6-II/K6-III) Processor family under Processor type and features ---> or anywhere else. Nothing about K6's in any other menu.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Mar 25, 2003 3:10 am    Post subject: Reply with quote

It is on the first line, and it probably says :
Code:
(Pentium-III/Celeron(Coppermine)) Processor family

I think pentium3 is the default.
Back to top
View user's profile Send private message
kwispy
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 82

PostPosted: Tue Mar 25, 2003 3:12 am    Post subject: Reply with quote

oooh jeez, i didn't even know that was a menu. hehe.

Thanks alot for your time.
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