FIO Benchmark Tester:从源代码构建时出错

FIO Benchmark Tester:从源代码构建时出错

当我尝试使用“make”命令从源代码构建 FIO 时,遇到了一些错误。看来我可能错过了一些东西。有人知道它是什么吗?

root@DSI:/home/main/fio-2.2.10# make
   CC lib/libmtd_legacy.o
In file included from lib/libmtd_legacy.c:38:0:
lib/libmtd.h:288:8: error: unknown type name ‘uint8_t’
        uint8_t mode);
        ^
lib/libmtd.h:305:4: error: unknown type name ‘uint64_t’
    uint64_t start, uint64_t length, void *data);
    ^
lib/libmtd.h:305:20: error: unknown type name ‘uint64_t’
    uint64_t start, uint64_t length, void *data);
                    ^
lib/libmtd.h:322:5: error: unknown type name ‘uint64_t’
     uint64_t start, uint64_t length, void *data);
     ^
lib/libmtd.h:322:21: error: unknown type name ‘uint64_t’
     uint64_t start, uint64_t length, void *data);
                       ^
Makefile:287: recipe for target 'lib/libmtd_legacy.o' failed
make: *** [lib/libmtd_legacy.o] Error 1

答案1

那个版本的 fio (2.2.10) 是旧的。上游fio高达2.21(http://git.kernel.dk/?p=fio.git;a=tags)在撰写本文时,您有可能不会在较新的版本中看到此问题......

相关内容