http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libaio/files/libaio-0.3.109-generic-arch.patch?revision=1.1 + this patch made libaio built for AArch64. But "make check" fails: rm -f testdir/rwfile echo "test" >testdir/rwfile chmod 600 testdir/rwfile rm -f testdir/wofile echo "test" >testdir/wofile chmod 200 testdir/wofile ./runtests.sh cases/2.p cases/3.p cases/4.p cases/5.p cases/6.p cases/7.p cases/11.p cases/12.p cases/13.p cases/14.p cases/15.p cases/16.p Test run starting at Mon Jan 7 09:16:56 UTC 2013 Starting cases/2.p expect -14: io_setup(-1000, 0xffffffff81000000) = -14 [Bad address] expect -14: io_setup( 1000, 0xffffffff81000000) = -14 [Bad address] expect -14: io_setup( 0, 0xffffffff81000000) = -14 [Bad address] expect -22: io_setup(-1000, 0x7ffc28a060) = -22 [Invalid argument] expect -22: io_setup( -1, 0x7ffc28a060) = -22 [Invalid argument] expect -22: io_setup( 0, 0x7ffc28a060) = -22 [Invalid argument] expect 0: io_setup( 1, 0x7ffc28a060) = 0 [Success] expect -22: io_setup( 1, 0x7ffc28a060) = -22 [Invalid argument] test cases/2.t completed PASSED. Completed cases/2.p with 0. Starting cases/3.p expect -22: io_submit(0xffffffffffffffff, 1, 0x7fe614ace0) = -22 [Invalid argument] expect 0: io_submit(0x7fb448f000, 0, 0x7fe614ace0) = 0 [Success] expect -14: io_submit(0x7fb448f000, 1, (nil)) = -14 [Bad address] expect -14: io_submit(0x7fb448f000, 1, 0xffffffffffffffff) = -14 [Bad address] expect -14: io_submit(0x7fb448f000, 2, 0x7fe614acf0) = -14 [Bad address] expect -14: io_submit(0x7fb448f000, 2, 0x7fe614ad00) = -14 [Bad address] expect -22: io_submit(0x7fb448f000, -1, 0x7fe614ace0) = -22 [Invalid argument] test cases/3.t completed PASSED. Completed cases/3.p with 0. Starting cases/4.p expect -9: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -9: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -22: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] expect -22: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 4: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 4: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 8: (r), res = 4.p: cases/4.t:60: test_main: Assertion `memcmp(buf, "12345678", 8) == 0' failed. sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED read after append: [] Completed cases/4.p with 134 -- FAILED. Starting cases/5.p expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -14: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED test cases/5.t completed FAILED. Completed cases/5.p with 1 -- FAILED. Starting cases/6.p size = 1994428 expect 805306368: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 805306368: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED test cases/6.t completed FAILED. Completed cases/6.p with 1 -- FAILED. Starting cases/7.p expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 511: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 511: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -27: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (w), res = sync_submit: io_submit res=-9 [Bad file descriptor] -9 [Bad file descriptor] -- FAILED test cases/7.t completed FAILED. Completed cases/7.p with 1 -- FAILED. Starting cases/11.p sync_submit: io_submit res=-22 [Invalid argument] expect 256: (W), res = -22 [Invalid argument] -- FAILED completed 0 out of 1000000 writes sync_submit: io_submit res=-22 [Invalid argument] expect 256: (R), res = -22 [Invalid argument] -- FAILED completed 0 out of 1000000 reads test cases/11.t completed FAILED. Completed cases/11.p with 1 -- FAILED. Starting cases/12.p expect 0: io_submit(0x7f8ceaf000, 0, (nil)) = 0 [Success] expect -22: io_submit(0x7f8ceaf000, 0, (nil)) = -22 [Invalid argument] child exited with status 0 test cases/12.t completed PASSED. Completed cases/12.p with 0. Starting cases/13.p expect 8: io_submit(0x7f9d829000, 8, 0x7ff93af3d0) = -22 [Invalid argument] -- FAILED io_getevents failed [0] with res=0 [okay] test cases/13.t completed FAILED. Completed cases/13.p with 1 -- FAILED. Starting cases/14.p expect 0: io_submit(0x7f96e4d000, 0, (nil)) = 0 [Success] child exited with status 1 -- FAILED test cases/14.t completed FAILED. Completed cases/14.p with 1 -- FAILED. Starting cases/15.p expect 5120: (>), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED Unexpected value after writev at 512 Unexpected value after writev at 1024 Unexpected value after writev at 1536 Unexpected value after writev at 2048 Unexpected value after writev at 2560 Unexpected value after writev at 3072 Unexpected value after writev at 3584 Unexpected value after writev at 4096 Unexpected value after writev at 4608 expect 5120: (<), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED Unexpected value after readv at 512 Unexpected value after readv at 1024 Unexpected value after readv at 1536 Unexpected value after readv at 2048 Unexpected value after readv at 2560 Unexpected value after readv at 3072 Unexpected value after readv at 3584 Unexpected value after readv at 4096 Unexpected value after readv at 4608 expect 4608: (>), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED Unexpected value after offset writev at 512 Unexpected value after offset writev at 1024 Unexpected value after offset writev at 1536 Unexpected value after offset writev at 2048 Unexpected value after offset writev at 2560 Unexpected value after offset writev at 3072 Unexpected value after offset writev at 3584 Unexpected value after offset writev at 4096 Unexpected value after offset writev at 4608 expect 4608: (<), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED Unexpected value after offset readv at 512 Unexpected value after offset readv at 1024 Unexpected value after offset readv at 1536 Unexpected value after offset readv at 2048 Unexpected value after offset readv at 2560 Unexpected value after offset readv at 3072 Unexpected value after offset readv at 3584 Unexpected value after offset readv at 4096 Unexpected value after offset readv at 4608 test cases/15.t completed FAILED. Completed cases/15.p with 1 -- FAILED. Starting cases/16.p No eventfd support. [SKIPPING] Completed cases/16.p with 0. Pass: 4 Fail: 8 Test run complete at Mon Jan 7 09:16:56 UTC 2013 mount -o loop -t ext2 ext2-enospc.img testdir.enospc ./runtests.sh cases/10.p; ret=$?; umount testdir.enospc; exit $ret Test run starting at Mon Jan 7 09:16:57 UTC 2013 Starting cases/10.p expect 65536: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 65536: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -28: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 65535: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 65535: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -28: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (w), res = sync_submit: io_submit res=-9 [Bad file descriptor] -9 [Bad file descriptor] -- FAILED test cases/10.t completed FAILED. Completed cases/10.p with 1 -- FAILED. Pass: 0 Fail: 1 Test run complete at Mon Jan 7 09:16:57 UTC 2013 mount -o loop -t ext2 ext2.img testdir.ext2 ./runtests.sh cases/8.p; ret=$?; umount testdir.ext2; exit $ret Test run starting at Mon Jan 7 09:16:57 UTC 2013 Starting cases/8.p expect 512: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 512: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 511: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 511: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect -27: (w), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (r), res = sync_submit: io_submit res=-22 [Invalid argument] -22 [Invalid argument] -- FAILED expect 0: (w), res = sync_submit: io_submit res=-9 [Bad file descriptor] -9 [Bad file descriptor] -- FAILED test cases/8.t completed FAILED. Completed cases/8.p with 1 -- FAILED. Pass: 0 Fail: 1 Test run complete at Mon Jan 7 09:16:57 UTC 2013 make[1]: Leaving directory `/home/root/test/libaio-0.3.109/harness'