PLZ HELP: strange kernel compiling problems

PLZ HELP: strange kernel compiling problems

Post by Dave Toppe » Fri, 11 Oct 1996 04:00:00



Here is the latest in the story.

Marc, this goes with what you've said.
Gary, perhaps you should do as I did.

I have 4 different gcc's on my system:

(Slackware 3.0 kernel 1.2.13)

1) gcc 2.7.0 i486-linux      (came with Slackware 3.0)
2) gcc 2.7.0 i486-linuxaout  ("")
3) gcc 2.7.0p pentium-linux  (dl'd from pentium compiler group)
4) gcc 2.7.2p pentium-linux  ("")

So ...

1) When I try to compile my kernel with 2.7.0 i486-linux I CAN
compile my kernel.  (-m486 -O2)

2) When I try to compile with 2.7.0 i486-linuxaout, I get the
following error. (-m486 -O2)

gcc -D__KERNEL__ -I/usr/src/linuxelf-1.2.13/include -b i486-linuxaout -V 2.7.0 -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -m486 -c resource.c
ld -m elf_i386 -r -o kernel.o ksyms.o sched.o dma.o fork.o exec_domain.o panic.o printk.o sys.o module.o exit.o
signal.o itimer.o info.o time.o softirq.o resource.o
make[1]: *** [kernel.o] Segmentation fault
make[1]: *** Deleting file `kernel.o'
make[1]: Leaving directory `/usr/src/linuxelf-1.2.13/kernel'
make: *** [linuxsubdirs] Error 2

3) When I try to compile with 2.7.0p pentium-linux, I CAN
compile my kernel.  (-mpentium -O4)

4) When I try to compile with 2.7.2p I get the following error.

gcc -D__KERNEL__ -I/usr/src/linuxelf-1.2.13/include -b pentium-linux -V 2.7.2p -Wall -Wstrict-prototypes -O4
-fomit-frame-pointer -pipe -mpentium  -c -o init/main.o init/main.c
/usr/src/linuxelf-1.2.13/include/asm/io.h: In function `check_fpu':
/usr/src/linuxelf-1.2.13/include/asm/io.h:78: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:78: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h: In function `copro_timeout':
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linuxelf-1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
make: *** [init/main.o] Error 1

NOTE:  I am using the -b and -V switches to change which gcc
I'm using.

Any comments would be helpful.

Thanks,

Dave Topper
(email responses preferred)

 
 
 

1. PLZ HELP: another kernel compile problem

So I'm still trying to slug it out compiling my
kernel.  I've done this dozens of times, but don't
know why it's so difficult now.

I have several gcc's.  The one which seems to work
best is 2.7.0p (for pentium).  I've used it before
and compiled my kernel.  Other post to this group
was wrt. problems between gcc 2.7.0 (a.out/elf)
and 2.7.0p / 2.7.2p.

Here is the error I get now:

ld -m elf_i386 -Ttext 0x100000 -e startup_32  arch/i386/kernel/head.o init/main.o init/version.o \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o net/net.o ipc/ipc.o \
        fs/filesystems.a \
        drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/sound/sound.a \
        /usr/src/linuxelf-1.2.13/lib/lib.a -o vmlinux
umsdos.o(.data+0x38): undefined reference to `UMSDOS_create'
umsdos.o(.data+0x40): undefined reference to `UMSDOS_link'
umsdos.o(.data+0x44): undefined reference to `UMSDOS_unlink'
umsdos.o(.data+0x48): undefined reference to `UMSDOS_symlink'
umsdos.o(.data+0x4c): undefined reference to `UMSDOS_mkdir'
umsdos.o(.data+0x50): undefined reference to `UMSDOS_rmdir'
umsdos.o(.data+0x54): undefined reference to `UMSDOS_mknod'
umsdos.o(.data+0x58): undefined reference to `UMSDOS_rename'
make: *** [vmlinux] Error 1

What's up with that?

DT

   -----==-
   ----==-- _                     Dave Topper (me)
   ---==---(_)__  __ ____  __     Student of Life,
   --==---/ / _ \/ // /\ \/ /     Computer Music, and Art
   -=====/_/_//_/\___/ /_/\_\     http://www.panix.com/~topper
 The choice of a GNU generation

P.S.  Is it kosher for me to use the logo in my .signatue?
I think linux is totally the shit.

2. Port scanners

3. PLZ Help: Problem compiling Kernel after cvsup to 4.3-STABLE

4. Can't get linksys 10/100 56k to work?!?!?

5. plz plz plz help.

6. need help with lilo

7. help to compile kernel plz

8. POVRAY Help Needed

9. I have a Strange Network Problem plz help

10. 2.0.30 compile problems (plz help)

11. strange network topology (plz help me out of this)

12. Strange kernel compile problems

13. HELP: Compiling kernel problem. Kernel 2.0.30