ortran/pack_f.f libtool: compile: gfortran -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules -c fortran/pack_f.f -fPIC -o fortran/.libs/pack_f.o f951: Warning: '-Werror=' argument '-Werror=format-security' is not valid for Fortran fortran/pack_f.f:167:19: 167 | do 10, j = 1, len(filn) | 1 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(2) at (1) [-Wconversion] fortran/pack_f.f:109:28: 45 | call pack_wordimage_f(data, x, y, filnarray) | 2 ...... 109 | call pack_wordimage_f(data, x, y, filnarray) | 1 Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(2)). fortran/pack_f.f:141:30: 77 | call v2pack_wordimage_f(data, x, y, filnarray) | 2 ...... 141 | call v2pack_wordimage_f(data, x, y, filnarray) | 1 Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/INTEGER(2)). /bin/sh ./libtool --tag=F77 --mode=compile gfortran -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules -c -o fortran/pxxml.lo fortran/pxxml.f make[1]: *** [Makefile:809: fortran/pack_f.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: gfortran -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules -c fortran/pxxml.f -fPIC -o fortran/.libs/pxxml.o f951: Warning: '-Werror=' argument '-Werror=format-security' is not valid for Fortran fortran/pxxml.f:278:4: 278 | 120 format(a) | 1 Warning: Label 120 at (1) defined but not used [-Wunused-label] fortran/pxxml.f:274:4: 274 | 105 format('<') | 1 Warning: Label 105 at (1) defined but not used [-Wunused-label] fortran/pxxml.f:319:4: 319 | 110 format(' ') | 1 Warning: Label 110 at (1) defined but not used [-Wunused-label] fortran/pxxml.f:372:64: 372 | subroutine XMLCloseElement(XMLFileUnit, ElementName, ifail) | 1 Warning: Unused dummy argument 'ifail' at (1) [-Wunused-dummy-argument] fortran/pxxml.f:295:20: 295 | integer indent | 1 Warning: Unused variable 'indent' declared at (1) [-Wunused-variable] make[1]: Leaving directory '/builddir/build/BUILD/libccp4-6.5.1' make: *** [Makefile:491: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.1nC4SY (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1nC4SY (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libccp4.spec