Re: Linux 2.4.3-ac12

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Apr 22 2001 - 07:11:31 EST


> > 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/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:42 EST