e: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 41042 | if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; | ^~~~~~ /builddir/build/BUILD/openbabel-openbabel-3-1-1/scripts/perl/openbabel-perl.cpp:41044:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 41044 | if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { | ^~ /builddir/build/BUILD/openbabel-openbabel-3-1-1/scripts/perl/openbabel-perl.cpp:41044:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 41044 | if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { | ^~~~~~ /builddir/build/BUILD/openbabel-openbabel-3-1-1/scripts/perl/openbabel-perl.cpp: In function 'void* _p_OpenBabel__CharPtrLessTo_p_std__binary_functionT_char_const_p_char_const_p_bool_t(void*, int*)': /builddir/build/BUILD/openbabel-openbabel-3-1-1/scripts/perl/openbabel-perl.cpp:41125:27: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 41125 | return (void *)((std::binary_function< char const *,char const *,bool > *) ((OpenBabel::CharPtrLess *) x)); | ^~~~~~~~~~~~~~~ /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu' make[2]: Entering directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu' [ 99%] Linking CXX shared module ../lib64/OpenBabel.so cd /builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu/scripts && /usr/bin/cmake -E cmake_link_script CMakeFiles/bindings_perl.dir/link.txt --verbose=1 /usr/bin/g++ -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -DNDEBUG -O3 -DNDEBUG -Wl,--enable-new-dtags -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared -o ../lib64/OpenBabel.so "CMakeFiles/bindings_perl.dir/perl/openbabel-perl.cpp.o" -lperl ../lib64/libopenbabel.so.7.0.0 -lpthread -lresolv -ldl -lm -lcrypt -lutil -lc -lm -ldl -lz make[2]: Leaving directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu' make[1]: Entering directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu' [ 99%] Built target bindings_perl make[1]: Leaving directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/riscv64-redhat-linux-gnu' make: *** [Makefile:149: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.AwITrM (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.AwITrM (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/openbabel.spec