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

fio-2.7 fails to build on SuperH #154

Closed
tpetazzoni opened this issue Mar 10, 2016 · 3 comments
Closed

fio-2.7 fails to build on SuperH #154

tpetazzoni opened this issue Mar 10, 2016 · 3 comments

Comments

@tpetazzoni
Copy link

It fails with the following error messages. This is due to the fact that t/stest (and various other tests) use gettime.o and mutex.o, which rely on macros defined in arch-.h. Those macros use the arch_flags variable, but it is only available when libfio.o is linked into the code, and this is not the case for those tests.

gettime.o: In function fio_gettime': /home/thomas/projets/buildroot/output/build/fio-fio-2.7/gettime.c:163: undefined reference toarch_flags'
gettime.o: In function utime_since_now': /home/thomas/projets/buildroot/output/build/fio-fio-2.7/gettime.c:164: undefined reference toarch_flags'
gettime.o: In function mtime_since_now': /home/thomas/projets/buildroot/output/build/fio-fio-2.7/gettime.c:164: undefined reference toarch_flags'
gettime.o: In function time_since_now': /home/thomas/projets/buildroot/output/build/fio-fio-2.7/gettime.c:164: undefined reference toarch_flags'
mutex.o: In function fio_mutex_up': /home/thomas/projets/buildroot/output/build/fio-fio-2.7/mutex.c:189: undefined reference toarch_flags'
collect2: error: ld returned 1 exit status
Makefile:375: recipe for target 't/stest' failed
make[2]: *** [t/stest] Error 1
make[2]: *** Waiting for unfinished jobs....

@axboe
Copy link
Owner

axboe commented Mar 10, 2016

http://git.kernel.dk/cgit/fio/commit/?id=71471cb1d05f3877c8fb935fbf70a6bae789ac49

This should fix it, I have committed it. Can you give it a go?

@tpetazzoni
Copy link
Author

Builds fine, thanks!

@axboe
Copy link
Owner

axboe commented Mar 10, 2016

Great, thanks for reporting! That must have been broken for a while, so good to get it fixed.

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

No branches or pull requests

2 participants