t-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DUNIX $(OPT) is -O2 $(OPTIONS) is for optional defines, normally blank If you prefer using cc, setenv CC cc and re-run configure configure: creating ./config.status config.status: creating Makefile config.status: creating dcl2inc.awk config.status: creating dcl2inc config.status: creating make_blockmatch.pl config.status: creating test/Makefile config.status: creating test/Compare.sh config.status: creating config.h + make /bin/bison -y -d fortran.y tokdefs.h changed -- repeat make BUILDSTDERR: make: *** [Makefile:350: fortran.c] Error 1 + : + make -j4 ./make_blockmatch.pl > block_match.h /bin/gcc -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 -DUNIX -c -o advance.o advance.c /bin/gcc -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 -DUNIX -c -o argcheck.o argcheck.c /bin/gcc -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 -DUNIX -c -o calltree.o calltree.c BUILDSTDERR: /bin/sh: ./make_blockmatch.pl: perl: bad interpreter: No such file or directory BUILDSTDERR: make: *** [Makefile:358: block_match.h] Error 126 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: calltree.c: In function 'visit_child': BUILDSTDERR: calltree.c:586:28: warning: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=] BUILDSTDERR: (void)sprintf(fmt,"%%%ds",level*4); /* indent 4 spaces per nesting level */ BUILDSTDERR: ^~ BUILDSTDERR: calltree.c:586:25: note: directive argument in the range [4, 2147483647] BUILDSTDERR: (void)sprintf(fmt,"%%%ds",level*4); /* indent 4 spaces per nesting level */ BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from calltree.c:49: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 13 bytes into a destination of size 6 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: calltree.c: In function 'visit_children': BUILDSTDERR: calltree.c:394:14: warning: 'main_module' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: (void)com_tree_check(&glob_symtab[i],main_module,0); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.vaspVx (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.vaspVx (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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/ftnchek.spec