Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nut-nutrition.spec'], chrootPath='/var/lib/mock/f30-build-39927-22665/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nut-nutrition.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/nut-nutrition-19.2-14.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nut-nutrition.spec'], chrootPath='/var/lib/mock/f30-build-39927-22665/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nut-nutrition.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Potytd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nut-19.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/nut-19.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nut-19.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (nut-19.2-Makefile.patch): + echo 'Patch #0 (nut-19.2-Makefile.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file ./fltk/Makefile patching file ./Makefile patching file ./README + mv nut.1 nut-nutrition.1 -v renamed 'nut.1' -> 'nut-nutrition.1' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OmVvrX + umask 022 + cd /builddir/build/BUILD + cd nut-19.2 + export 'CFLAGS=-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' + CFLAGS='-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' + export 'CXXFLAGS=-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' + CXXFLAGS='-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' + make -j4 cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o remmeal.o remmeal.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o theusual.o theusual.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o trendy.o trendy.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o food.o food.c BUILDSTDERR: trendy.c: In function 'get_trendy': BUILDSTDERR: trendy.c:375:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o viewfood.o viewfood.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o recmeal.o recmeal.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o prtmenu.o prtmenu.c BUILDSTDERR: recmeal.c: In function 'record_meals': BUILDSTDERR: recmeal.c:40:24: warning: variable 'junk' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int meal = 0, modfood, junk, savescreen; BUILDSTDERR: ^~~~ BUILDSTDERR: recmeal.c: In function 'today': BUILDSTDERR: recmeal.c:236:22: warning: '%02d' directive writing between 2 and 10 bytes into a region of size 5 [-Wformat-overflow=] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~ BUILDSTDERR: recmeal.c:236:21: note: directive argument in the range [0, 2147483646] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from options.h:25, BUILDSTDERR: from anameal.h:25, BUILDSTDERR: from recmeal.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 11 bytes into a destination of size 5 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: recmeal.c: In function 'time_machine': BUILDSTDERR: recmeal.c:265:22: warning: '%02d' directive writing between 2 and 10 bytes into a region of size 5 [-Wformat-overflow=] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~ BUILDSTDERR: recmeal.c:265:21: note: directive argument in the range [0, 2147483646] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from options.h:25, BUILDSTDERR: from anameal.h:25, BUILDSTDERR: from recmeal.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 11 bytes into a destination of size 5 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o ranking.o ranking.c BUILDSTDERR: ranking.c: In function 'rank_foods': BUILDSTDERR: ranking.c:277:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (opt == 5) strncpy(thisname,food_ptr->name,52); thisname[52] = '\0'; BUILDSTDERR: ^~ BUILDSTDERR: ranking.c:277:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: if (opt == 5) strncpy(thisname,food_ptr->name,52); thisname[52] = '\0'; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: recmeal.c: In function 'today_plus': BUILDSTDERR: recmeal.c:314:22: warning: '%02d' directive writing between 2 and 10 bytes into a region of size 5 [-Wformat-overflow=] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~ BUILDSTDERR: recmeal.c:314:21: note: directive argument in the range [0, 2147483646] BUILDSTDERR: sprintf(meal_date+4,"%02d",month); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from options.h:25, BUILDSTDERR: from anameal.h:25, BUILDSTDERR: from recmeal.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 11 bytes into a destination of size 5 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o menu.o menu.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o options.o options.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o main.o main.c BUILDSTDERR: options.c: In function 'new_nut_levels': BUILDSTDERR: options.c:720:5: warning: variable 'junk' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int junk; BUILDSTDERR: ^~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o db.o db.c BUILDSTDERR: options.c: In function 'get_cals': BUILDSTDERR: options.c:587:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'read_joined_db': BUILDSTDERR: db.c:111:12: warning: variable 'junk' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int count, junk, foodcount = 0; BUILDSTDERR: ^~~~ BUILDSTDERR: db.c: In function 'read_FOOD': BUILDSTDERR: db.c:193:12: warning: variable 'junk' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int count, junk, ndbno; BUILDSTDERR: ^~~~ BUILDSTDERR: db.c: In function 'write_OPTIONS': BUILDSTDERR: db.c:686:5: warning: variable 'block' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int block, i, field; BUILDSTDERR: ^~~~~ BUILDSTDERR: db.c: In function 'read_OPTIONS': BUILDSTDERR: db.c:741:5: warning: variable 'block' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int block, field; BUILDSTDERR: ^~~~~ BUILDSTDERR: db.c: In function 'write_fontsize': BUILDSTDERR: db.c:1047:5: warning: variable 'block' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int block; BUILDSTDERR: ^~~~~ BUILDSTDERR: db.c: In function 'version': BUILDSTDERR: db.c:975:1: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fread(&release_string,8,1,fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'fontsize': BUILDSTDERR: db.c:1037:1: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fread(&font_string,8,1,fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o addfood.o addfood.c BUILDSTDERR: addfood.c: In function 'get_recipe_qty': BUILDSTDERR: addfood.c:339:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: addfood.c: In function 'get_nut_value': BUILDSTDERR: addfood.c:551:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'write_recipe': BUILDSTDERR: db.c:634:17: warning: '%g' directive writing between 1 and 13 bytes into a region of size 11 [-Wformat-overflow=] BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->qty); BUILDSTDERR: ^~ BUILDSTDERR: db.c:634:16: note: assuming directive output of 12 bytes BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->qty); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 14 bytes into a destination of size 11 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:641:17: warning: '%g' directive writing between 1 and 13 bytes into a region of size 11 [-Wformat-overflow=] BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->grams); BUILDSTDERR: ^~ BUILDSTDERR: db.c:641:16: note: assuming directive output of 12 bytes BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->grams); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 14 bytes into a destination of size 11 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'write_serving': BUILDSTDERR: db.c:667:17: warning: '%g' directive writing between 1 and 13 bytes into a region of size 11 [-Wformat-overflow=] BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->qty); BUILDSTDERR: ^~ BUILDSTDERR: db.c:667:16: note: assuming directive output of 12 bytes BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->qty); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 14 bytes into a destination of size 11 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:672:17: warning: '%g' directive writing between 1 and 13 bytes into a region of size 11 [-Wformat-overflow=] BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->grams); BUILDSTDERR: ^~ BUILDSTDERR: db.c:672:16: note: assuming directive output of 12 bytes BUILDSTDERR: sprintf(numbuf,"%g",food_ptr->grams); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 14 bytes into a destination of size 11 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'read_OPTIONS': BUILDSTDERR: db.c:792:54: warning: '%s' directive writing up to 50 bytes into a region of size 9 [-Wformat-overflow=] BUILDSTDERR: case LASTWLDATE : sprintf(options.lastwldate,"%s",valbuf1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 51 bytes into a destination of size 9 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o util.o util.c BUILDSTDERR: db.c: In function 'write_WLOG': BUILDSTDERR: db.c:888:25: warning: '%s' directive writing up to 8 bytes into a region of size between 1 and 2000 [-Wformat-overflow=] BUILDSTDERR: sprintf(WLOGoldtoday,"%s%s",WLOGold,today_date); BUILDSTDERR: ^~ ~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 2008 bytes into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: util.c: In function 'get_qty': BUILDSTDERR: util.c:104:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: util.c: In function 'get_select': BUILDSTDERR: util.c:176:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: util.c: In function 'get_int': BUILDSTDERR: util.c:184:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: util.c: In function 'get_float': BUILDSTDERR: util.c:191:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buff,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: util.c: In function 'get_string': BUILDSTDERR: util.c:198:1: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(temp,128,stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c: In function 'make_filenames': BUILDSTDERR: db.c:944:30: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(nutdirsubuser,"%s/%s/%s",getenv("HOME"),nutdir1,subuser); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 2008) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:951:21: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(WLOG,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,WLOG1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2017) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:952:24: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(WLOGold,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,WLOGold1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2014) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:953:24: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(WLOGaux,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,WLOGaux1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2017) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:954:26: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(localFOOD,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,localFOOD1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2021) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:955:25: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(localNUT,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,localNUT1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2021) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:956:28: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(localWEIGHT,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,localWEIGHT1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2019) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:957:25: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(foodfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,foodfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2016) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:958:25: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(mealfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,mealfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2016) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:959:28: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(mealexpfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,mealexpfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2017) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:960:32: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(theusualexpfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,theusualexpfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2021) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:961:29: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(theusualfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,theusualfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2020) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:962:28: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(optionsfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,optionsfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2019) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:963:29: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(localOPTIONS,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,localOPTIONS1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2020) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:964:28: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(versionfile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,versionfile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2016) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: db.c:965:29: warning: '%s' directive writing up to 1999 bytes into a region of size between 1992 and 1998 [-Wformat-overflow=] BUILDSTDERR: sprintf(fontsizefile,"%s/%s/%s/%s",getenv("HOME"),nutdir1,subuser,fontsizefile1); BUILDSTDERR: ^~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from food.h:25, BUILDSTDERR: from db.h:31, BUILDSTDERR: from db.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 4 or more bytes (assuming 2017) into a destination of size 2000 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o anameal.o anameal.c cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o meal.o meal.c cd fltk; make make[1]: Entering directory '/builddir/build/BUILD/nut-19.2/fltk' g++ -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -DNOT_XFT -I.. -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o TheStory.o TheStory.cc BUILDSTDERR: make[1]: g++: Command not found BUILDSTDERR: make[1]: *** [: TheStory.o] Error 127 make[1]: Leaving directory '/builddir/build/BUILD/nut-19.2/fltk' BUILDSTDERR: make: [Makefile:27: fltk/nut-nutrition-gui] Error 2 (ignored) cc -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 -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -lm -o nut-nutrition remmeal.o theusual.o trendy.o food.o viewfood.o recmeal.o prtmenu.o ranking.o menu.o options.o main.o db.o addfood.o util.o anameal.o meal.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QivlUV + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 + cd nut-19.2 + make install DESTDIR=/builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 cc -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -lm -o nut-nutrition remmeal.o theusual.o trendy.o food.o viewfood.o recmeal.o prtmenu.o ranking.o menu.o options.o main.o db.o addfood.o util.o anameal.o meal.o cd fltk; make make[1]: Entering directory '/builddir/build/BUILD/nut-19.2/fltk' g++ -DNOT_XFT -I.. -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr//share/nut-nutrition\" -c -o TheStory.o TheStory.cc BUILDSTDERR: make[1]: g++: Command not found make[1]: Leaving directory '/builddir/build/BUILD/nut-19.2/fltk' BUILDSTDERR: make[1]: *** [: TheStory.o] Error 127 mkdir -p -m 755 /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//bin /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/nut-nutrition /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/man/man1 BUILDSTDERR: make: [Makefile:27: fltk/nut-nutrition-gui] Error 2 (ignored) cp nut-nutrition fltk/nut-nutrition-gui /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//bin BUILDSTDERR: cp: cannot stat 'fltk/nut-nutrition-gui': No such file or directory cd /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//bin BUILDSTDERR: make: [Makefile:38: install] Error 1 (ignored) cp raw.data/* /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/nut-nutrition cp nut-nutrition.1 /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/man/man1 chmod a+r /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/nut-nutrition/* /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/man/man1/nut.1 BUILDSTDERR: chmod: cannot access '/builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr//share/man/man1/nut.1': No such file or directory BUILDSTDERR: make: [Makefile:42: install] Error 1 (ignored) + mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/applications + desktop-file-install --dir /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/applications /builddir/build/SOURCES/nut-nutrition.desktop + mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/metainfo/ + install -p -m 644 /builddir/build/SOURCES/nut-nutrition.appdata.xml /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/metainfo/nut-nutrition.appdata.xml + appstream-util validate-relax --nonet /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/metainfo/nut-nutrition.appdata.xml BUILDSTDERR: /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/metainfo/nut-nutrition.appdata.xml: GLib-GIO-Message: 15:24:32.808: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. OK + mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/pixmaps + install -p -m 644 nuticon.xpm /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/pixmaps/nuticon.xpm + mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64//usr/share/icons/ + install -p -m 644 nuticon.png /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/icons/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 19.2-14.fc30 --unique-debug-suffix -19.2-14.fc30.riscv64 --unique-debug-src-base nut-nutrition-19.2-14.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/nut-19.2 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/bin/nut-nutrition extracting debug info from /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/bin/nut-nutrition /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 588 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: nut-nutrition-19.2-14.fc30.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.kVxgaX + umask 022 + cd /builddir/build/BUILD + cd nut-19.2 + DOCDIR=/builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/doc/nut-nutrition + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/doc/nut-nutrition + cp -pr README /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/doc/nut-nutrition + cp -pr CREDITS /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/doc/nut-nutrition + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.pKVTCa + umask 022 + cd /builddir/build/BUILD + cd nut-19.2 + LICENSEDIR=/builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/licenses/nut-nutrition + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/licenses/nut-nutrition + cp -pr LICENSE /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64/usr/share/licenses/nut-nutrition + exit 0 Provides: application() application(nut-nutrition.desktop) metainfo() metainfo(nut-nutrition.appdata.xml) nut-nutrition = 19.2-14.fc30 nut-nutrition(riscv-64) = 19.2-14.fc30 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires(postun): /bin/sh Requires(posttrans): /bin/sh Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Processing files: nut-nutrition-debugsource-19.2-14.fc30.riscv64 Provides: nut-nutrition-debugsource = 19.2-14.fc30 nut-nutrition-debugsource(riscv-64) = 19.2-14.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: nut-nutrition-debuginfo-19.2-14.fc30.riscv64 Provides: debuginfo(build-id) = ecc774a3864f55e11a0be2e62a1394b0a71d0886 nut-nutrition-debuginfo = 19.2-14.fc30 nut-nutrition-debuginfo(riscv-64) = 19.2-14.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: nut-nutrition-debugsource(riscv-64) = 19.2-14.fc30 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 Wrote: /builddir/build/RPMS/nut-nutrition-19.2-14.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/nut-nutrition-debugsource-19.2-14.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/nut-nutrition-debuginfo-19.2-14.fc30.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.lH1fOl + umask 022 + cd /builddir/build/BUILD + cd nut-19.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/nut-nutrition-19.2-14.fc30.riscv64 + exit 0 Child return code was: 0