Build failure under Fedora 23
Created by: biogberg
Build fails under Fedora 23 (4.3.3-303.fc23.x86_64). Perl is 5.22.1 (system), gcc is 5.3.1 (system).
perl Build.PL
runs cleanly.
Output from
perl Build build
is shown at the end. Compilation dies on:
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
It seems to be due to a clash between an option set in Build.PL and options originating in Config_heavy.pm.
Changing -Werror=format-security to -Wno-error=format-security, leads to different compilation errors:
<command-line>:0:12: error: expected ')' before numeric constant
occurring twice.
Complete compilation output:
Building Bio-DB-HTS gcc -I/opt/ghpc/include/htslib -I/usr/lib64/perl5/CORE -DVERSION="2.3" -DXS_VERSION="2.3" -fPIC -D_IOLIB=2 -D_FILE_OFFSET_BITS=64 -Wno-error -Wformat=0 -Wno-unused-result -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=native -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -o lib/Bio/DB/HTS/Faidx.o lib/Bio/DB/HTS/Faidx.c cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] cc1: some warnings being treated as errors error building lib/Bio/DB/HTS/Faidx.o from 'lib/Bio/DB/HTS/Faidx.c' at /usr/share/perl5/vendor_perl/ExtUtils/CBuilder/Base.pm line 174.