Kernel Compile Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  I am new to this mailing list...
and i am doing the kernel build first time....

I installed Redhat 7.8 on my DELL laptop..
I installed kernel source(2.4.18-14) code also..

then i did following...

make mrproper

I copied /boot/config-2.4.18.14 to
/usr/src/linux-2.4.18-14/.config

the i did make oldconfig
then make dep
the make bzImage
and i got following erros...
------------
yms.c:104: redefinition of
`__kstrtab___start___kallsyms'
ksyms.c:95: `__kstrtab___start___kallsyms' previously
defined here
ksyms.c:104: redefinition of
`__ksymtab___start___kallsyms'
ksyms.c:95: `__ksymtab___start___kallsyms' previously
defined here
ksyms.c:105: redefinition of
`__kstrtab___stop___kallsyms'
ksyms.c:96: `__kstrtab___stop___kallsyms' previously
defined here
ksyms.c:105: redefinition of
`__ksymtab___stop___kallsyms'
ksyms.c:96: `__ksymtab___stop___kallsyms' previously
defined here
ksyms.c:106: redefinition of
`__kstrtab_kallsyms_symbol_to_address'
ksyms.c:97: `__kstrtab_kallsyms_symbol_to_address'
previously defined here
ksyms.c:106: redefinition of
`__ksymtab_kallsyms_symbol_to_address'
ksyms.c:97: `__ksymtab_kallsyms_symbol_to_address'
previously defined here
ksyms.c:107: redefinition of
`__kstrtab_kallsyms_address_to_symbol'
ksyms.c:98: `__kstrtab_kallsyms_address_to_symbol'
previously defined here
ksyms.c:107: redefinition of
`__ksymtab_kallsyms_address_to_symbol'
ksyms.c:98: `__ksymtab_kallsyms_address_to_symbol'
previously defined here
{standard input}: Assembler messages:
{standard input}:164: Error: symbol
`__kstrtab___start___kallsyms' is already defined
{standard input}:171: Error: symbol
`__ksymtab___start___kallsyms' is already defined
{standard input}:178: Error: symbol
`__kstrtab___stop___kallsyms' is already defined
{standard input}:185: Error: symbol
`__ksymtab___stop___kallsyms' is already defined
{standard input}:193: Error: symbol
`__kstrtab_kallsyms_symbol_to_address' is already
defined
{standard input}:200: Error: symbol
`__ksymtab_kallsyms_symbol_to_address' is already
defined
{standard input}:208: Error: symbol
`__kstrtab_kallsyms_address_to_symbol' is already
defined
{standard input}:215: Error: symbol
`__ksymtab_kallsyms_address_to_symbol' is already
defined
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory
`/usr/src/linux-2.4.18-14/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.4.18-14/kernel'
make: *** [_dir_kernel] Error 2
[root@x1-6-00-08-74-39-ec-cc linux-2.4.18-14]# gcc -v
Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux
--with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
[root@x1-6-00-08-74-39-ec-cc linux-2.4.18-14]#
-------


what couldbe the reasons for these errors...

Then i downloaded the linux-2.4.21 src tree....

here also i did same...
1. make mrproper
2. 
cp /boot/config-2.4.18.14 
/home/madhu/kernel_src_2.4.21/linux-2.4.21/.config

3. make oldconfig

4. make dep

5. make bzImage

6. make modules

Here i got following errors...

--------
madhu/kernel_src_2.4.21/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/home/madhu/kernel_src_2.4.21/linux-2.4.21/include/linux/modversions.h
 -nostdinc -iwithprefix include
-DKBUILD_BASENAME=scsi_syms  -DEXPORT_SYMTAB -c
scsi_syms.c
ld -m elf_i386 -r -o scsi_mod.o scsi.o hosts.o
scsi_ioctl.o constants.o scsicam.o scsi_proc.o
scsi_error.o scsi_obsolete.o scsi_queue.o scsi_lib.o
scsi_merge.o scsi_dma.o scsi_scan.o scsi_syms.o
ln -sf sim710.scr fake7.c
gcc -E -D__KERNEL__
-I/home/madhu/kernel_src_2.4.21/linux-2.4.21/include
-traditional -DCHIP=710 fake7.c | grep -v '^#' | perl
-s script_asm.pl -ncr710
script_asm.pl : Illegal combination of registers in
line 72 :   MOVE CTEST7 & 0xef TO CTEST7
        Either source and destination registers must
be the same,
        or either source or destination register must
be SFBR.
make[2]: *** [sim710_d.h] Error 255
make[2]: Leaving directory
`/home/madhu/kernel_src_2.4.21/linux-2.4.21/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory
`/home/madhu/kernel_src_2.4.21/linux-2.4.21/drivers'
make: *** [_mod_drivers] Error 2
[madhu@x1-6-00-08-74-39-ec-cc linux-2.4.21]$
---------

What could be the reasons ?

I appreciate u r help...


thanks in advance
-Madhu




__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux