error compiling kernel after upgraded to gcc 2.7.0 and elf lib 5.0.9

error compiling kernel after upgraded to gcc 2.7.0 and elf lib 5.0.9

Post by The Chinese High Scho » Sun, 03 Sep 1995 04:00:00



the following error occurs when I try to compile linux kernel (1.2.8 and
1.2.11) after I have upgraded gcc to 2.7.0,

make[1]: Leaving directory `/usr/src/linux/arch/i386/mm'
ld -qmagic -Ttext 0xfffe0 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 \
        /usr/src/linux/lib/lib.a -o vmlinux
ld: warning: cannot find entry symbol _start; defaulting to 000fffe0
arch/i386/kernel/head.o(.text+0x18): undefined reference to `__edata'
arch/i386/kernel/head.o(.text+0x1d): undefined reference to `__end'
arch/i386/kernel/head.o(.text+0x7f): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xa3): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xcf): undefined reference to `_x86'
arch/i386/kernel/head.o(.text+0xdb): undefined reference to `_x86_model'
arch/i386/kernel/head.o(.text+0xe4): undefined reference to `_x86_mask'
arch/i386/kernel/head.o(.text+0xea): undefined reference to `_x86_capability'
arch/i386/kernel/head.o(.text+0xf4): undefined reference to `_x86_vendor_id'
arch/i386/kernel/head.o(.text+0xfa): undefined reference to `_x86_vendor_id'

please help, thanks.

 
 
 

error compiling kernel after upgraded to gcc 2.7.0 and elf lib 5.0.9

Post by Dimitri Maziu » Thu, 07 Sep 1995 04:00:00


Hi,
did you edit the top-level Makefile adding
   CFLAGS= -b i486-linuxaout ...
   LD= ld -m i386linux ...
before compiling?
( Actually I tried to compile an 1.2.xx kernel in ELF, out of curiosity,
  but I don't remember seeing this error; I suppose I've applied the elf
  patch first...  )

--
Dimitri

---------------------------------------------------------------------------
 All of the above is true in some sense,  false in some sense, meaningless
 in some sense, true and false in some sense, true and meaningless in some
 sense,  false and meaningless  in some sense,  and  true  and  false  and
 meaningless in some sense.
                         -- Sri Syadasti Syadavaktavya Syadasti Syannasti.
---------------------------------------------------------------------------

 
 
 

1. Errors compiling kernel 1.2.8 with libs, etc. upgraded to ELF?

To Whom it may concern...

I recently went through my system and (following the instructions, etc.)
upgraded all libs, binutils, ld.so, gcc (ver 2.7.2), etc. to the latest
versions to support ELF.  I then applied the 'ELF' patch to my kernel ver.
1.2.8 and then attempted to make zImage (ie, rebuild the kernel with ELF
capability).  However, when I finally got to the point of doing 'make zImage'
I received the following output:

gcc -D__KERNEL__ -I/usr/src/linux-1.2.8/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -m486  -c -o init/main.o init/main.c
/usr/src/linux-1.2.8/include/asm/io.h: In function `copro_timeout':
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h: In function `check_fpu':
/usr/src/linux-1.2.8/include/asm/io.h:78: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:78: inconsistent operand constraints in
an `asm'
/usr/src/linux-1.2.8/include/asm/io.h:82: inconsistent operand constraints in
an `asm'
make: *** [init/main.o] Error 1

Please note that I did RTFM, I did do all of the required items such as make
depend, etc.  All libs replaced fine and the new (ver .14) ld ran and updated
the cache.  And, the patch applied to the kernel source 1.2.8 did not produce
any errors.

If anyone has seen this error and has any advice, I would greatly appreciate
it.

Thanks in advance!

--------------------------------------------
Steve Ginn

2. Enough, Rev Don Kool !

3. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux

4. This newsgroup is really cool.

5. Wcl ELF and compiling ELF libs?

6. "Stealth64 TrioV+ 2001 (S3) and >16M System Memory"

7. Please help: No Compile after ELF & GCC Upgrade!

8. fix partition w/out losing ext2fs data?

9. gcc error 11 compiling kernel (gcc 2.7.0)

10. gcc error: "elf error: file insn-attrtab.o: elf_strptr: Request error: no string table"

11. gcc ELF class error when compiling Samba for 64-bit

12. errors compiling 1.2.13 with ELF (gcc 2.7.0)

13. can gcc 2.6.3 compile NON-ELF kernel?