我正在尝试使用musl-gcc构建FIO(由于 glibc 的许可问题,我们需要使用 musl)。我尝试使用 musl 提供的头文件而不是 glibc,但到目前为止编译 FIO 并不成功。我首先使用以下选项运行配置:
\n\nmy@desktop % ./configure --cc="/usr/local/musl/bin/musl-gcc -I/usr/local/musl/include" --cpu="x86_64" --prefix="/usr/bin"\nOperating system Linux\nCPU x86_64\nBig endian no\nCompiler /usr/local/musl/bin/musl-gcc -I/usr/local/musl/include\nCross compile no\n\nStatic build no\nWordsize 64\nzlib no\nLinux AIO support no\nPOSIX AIO support yes\nPOSIX AIO support needs -lrt no\nPOSIX AIO fsync yes\nPOSIX pshared support yes\nSolaris AIO support no\n__sync_fetch_and_add yes\n__sync_synchronize yes\n__sync_val_compare_and_swap yes\nlibverbs no\nrdmacm no\nasprintf() yes\nvasprintf() yes\nLinux fallocate no\nPOSIX fadvise yes\nPOSIX fallocate yes\nsched_setaffinity(3 arg) yes\nsched_setaffinity(2 arg) no\nclock_gettime yes\nCLOCK_MONOTONIC yes\nCLOCK_MONOTONIC_RAW yes\nCLOCK_MONOTONIC_PRECISE no\nclockid_t yes\ngettimeofday yes\nfdatasync yes\nsync_file_range no\nEXT4 move …Run Code Online (Sandbox Code Playgroud)