Googling reveals that __sync_fetch_and_add_4 is an x86 and x86_64 specific builtin compiler function.
On Thu, Feb 4, 2010 at 4:50 AM, zafar <[email protected]> wrote: > Trying to use sreadahead tool on android target to decrease bootup > time . > But sreaahesd.c are not getting compiled against bionic library. > Below is the error message--------- > > > > > /tmp/ccIfKOOt.o: In function `one_thread': > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined > reference to `__sync_fetch_and_add_4' > /tmp/ccIfKOOt.o: In function `readahead_one': > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:166: undefined > reference to `readahead' > /tmp/ccIfKOOt.o: In function `one_thread': > /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined > reference to `__sync_fetch_and_add_4' > collect2: ld returned 1 exit status > make: *** [sreadahead] Error 1 > > > > Any help will be highly appreciated > > Thank you > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

