Problems compiling kernel

Problems compiling kernel

Post by Mats A Gransko » Mon, 20 Oct 1997 04:00:00



[ Article reposted from comp.os.linux.hardware ]

[ Posted on 19 Oct 1997 15:46:38 GMT ]

After I configured my new kernel 2.0.28 I tried to
"make dep" but get the following error messages:


gcc -I/usr/src/linux/include -O2 -fomit-frame-pointer -o
scripts/mkdep/scripts/mkdep.c
In file included from /usr/include/stdio.h:34,
                 from scripts/mkdep.c:1:
/usr/include/libio.h:30: _G_config.h: No such file or directory
scripts/mkdep.c:2: stdlib.h: No such file or directory
scripts/mkdep.c:6: sys/stat.h: No such file or directory
scripts/mkdep.c:7: unistd.h: No such file or directory
scripts/mkdep.c:9: sys/mman.h: No such file or directory
make: *** [scripts/mkdep] Error 1  

and subsquently I can't compile the new kernel. And I've no
idea of where/what the problem is..  I read the Kernel-HOWTO and
Readme file carefully before starting configuring the new kernel..

Any ideas for solving the problem are welcome,

-mats-

--

|>  Mats Granskog                                                     <|
|>                                                                    <|
|>   Department of Geophysics        phone: (work) +358-(0)9-19122026 <|
|>   University of Helsinki                 (home) +358-(0)9-497980   <|
|>   P.O.Box 4                       fax:   (work) +358-(0)9-19123385 <|


 
 
 

1. HELP: problems compiling kernel 1.1.89 (assemly errors)

Well, it's been a while since I upgraded my kernel, so I figured I'd
do that.  Patches from 1.1.72 --> 1.1.89 went without errors, but
during compilation I get the following errors.  My guess is that
I need a newer revision of GCC (I'm currently at 2.5.8)... or
is the problem due to something else?

Thanks,
Dave.

[cut]

make[2]: Entering directory `/mnt/src/linux-1.1.x/fs/msdos'

[cut]
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -c mmap.c
mmap.c:142: redefinition of `msdos_file_mmap_nopage'
mmap.c:34: `msdos_file_mmap_nopage' previously defined here
mmap.c:183: redefinition of `msdos_file_mmap'
mmap.c:76: `msdos_file_mmap' previously defined here
mmap.c:186: warning: initialization from incompatible pointer type
mmap.c:197: redefinition of `msdos_mmap'
mmap.c:94: `msdos_mmap' previously defined here
mmap.c: In function `msdos_mmap':
mmap.c:198: `PAGE_RW' undeclared (first use this function)
mmap.c:198: (Each undeclared identifier is reported only once
mmap.c:198: for each function it appears in.)
{standard input}: Assembler messages:
{standard input}:163: Fatal error:Symbol _msdos_file_mmap_nopage already defined.
make[2]: *** [mmap.o] Error 1
make[2]: Leaving directory `/mnt/src/linux-1.1.x/fs/msdos'
make[1]: *** [filesystems.a] Error 2
make[1]: Leaving directory `/mnt/src/linux-1.1.x/fs'
make: *** [linuxsubdirs] Error 2

--

 "When you were born you cried, and the world rejoiced.  Try to live your life
  so that when you die you will rejoice, and the world will cry."  -1/2 jj^2

2. maximal mount count

3. Problems compiling kernel, RH5 2.0.31

4. LILO boor menu - 2 boots for Linux

5. Problem compiling kernel 2.4.7 with gcc 2.96

6. install help for RedHat 6.0

7. Problem compiling Kernel with RedHat 5.0 (Linux v2.0.32)

8. ptrace patch fails stress testing

9. Problem compiling kernel

10. problem compiling kernel 2.4.3

11. Problem Compiling kernel 1.2.13 + SB16PnP

12. Problems compiling kernel on PPro

13. Problem: Compiling kernel w/ gcc-elf