2001-04-23 04:14:02

by Jeff Chua

[permalink] [raw]
Subject: rwsem.o undefined reference to __builtin_expect


cannot compile 2.4.4-pre6. This may have been reported, but I
haven't seen it.

Thanks,
Jeff.


ld -m elf_i386 -T /u2/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/char/drm/drm.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o
drivers/md/mddev.o \
net/network.o \
/u2/src/linux/arch/i386/lib/lib.a /u2/src/linux/lib/lib.a
/u2/src/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
/u2/src/linux/lib/lib.a(rwsem.o): In function `__rwsem_do_wake':
rwsem.o(.text+0x30): undefined reference to `__builtin_expect'
rwsem.o(.text+0x73): undefined reference to `__builtin_expect'
make: *** [vmlinux] Error 1




2001-04-23 22:10:33

by Colonel

[permalink] [raw]
Subject: Re: rwsem.o undefined reference to __builtin_expect

In list.kernel, you wrote:
>
>
>cannot compile 2.4.4-pre6. This may have been reported, but I
>haven't seen it.

There was a solution mentioned Saturday.


>rwsem.o(.text+0x30): undefined reference to `__builtin_expect'
>rwsem.o(.text+0x73): undefined reference to `__builtin_expect'
>make: *** [vmlinux] Error 1

in asm-alpha/compiler.h you will find a definition. The above
solution created a new file (asm-i386/compiler.h) with the definition,
I just added it to rwsem.c.


BTW: 2.4.4-pre6 is the fastest kernel yet! YMMV