<86>Nov 15 01:17:02 userdel[22268]: delete user 'rooter' <86>Nov 15 01:17:02 userdel[22268]: removed group 'rooter' owned by 'rooter' <86>Nov 15 01:17:02 userdel[22268]: removed shadow group 'rooter' owned by 'rooter' <86>Nov 15 01:17:02 groupadd[22286]: group added to /etc/group: name=rooter, GID=603 <86>Nov 15 01:17:02 groupadd[22286]: group added to /etc/gshadow: name=rooter <86>Nov 15 01:17:02 groupadd[22286]: new group: name=rooter, GID=603 <86>Nov 15 01:17:02 useradd[22297]: new user: name=rooter, UID=603, GID=603, home=/root, shell=/bin/bash <86>Nov 15 01:17:02 userdel[22319]: delete user 'builder' <86>Nov 15 01:17:02 userdel[22319]: removed group 'builder' owned by 'builder' <86>Nov 15 01:17:02 userdel[22319]: removed shadow group 'builder' owned by 'builder' <86>Nov 15 01:17:02 groupadd[22339]: group added to /etc/group: name=builder, GID=604 <86>Nov 15 01:17:02 groupadd[22339]: group added to /etc/gshadow: name=builder <86>Nov 15 01:17:02 useradd[22393]: new user: name=builder, UID=604, GID=604, home=/usr/src, shell=/bin/bash <13>Nov 15 01:17:08 rpmi: liblzo2-2.10-alt1 sisyphus+225108.100.1.1 1552705748 installed <13>Nov 15 01:17:08 rpmi: liblzo2-devel-2.10-alt1 sisyphus+225108.100.1.1 1552705748 installed <13>Nov 15 01:17:08 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550600768 installed <13>Nov 15 01:17:08 rpmi: libuuid-devel-2.33.2-alt1 sisyphus+227076.100.1.1 1555076778 installed <13>Nov 15 01:17:08 rpmi: liblzma-devel-5.2.4-alt1 sisyphus+221902.5700.4.1 1550600683 installed <13>Nov 15 01:17:08 rpmi: libacl-devel-2.2.53-alt1 sisyphus+221902.200.4.1 1550587056 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/mtd-utils-1.5.2-alt1.nosrc.rpm Installing mtd-utils-1.5.2-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.23094 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf mtd-utils-1.5.2 + echo 'Source #0 (mtd-utils-1.5.2-alt1.tar):' Source #0 (mtd-utils-1.5.2-alt1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/mtd-utils-1.5.2-alt1.tar + cd mtd-utils-1.5.2 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.39375 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mtd-utils-1.5.2 + make -j8 make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CHK include/version.h make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC lib/libcrc32.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC doc_loadbios.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC ftl_check.o ftl_check.c: In function 'check_partition': ftl_check.c:97:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 97 | read(fd, &hdr, sizeof(hdr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC ftl_format.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC compr_rtime.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC lib/libmtd_legacy.o lib/libmtd_legacy.c: In function 'legacy_get_dev_info': lib/libmtd_legacy.c:254:15: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] 254 | mtd->major = major(st.st_rdev); | ^~~~~ lib/libmtd_legacy.c:255:15: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration] 255 | mtd->minor = minor(st.st_rdev); | ^~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC compr_zlib.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_erase.o In file included from flash_erase.c:36: flash_erase.c: In function 'main': ./include/common.h:97:2: warning: this statement may fall through [-Wimplicit-fallthrough=] 97 | -1; \ | ^ flash_erase.c:162:3: note: in expansion of macro 'errmsg' 162 | errmsg("no MTD device specified"); | ^~~~~~ flash_erase.c:163:2: note: here 163 | case 1: | ^~~~ In file included from flash_erase.c:36: ./include/common.h:97:2: warning: this statement may fall through [-Wimplicit-fallthrough=] 97 | -1; \ | ^ flash_erase.c:164:3: note: in expansion of macro 'errmsg' 164 | errmsg("no start erase block specified"); | ^~~~~~ flash_erase.c:165:2: note: here 165 | case 2: | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC compr_lzo.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC compr.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_unlock.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_otp_dump.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_otp_info.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_otp_lock.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_otp_write.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flash_lock.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC nanddump.o nanddump.c: In function 'main': nanddump.c:446:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 446 | write(ofd, pretty_buf, strlen(pretty_buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nanddump.c:449:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 449 | write(ofd, readbuf, bs); | ^~~~~~~~~~~~~~~~~~~~~~~ nanddump.c:469:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 469 | write(ofd, pretty_buf, strlen(pretty_buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nanddump.c:472:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 472 | write(ofd, oobbuf, mtd.oob_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nanddump.c: In function 'process_options': nanddump.c:176:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 176 | canonical = true; | ^ nanddump.c:177:4: note: here 177 | case 'p': | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mtd_debug.o mtd_debug.c: In function 'showinfo': mtd_debug.c:270:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 270 | printf("MTD_UBIVOLUME"); | ^~~~~~~~~~~~~~~~~~~~~~~ mtd_debug.c:271:3: note: here 271 | default: | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC flashcp.o flashcp.c: In function 'main': flashcp.c:255:2: warning: #warning "Check for smaller erase regions" [-Wcpp] 255 | #warning "Check for smaller erase regions" | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mtdpart.o In file included from /usr/include/string.h:507, from mtdpart.c:21: In function 'strncpy', inlined from 'main' at mtdpart.c:178:4: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC nandtest.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC rbtree.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC jffs2dump.o jffs2dump.c: In function 'do_endianconvert': jffs2dump.c:506:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 506 | write (fd, p, 4); | ^~~~~~~~~~~~~~~~ jffs2dump.c:515:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 515 | write (fd, &newnode, 4); | ^~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:558:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 558 | write (fd, &newnode, sizeof (struct jffs2_raw_inode)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:559:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 559 | write (fd, p + sizeof (struct jffs2_raw_inode), PAD (je32_to_cpu (node->i.totlen) - sizeof (struct jffs2_raw_inode))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:583:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 583 | write (fd, &newnode, sizeof (struct jffs2_raw_dirent)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:584:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 584 | write (fd, p + sizeof (struct jffs2_raw_dirent), PAD (je32_to_cpu (node->d.totlen) - sizeof (struct jffs2_raw_dirent))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:604:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 604 | write (fd, &newnode, sizeof (struct jffs2_raw_xattr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:605:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 605 | write (fd, p + sizeof (struct jffs2_raw_xattr), PAD (je32_to_cpu (node->d.totlen) - sizeof (struct jffs2_raw_xattr))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:628:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 628 | write (fd, &newnode, sizeof (struct jffs2_unknown_node)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:631:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 631 | write (fd, p + sizeof (struct jffs2_unknown_node), len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:724:14: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 724 | write(fd, &newnode, sizeof (struct jffs2_raw_summary)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:726:14: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 726 | write(fd, &node->s.sum, sum_len + sizeof (struct jffs2_sum_marker)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:732:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 732 | write (fd, p, 4); | ^~~~~~~~~~~~~~~~ jffs2dump.c: In function 'main': jffs2dump.c:780:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 780 | read (fd, &data[idx], datsize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:781:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 781 | read (fd, oob, oobsize); | ^~~~~~~~~~~~~~~~~~~~~~~ jffs2dump.c:789:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 789 | read (fd, data, imglen); | ^~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC docfdisk.o docfdisk.c: In function 'main': docfdisk.c:278:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] 278 | fgets(line, sizeof(line), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC lib/libmtd.o lib/libmtd.c: In function 'dev_node2num': lib/libmtd.c:446:8: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] 446 | mjr = major(st.st_rdev); | ^~~~~ lib/libmtd.c:447:8: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration] 447 | mnr = minor(st.st_rdev); | ^~~~~ lib/libmtd.c: In function 'mtd_get_dev_info1': lib/libmtd.c:749:46: warning: passing argument 3 of 'dev_read_data' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 749 | ret = dev_read_data(lib->mtd_name, mtd_num, &mtd->name, | ^~~~~~~~~~ lib/libmtd.c:182:63: note: expected 'void *' but argument is of type 'const char (*)[128]' 182 | static int dev_read_data(const char *patt, int mtd_num, void *buf, int buf_len) | ~~~~~~^~~ lib/libmtd.c:755:46: warning: passing argument 3 of 'dev_read_data' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 755 | ret = dev_read_data(lib->mtd_type, mtd_num, &mtd->type_str, | ^~~~~~~~~~~~~~ lib/libmtd.c:182:63: note: expected 'void *' but argument is of type 'const char (*)[65]' 182 | static int dev_read_data(const char *patt, int mtd_num, void *buf, int buf_len) | ~~~~~~^~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC nftldump.o nftldump.c: In function 'dump_virtual_units': nftldump.c:236:6: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 236 | pread(fd, readbuf, 512, | ^~~~~~~~~~~~~~~~~~~~~~~ 237 | (lastgoodEUN * ERASESIZE) + (j * 512)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftldump.c:239:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 239 | write(ofd, readbuf, 512); | ^~~~~~~~~~~~~~~~~~~~~~~~ nftldump.c: In function 'find_media_headers': nftldump.c:76:3: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 76 | pread(fd, &MedHead[NumMedHeads], sizeof(struct NFTLMediaHeader), ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftldump.c:96:6: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 96 | pread(fd, &BadUnitTable[i], 512, ofs + 512 + i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC serve_image.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC rfddump.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC lib/libfec.o In file included from /usr/include/string.h:507, from lib/libfec.c:47: In function 'memset', inlined from 'invert_mat' at lib/libfec.c:421:5, inlined from 'build_decode_matrix' at lib/libfec.c:817:9, inlined from 'fec_decode' at lib/libfec.c:848:13: /usr/include/bits/string_fortified.h:71:10: warning: '__builtin_memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 71 | return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/string_fortified.h:71:10: warning: '__builtin_memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC nftl_format.o nftl_format.c: In function 'main': nftl_format.c:380:2: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 380 | pwrite(fd, writebuf[0], 512, MediaUnit1 * meminfo.erasesize + MediaUnitOff1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:382:3: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 382 | pwrite(fd, BadUnitTable + ezone, 512, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 383 | (MediaUnit1 * meminfo.erasesize) + 512 * (1 + ezone / 512)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:394:2: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 394 | pwrite(fd, writebuf[0], 512, MediaUnit2 * meminfo.erasesize + MediaUnitOff2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:396:3: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 396 | pwrite(fd, BadUnitTable + ezone, 512, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 397 | (MediaUnit2 * meminfo.erasesize + MediaUnitOff2) + 512 * (1 + ezone / 512)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c: In function 'check_block_2': nftl_format.c:87:3: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 87 | pread(fd, readbuf, 512, ofs + blockofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:94:3: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 94 | pwrite(fd, writebuf[1], 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:95:3: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 95 | pread(fd, readbuf, 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:108:3: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 108 | pwrite(fd, writebuf[2], 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:109:3: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 109 | pread(fd, readbuf, 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:121:3: warning: ignoring return value of 'pwrite', declared with attribute warn_unused_result [-Wunused-result] 121 | pwrite(fd, writebuf[3], 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nftl_format.c:122:3: warning: ignoring return value of 'pread', declared with attribute warn_unused_result [-Wunused-result] 122 | pread(fd, readbuf, 512, blockofs + ofs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC rfdformat.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC recv_image.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.ubifs/crc16.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.ubifs/devtable.o mkfs.ubifs/devtable.c: In function 'interpret_table_entry': mkfs.ubifs/devtable.c:237:17: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration] 237 | nh_elt->dev = makedev(major, minor); | ^~~~~~~ In file included from mkfs.ubifs/devtable.c:47: mkfs.ubifs/devtable.c:240:10: error: called object 'major' is not a function or function pointer 240 | name, major(nh_elt->dev), minor(nh_elt->dev)); | ^~~~~ mkfs.ubifs/mkfs.ubifs.h:84:54: note: in definition of macro 'dbg_msg' 84 | printf("mkfs.ubifs: %s: " fmt "\n", __FUNCTION__, ##__VA_ARGS__); \ | ^~~~~~~~~~~ mkfs.ubifs/devtable.c:134:46: note: declared here 134 | unsigned int mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; | ^~~~~ In file included from mkfs.ubifs/devtable.c:47: mkfs.ubifs/devtable.c:240:30: error: called object 'minor' is not a function or function pointer 240 | name, major(nh_elt->dev), minor(nh_elt->dev)); | ^~~~~ mkfs.ubifs/mkfs.ubifs.h:84:54: note: in definition of macro 'dbg_msg' 84 | printf("mkfs.ubifs: %s: " fmt "\n", __FUNCTION__, ##__VA_ARGS__); \ | ^~~~~~~~~~~ mkfs.ubifs/devtable.c:134:57: note: declared here 134 | unsigned int mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; | ^~~~~ In file included from mkfs.ubifs/devtable.c:47: mkfs.ubifs/devtable.c:277:16: error: called object 'major' is not a function or function pointer 277 | nm, major(nh_elt->dev), minor(nh_elt->dev)); | ^~~~~ mkfs.ubifs/mkfs.ubifs.h:84:54: note: in definition of macro 'dbg_msg' 84 | printf("mkfs.ubifs: %s: " fmt "\n", __FUNCTION__, ##__VA_ARGS__); \ | ^~~~~~~~~~~ mkfs.ubifs/devtable.c:134:46: note: declared here 134 | unsigned int mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; | ^~~~~ In file included from mkfs.ubifs/devtable.c:47: mkfs.ubifs/devtable.c:277:36: error: called object 'minor' is not a function or function pointer 277 | nm, major(nh_elt->dev), minor(nh_elt->dev)); | ^~~~~ mkfs.ubifs/mkfs.ubifs.h:84:54: note: in definition of macro 'dbg_msg' 84 | printf("mkfs.ubifs: %s: " fmt "\n", __FUNCTION__, ##__VA_ARGS__); \ | ^~~~~~~~~~~ mkfs.ubifs/devtable.c:134:57: note: declared here 134 | unsigned int mode = 0755, uid = 0, gid = 0, major = 0, minor = 0; | ^~~~~ make: *** [common.mk:83: /usr/src/RPM/BUILD/mtd-utils-1.5.2/mkfs.ubifs/devtable.o] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: *** Waiting for unfinished jobs.... make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC jffs2reader.o jffs2reader.c: In function 'printdir': jffs2reader.c:349:37: warning: taking address of packed member of 'struct jffs2_raw_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 349 | filetime = ctime((const time_t *) &(ri->ctime)); | ^~~~~~~~~~~~ jffs2reader.c:358:24: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] 358 | printf("%4d, %3d ", major(rdev), minor(rdev)); | ^~~~~ jffs2reader.c:358:37: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration] 358 | printf("%4d, %3d ", major(rdev), minor(rdev)); | ^~~~~ jffs2reader.c: In function 'catfile': jffs2reader.c:853:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] 853 | write(1, b, *rsize); | ^~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.ubifs/lpt.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC nandwrite.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.ubifs/compr.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC sumtool.o make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.ubifs/mkfs.ubifs.o In file included from mkfs.ubifs/mkfs.ubifs.h:56, from mkfs.ubifs/mkfs.ubifs.c:25: mkfs.ubifs/mkfs.ubifs.c: In function 'add_dev_inode': mkfs.ubifs/mkfs.ubifs.c:1292:25: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration] 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~~~ mkfs.ubifs/defs.h:20:18: note: in definition of macro 't64' 20 | uint64_t __b = (x); \ | ^ mkfs.ubifs/mkfs.ubifs.c:1292:13: note: in expansion of macro 'cpu_to_le64' 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.c:1292:33: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~ mkfs.ubifs/defs.h:20:18: note: in definition of macro 't64' 20 | uint64_t __b = (x); \ | ^ mkfs.ubifs/mkfs.ubifs.c:1292:13: note: in expansion of macro 'cpu_to_le64' 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~~~~~~~ mkfs.ubifs/mkfs.ubifs.c:1292:53: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration] 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~ mkfs.ubifs/defs.h:20:18: note: in definition of macro 't64' 20 | uint64_t __b = (x); \ | ^ mkfs.ubifs/mkfs.ubifs.c:1292:13: note: in expansion of macro 'cpu_to_le64' 1292 | dev.huge = cpu_to_le64(makedev(major(st->st_rdev), minor(st->st_rdev))); | ^~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' make: Entering directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' CC mkfs.jffs2.o mkfs.jffs2.c: In function 'interpret_table_entry': mkfs.jffs2.c:471:24: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration] 471 | entry->sb.st_rdev = makedev(major, minor); | ^~~~~~~ In file included from mkfs.jffs2.c:599: mkfs.jffs2.c: In function 'write_special_file': mkfs.jffs2.c:948:22: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] 948 | kdev = cpu_to_je16((major(statbuf->st_rdev) << 8) + | ^~~~~ ./include/mtd/jffs2-user.h:24:35: note: in definition of macro 't16' 24 | #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) | ^ mkfs.jffs2.c:948:9: note: in expansion of macro 'cpu_to_je16' 948 | kdev = cpu_to_je16((major(statbuf->st_rdev) << 8) + | ^~~~~~~~~~~ mkfs.jffs2.c:949:4: warning: implicit declaration of function 'minor'; did you mean 'mincore'? [-Wimplicit-function-declaration] 949 | minor(statbuf->st_rdev)); | ^~~~~ ./include/mtd/jffs2-user.h:24:35: note: in definition of macro 't16' 24 | #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); }) | ^ mkfs.jffs2.c:948:9: note: in expansion of macro 'cpu_to_je16' 948 | kdev = cpu_to_je16((major(statbuf->st_rdev) << 8) + | ^~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mtd-utils-1.5.2' error: Bad exit status from /usr/src/tmp/rpm-tmp.39375 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.39375 (%build) Command exited with non-zero status 1 7.47user 0.72system 0:11.47elapsed 71%CPU (0avgtext+0avgdata 47520maxresident)k 0inputs+0outputs (0major+245464minor)pagefaults 0swaps hsh-rebuild: rebuild of `mtd-utils-1.5.2-alt1.src.rpm' failed. Command exited with non-zero status 1 11.76user 2.72system 0:29.40elapsed 49%CPU (0avgtext+0avgdata 110888maxresident)k 1264inputs+0outputs (0major+486204minor)pagefaults 0swaps