Re: Linux 2.4.3-ac12

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 22 Apr 2001 13:11:31 +0100 (BST)


> > o Further semaphore fixes (David
> Howells)
>
> rwsem.o(.text+0x73): undefined reference to `__builtin_expect'
> /usr/src/linux-2.4.3-ac12/lib/lib.a(rwsem.o): In function
> `rwsem_down_write_failed':

This is from Linus tree. You currently need gcc 2.96 or higher to build
the 2.4.x kernel.

> rwsem.o(.text+0x1d3): undefined reference to `__builtin_expect'
> /usr/src/linux-2.4.3-ac12/lib/lib.a(rwsem.o): In function
> `rwsem_up_read_wake':
> rwsem.o(.text+0x2ed): undefined reference to `__builtin_expect'
> /usr/src/linux-2.4.3-ac12/lib/lib.a(rwsem.o): In function
> `rwsem_up_write_wake':rwsem.o(.text+0x3c6): undefined reference to
> `__builtin_expect'

Add a

#define __builtin_expect

at the top of the rwsem code that uses this and let me know if its happy then.
If so I'll figure out the write gcc version checks
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/