Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sreadahead.c application is not compiling with android bionic library #20

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Trying to use sreadahead tool on android target to decrease bootup time .
But sreaahesd.c are not getting compiled against bionic library.

What version of the product are you using? On what operating system?
sreadahesd-1.0

Please provide any additional information below.

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

Original issue reported on code.google.com by md.zafar.ziya on 4 Feb 2010 at 12:52

@GoogleCodeExporter
Copy link
Author

HI,
>> /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined
>> reference to `__sync_fetch_and_add_4'
The above API is gcc intrinsic and may not be available in your toolchain. So 
you can
change that API with similar API like atomic operations. 

Original comment by [email protected] on 10 Feb 2010 at 3:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant