fio
fio copied to clipboard
3.29 adding '--build-static' causes ./configure to fail other checks
Please acknowledge the following before creating a ticket
- [X] I have read the GitHub issues section of REPORTING-BUGS.
Description of the bug: Just running ./configure results in the normal checks and no errors. Adding '--build-static' causes the next check in line to fail.
Environment: Rocky Linux 8.5 4.18.0-348.7.1.el8_5.x86_64
fio version: 3.29
Reproduction steps
Run ./configure --build-static
Static build yes Your compiler doesn't support C11 atomics. gcc 4.9/clang 3.6 are the minimum versions with it - perhaps your compiler is too old? C11 atomics support not found Configure failed, check config.log and/or the above output
$ gcc --version gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
$ clang --version clang version 12.0.1 (Red Hat 12.0.1-4.module+el8.5.0+715+58f51d49)
I tried commenting out the checks for C11 and the next check fails.
Static build yes Unknown wordsize Configure failed, check config.log and/or the above output
Here's config.log: `# FIO configure log Fri Apr 8 16:46:33 MDT 2022 Configured with: './configure' '--build-static'
gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -c -o /tmp/fio-conf-23412-2264352-24037.o /tmp/fio-conf-523-2264352-10838.c /tmp/fio-conf-523-2264352-10838.c:2:2: error: #error ANDROID not defined #error ANDROID not defined ^~~~~ gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -c -o /tmp/fio-conf-23412-2264352-24037.o /tmp/fio-conf-523-2264352-10838.c gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -c -o /tmp/fio-conf-23412-2264352-24037.o /tmp/fio-conf-523-2264352-10838.c /tmp/fio-conf-523-2264352-10838.c:2:2: error: #error i386 not defined #error i386 not defined ^~~~~ gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -c -o /tmp/fio-conf-23412-2264352-24037.o /tmp/fio-conf-523-2264352-10838.c Compiling test case cross gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -o /tmp/fio-conf-8878-2264352-30114.exe /tmp/fio-conf-523-2264352-10838.c Compiling test case endian gcc -D_GNU_SOURCE -include config-host.h -Werror-implicit-function-declaration -o /tmp/fio-conf-8878-2264352-30114.exe /tmp/fio-conf-523-2264352-10838.c Compiling test case C11 atomics gcc -D_GNU_SOURCE -include config-host.h -ffunction-sections -fdata-sections -Werror-implicit-function-declaration -o /tmp/fio-conf-8878-2264352-30114.exe /tmp/fio-conf-523-2264352-10838.c -static -Wl,--gc-sections /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status`
Looks like you're missing static libraries, don't think this is a fio issue.
Sorry for the elementary question, but I thought the '-devel' packages I installed would satisfy that need.
$ rpm -qa | grep devel libaio-devel-0.3.112-1.el8.x86_64 libxcrypt-devel-4.1.1-6.el8.x86_64 daxctl-devel-71.1-2.el8.x86_64 ndctl-devel-71.1-2.el8.x86_64 libomp-devel-12.0.1-1.module+el8.5.0+692+8756646f.x86_64 libpmem-devel-1.6.1-1.el8.x86_64 glibc-devel-2.28-164.el8_5.3.x86_64 libpmemblk-devel-1.6.1-1.el8.x86_64 zlib-devel-1.2.11-17.el8.x86_64 libstdc++-devel-8.5.0-4.el8_5.x86_64
Looking at the log, it's not clear to me what packages I may be lacking. Can you point me in the direction of where I might find a list?
/usr/bin/ld: cannot find -lc
try e.g. https://stackoverflow.com/questions/60238534/add-libraries-for-static-compilation-centos-8