小编Eda*_*aro的帖子

针对 musl-gcc 编译 fio 时出现问题

我正在尝试使用musl-gcc构建FIO(由于 glibc 的许可问题,我们需要使用 musl)。我尝试使用 musl 提供的头文件而不是 glibc,但到目前为止编译 FIO 并不成功。我首先使用以下选项运行配置:

\n\n
my@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)

c linux gcc glibc musl

3
推荐指数
1
解决办法
2509
查看次数

标签 统计

c ×1

gcc ×1

glibc ×1

linux ×1

musl ×1