默认的cp
和mv
都不显示进度,对于复制大文件来说,非常不友好~
所以推荐advcpmv
这个包,你可以自定义替换的命令,比如官方的cpg
和mvg
。
安装方式非常简单:
1 |
curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh && (cd advcpmv && sh install.sh) |
安装之后会在本地目录生成编译好的程序,把它们放到系统目录即可:
1 2 |
sudo mv ./advcpmv/advcp /usr/local/bin/cpg sudo mv ./advcpmv/advmv /usr/local/bin/mvg |
然后就可以使用了:
1 2 3 4 5 |
# 原来的命令 cp -r aaa/ bbb/ # 替换命令 cpg -gr aaa/ bbb/ |
复制过程:
Shell
1 2 3 4 5 6 7 |
(base) mcj@mcj2080:~/16T/2080Ti_Backup$ sudo cpg -gr ../../bigdisk/ ./ 2 of 5730929 files copied (about 17h 39m 51s remaining) g) ) 1.0 GiB / 1.7 TiB [> ] 0.1 % copying at 32.4 MiB/s (about 0h 1m 18s remaining) ../../bigdisk/cuda9_sogoupinyin_20b94ebc2ef0036277f4a2423848228c0eb97164e946fa3c36792a1b5dec1b59 1.0 GiB / 8.4 GiB [=======================> ] 12.3 % |
移动命令同理,下面是所有的使用说明:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
(base) mcj@mcj2080:~$ cpg --help 用法:cpg [选项]... [-T] 源文件 目标文件 或:cpg [选项]... 源文件... 目录 或:cpg [选项]... -t 目录 源文件... Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. 必选参数对长短选项同时适用。 -a, --archive 等于-dR --preserve=all --attributes-only 仅复制属性而不复制数据 --backup[=CONTROL 为每个已存在的目标文件创建备份 -b 类似--backup 但不接受参数 --copy-contents 在递归处理是复制特殊文件内容 -d 等于--no-dereference --preserve=links --debug explain how a file is copied. Implies -v -f, --force if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used) -g, --progress-bar add a progress bar. Note that this doesn't work with reflink, reflink will be automatically disabled -i, --interactive prompt before overwrite (overrides a previous -n option) -H follow command-line symbolic links in SOURCE -l, --link hard link files instead of copying -L, --dereference always follow symbolic links in SOURCE -n, --no-clobber 不要覆盖已存在的文件(使前面的 -i 选项失效) -P, --no-dereference 不跟随源文件中的符号链接 -p same as --preserve=mode,ownership,timestamps --preserve[=ATTR_LIST] preserve the specified attributes --sno-preserve=属性列表 不保留指定的文件属性 --parents 复制前在目标目录创建来源文件路径中的所有目录 -R, -r, --recursive 递归复制目录及其子目录内的所有内容 --reflink[=WHEN] 控制克隆/CoW 副本。请查看下面的内如。 --remove-destination 尝试打开目标文件前先删除已存在的目的地 文件 (相对于 --force 选项) --sparse=WHEN 控制创建稀疏文件的方式 --strip-trailing-slashes 删除参数中所有源文件/目录末端的斜杠 -s, --symbolic-link 只创建符号链接而不复制文件 -S, --suffix=后缀 自行指定备份文件的后缀 -t, --target-directory=目录 将所有参数指定的源文件/目录 复制至目标目录 -T, --no-target-directory 将目标目录视作普通文件 -u, --update 只在源文件比目标文件新,或目标文件 不存在时才进行复制 -v, --verbose 显示详细的进行步骤 -x, --one-file-system 不跨越文件系统进行操作 -Z set SELinux security context of destination file to default type --context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX --help display this help and exit --version output version information and exit ATTR_LIST is a comma-separated list of attributes. Attributes are 'mode' for permissions (including any ACL and xattr permissions), 'ownership' for user and group, 'timestamps' for file timestamps, 'links' for hard links, 'context' for security context, 'xattr' for extended attributes, and 'all' for all attributes. By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by --sparse=auto. Specify --sparse=always to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes. Use --sparse=never to inhibit creation of sparse files. When --reflink[=always] is specified, perform a lightweight copy, where the data blocks are copied only when modified. If this is not possible the copy fails, or if --reflink=auto is specified, fall back to a standard copy. Use --reflink=never to ensure a standard copy is performed. The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values: none, off 不进行备份(即使使用了--backup 选项) numbered, t 备份文件加上数字进行排序 existing, nil 若有数字的备份文件已经存在则使用数字,否则使用普通方式备份 simple, never 永远使用普通方式备份 有一个特别情况:如果同时指定--force 和--backup 选项,而源文件和目标文件 是同一个已存在的一般文件的话,cp 会将源文件备份。 GNU coreutils online help: <https://www.gnu.org/software/coreutils/> Report any translation bugs to <https://translationproject.org/team/> Full documentation <https://www.gnu.org/software/coreutils/cp> or available locally via: info '(coreutils) cp invocation' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 |
checking for renameat2... no checking for linux/fs.h... (cached) yes checking for renameat2... (cached) no checking for rewinddir... yes checking whether rmdir works... (cached) yes checking for rpmatch... yes checking whether select supports a 0 argument... yes checking whether select detects invalid fds... yes checking for selinux/flask.h... no checking for library containing getservbyname... (cached) none required checking for getservbyname... (cached) yes checking whether setenv validates arguments... yes checking whether setlocale (LC_ALL, NULL) is multithread-safe... (cached) yes checking whether setlocale (category, NULL) is multithread-safe... (cached) yes checking for sig2str... no checking for struct sigaction.sa_sigaction... yes checking for signbit macro... yes checking for signbit compiler built-ins... yes checking for sigprocmask... (cached) yes checking for stdint.h... (cached) yes checking for SIZE_MAX... yes checking for smack_new_label_from_self in -lsmack... no checking for snprintf... (cached) yes checking whether snprintf respects a size of 1... yes checking whether printf supports POSIX/XSI format strings with positions... yes checking for socklen_t... yes checking for ssize_t... (cached) yes checking whether stat handles trailing slashes on files... yes checking for struct stat.st_atim.tv_nsec... yes checking whether struct stat.st_atim is of type struct timespec... yes checking for struct stat.st_birthtimespec.tv_nsec... no checking for struct stat.st_birthtimensec... no checking for struct stat.st_birthtim.tv_nsec... no checking for va_copy... yes checking for bool, true, false... no checking for stpcpy... yes checking for stpncpy... yes checking for working stpncpy... yes checking for working strerror function... yes checking for working strnlen... yes checking for strsignal... yes checking whether strsignal always returns a string... yes checking whether strstr works... yes checking whether strtod obeys C99... yes checking whether strtoimax works... yes checking whether strtold obeys POSIX... yes checking for strtoll... yes checking whether strtoll works... yes checking for strtoull... yes checking whether strtoull works... yes checking whether symlink handles trailing slash correctly... yes checking for symlinkat... yes checking whether symlinkat handles trailing slash correctly... yes checking whether localtime_r is declared... yes checking whether localtime_r is compatible with its POSIX signature... yes checking whether localtime works even near extrema... yes checking for timezone_t... no checking for timegm... yes checking whether timer_settime is declared... yes checking for library containing timer_settime... -lrt checking for timer_settime... yes checking whether tmpfile works... yes checking for uname... yes checking whether unlink honors trailing slashes... (cached) yes checking whether unlink of a parent directory fails as it should... (cached) guessing yes checking whether a running program can be unlinked... yes checking for unsetenv... yes checking for unsetenv() return type... int checking whether unsetenv obeys POSIX... yes checking for /proc/uptime... yes checking for utime... yes checking whether utime handles trailing slashes on files... yes checking for futimes... yes checking for futimesat... yes checking for lutimes... yes checking for futimens... (cached) yes checking for utimensat... yes checking for utimensat... (cached) yes checking whether utimensat works... yes checking for variable-length arrays... yes checking for ptrdiff_t... yes checking for vasprintf... yes checking for vasprintf... (cached) yes checking for ptrdiff_t... (cached) yes checking for ptrdiff_t... (cached) yes checking whether mbrtowc handles incomplete characters... (cached) guessing yes checking whether mbrtowc works as well as mbtowc... (cached) guessing yes checking whether wcrtomb works in the C locale... yes checking whether wcrtomb return value is correct... guessing yes checking whether wcwidth is declared... (cached) yes checking whether wcwidth works reasonably in UTF-8 locales... (cached) yes checking whether use of TIOCGWINSZ requires sys/ioctl.h... yes checking whether use of TIOCGWINSZ requires termios.h... (cached) no checking whether use of struct winsize requires sys/ptem.h... no checking for wmemchr... yes checking for wmempcpy... yes checking for stdint.h... (cached) yes checking for atoll... yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional french locale... (cached) none checking for a turkish Unicode locale... none checking for duplocale... yes checking whether byte ordering is bigendian... (cached) no checking for library containing inet_pton... none required checking whether inet_pton is declared... yes checking whether byte ordering is bigendian... (cached) no checking for ioctl... yes checking for ioctl with POSIX signature... no checking where to find the exponent in a 'double'... (cached) word 1 bit 20 checking where to find the exponent in a 'float'... (cached) word 0 bit 23 checking where to find the exponent in a 'long double'... word 2 bit 0 checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking for newlocale... yes checking for newlocale... (cached) yes checking for duplocale... (cached) yes checking for freelocale... yes checking for newlocale... (cached) yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking for a turkish Unicode locale... (cached) none checking for a transitional chinese locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking for a french Unicode locale... (cached) none checking for a transitional chinese locale... (cached) none checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for uselocale... (cached) yes checking whether uselocale works... (cached) yes checking whether perror matches strerror... yes checking whether sched_yield is declared... yes checking whether setlocale supports the C locale... yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking whether sleep is declared... yes checking for working sleep... yes checking for catgets... yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for pthread_atfork... yes checking for sys/single_threaded.h... no checking for a french Unicode locale... (cached) none checking for a transitional chinese locale... (cached) none checking for useconds_t... yes checking whether usleep allows large arguments... yes checking for a traditional french locale... (cached) none checking for a french Unicode locale... (cached) none checking for a traditional japanese locale... (cached) none checking for a transitional chinese locale... (cached) none checking whether wctob works... guessing yes checking whether wctob is declared... yes checking for working volatile... yes checking for unsigned long long int... yes checking for sys/sysctl.h... (cached) yes checking whether geteuid is declared... yes checking whether getuid is declared... yes checking whether getgrgid is declared... yes checking whether getpwuid is declared... yes checking whether ttyname is declared... yes checking whether setregid is declared... yes checking for struct stat.st_author... no checking for ino_t... yes checking for major_t... no checking for minor_t... no checking for mode_to_security_class... no checking for inotify_init... yes checking for nfs/vfs.h... no checking for struct statvfs.f_basetype... no checking for struct statvfs.f_fstypename... no checking for struct statvfs.f_type... no checking for struct statfs.f_namelen... yes checking for struct statfs.f_namemax... no checking for struct statfs.f_type... (cached) yes checking for struct statfs.f_frsize... yes checking for library containing fdatasync... none required checking for fdatasync... (cached) yes checking for cap_get_file in -lcap... yes checking for sys/capability.h... yes checking for working fork... yes checking for working vfork... (cached) yes checking for chroot... yes checking for gethostid... yes checking for sigsuspend... yes checking whether use of struct winsize requires sys/ptem.h... (cached) no checking whether localtime caches TZ... no checking for fclonefileat... no checking for getattrat... no checking for statx... no checking for initgroups... yes checking for syslog... yes checking for 3-argument setpriority function... yes checking ut_host in struct utmp... yes checking for sysctl... (cached) yes checking for sys/sysctl.h... (cached) yes checking whether we can get the system boot time... yes checking POSIX termios... (cached) yes checking whether use of TIOCGWINSZ requires sys/ioctl.h... (cached) yes checking whether termios.h needs _XOPEN_SOURCE... no checking c_line in struct termios... yes checking whether use of struct winsize requires sys/ptem.h... (cached) no checking whether use of TIOCGWINSZ requires termios.h... (cached) no checking whether strsignal is declared... (cached) yes checking whether sys_siglist is declared... yes checking whether _sys_siglist is declared... yes checking whether __sys_siglist is declared... no checking whether C compiler handles -Werror... yes checking whether C compiler handles -errwarn... no checking whether this system supports stdbuf... yes checking if __get_cpuid available... yes checking if pclmul intrinsic exists... yes checking if __get_cpuid_count exists... no checking if avx2 intrinstics exists... yes checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for CFPreferencesCopyAppValue... (cached) no checking for CFLocaleCopyPreferredLanguages... (cached) no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for a traditional french locale... (cached) none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating po/Makefile.in config.status: creating gnulib-tests/Makefile config.status: creating lib/config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile GEN lib/alloca.h GEN lib/arpa/inet.h GEN lib/assert.h GEN lib/configmake.h GEN lib/ctype.h GEN lib/dirent.h GEN lib/fcntl.h GEN lib/malloc/dynarray.gl.h GEN lib/malloc/dynarray-skeleton.gl.h GEN lib/malloc/scratch_buffer.gl.h GEN lib/iconv.h GEN lib/inttypes.h GEN lib/langinfo.h GEN lib/limits.h GEN lib/locale.h GEN lib/math.h GEN lib/netdb.h GEN lib/pthread.h GEN lib/sched.h GEN lib/selinux/selinux.h GEN lib/selinux/context.h GEN lib/selinux/label.h GEN lib/signal.h GEN lib/stdckdint.h GEN lib/stdint.h GEN lib/stdio.h GEN lib/stdlib.h GEN lib/string.h GEN lib/sys/ioctl.h GEN lib/sys/random.h GEN lib/sys/resource.h GEN lib/sys/select.h GEN lib/sys/socket.h GEN lib/sys/stat.h GEN lib/sys/time.h GEN lib/sys/types.h GEN lib/sys/uio.h GEN lib/sys/utsname.h GEN lib/sys/wait.h GEN lib/termios.h GEN lib/time.h GEN lib/unistd.h GEN lib/unistr.h GEN lib/unitypes.h GEN lib/uniwidth.h GEN lib/utime.h GEN lib/wchar.h GEN lib/wctype.h GEN src/coreutils.h GEN src/version.c GEN src/version.h make all-recursive make[1]: Entering directory '/home/mcj/advcpmv/coreutils-9.2' Making all in po make[2]: Entering directory '/home/mcj/advcpmv/coreutils-9.2/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2/po' Making all in . make[2]: Entering directory '/home/mcj/advcpmv/coreutils-9.2' CC src/chroot.o CC src/version.o AR src/libver.a CC lib/libcoreutils_a-copy-acl.o CC lib/libcoreutils_a-set-acl.o CC lib/libcoreutils_a-acl-errno-valid.o CC lib/libcoreutils_a-acl-internal.o CC lib/libcoreutils_a-get-permissions.o CC lib/libcoreutils_a-set-permissions.o CC lib/libcoreutils_a-alignalloc.o CC lib/libcoreutils_a-allocator.o CC lib/libcoreutils_a-areadlink.o CC lib/libcoreutils_a-areadlink-with-size.o CC lib/libcoreutils_a-areadlinkat.o CC lib/libcoreutils_a-areadlinkat-with-size.o CC lib/libcoreutils_a-argmatch.o CC lib/libcoreutils_a-argv-iter.o CC lib/libcoreutils_a-openat-proc.o CC lib/libcoreutils_a-backupfile.o CC lib/libcoreutils_a-backup-rename.o CC lib/libcoreutils_a-backup-find.o CC lib/libcoreutils_a-base32.o CC lib/libcoreutils_a-base64.o CC lib/libcoreutils_a-basename-lgpl.o CC lib/libcoreutils_a-binary-io.o CC lib/libcoreutils_a-bitrotate.o CC lib/libcoreutils_a-buffer-lcm.o CC lib/libcoreutils_a-c-ctype.o CC lib/libcoreutils_a-c-strcasecmp.o CC lib/libcoreutils_a-c-strncasecmp.o CC lib/libcoreutils_a-c-strtod.o CC lib/libcoreutils_a-c-strtold.o CC lib/libcoreutils_a-canon-host.o CC lib/libcoreutils_a-canonicalize.o CC lib/libcoreutils_a-careadlinkat.o CC lib/libcoreutils_a-chdir-long.o CC lib/libcoreutils_a-chmodat.o CC lib/libcoreutils_a-chownat.o CC lib/libcoreutils_a-cl-strtod.o CC lib/libcoreutils_a-cl-strtold.o CC lib/libcoreutils_a-cloexec.o CC lib/libcoreutils_a-close-stream.o CC lib/libcoreutils_a-closein.o CC lib/libcoreutils_a-closeout.o CC lib/libcoreutils_a-copy-file-range.o CC lib/libcoreutils_a-count-leading-zeros.o CC lib/libcoreutils_a-af_alg.o CC lib/libcoreutils_a-md5-stream.o CC lib/libcoreutils_a-md5.o CC lib/libcoreutils_a-sha1-stream.o CC lib/libcoreutils_a-sha1.o CC lib/libcoreutils_a-sha256-stream.o CC lib/libcoreutils_a-sha256.o CC lib/libcoreutils_a-sha512-stream.o CC lib/libcoreutils_a-sha512.o CC lib/libcoreutils_a-sm3-stream.o CC lib/libcoreutils_a-sm3.o CC lib/libcoreutils_a-cycle-check.o CC lib/libcoreutils_a-di-set.o CC lib/libcoreutils_a-opendir-safer.o CC lib/libcoreutils_a-dirname.o CC lib/libcoreutils_a-basename.o CC lib/libcoreutils_a-dirname-lgpl.o CC lib/libcoreutils_a-stripslash.o CC lib/libcoreutils_a-dtoastr.o CC lib/libcoreutils_a-dtotimespec.o CC lib/libcoreutils_a-exclude.o CC lib/libcoreutils_a-exitfail.o CC lib/libcoreutils_a-explicit_bzero.o CC lib/libcoreutils_a-fadvise.o CC lib/libcoreutils_a-fchmodat.o CC lib/libcoreutils_a-fclose.o CC lib/libcoreutils_a-fcntl.o CC lib/libcoreutils_a-creat-safer.o CC lib/libcoreutils_a-open-safer.o CC lib/libcoreutils_a-fd-hook.o CC lib/libcoreutils_a-fd-reopen.o CC lib/libcoreutils_a-fd-safer-flag.o CC lib/libcoreutils_a-dup-safer-flag.o CC lib/libcoreutils_a-fdutimensat.o CC lib/libcoreutils_a-fflush.o CC lib/libcoreutils_a-file-has-acl.o CC lib/libcoreutils_a-file-set.o CC lib/libcoreutils_a-file-type.o CC lib/libcoreutils_a-filemode.o CC lib/libcoreutils_a-filenamecat.o CC lib/libcoreutils_a-filenamecat-lgpl.o CC lib/libcoreutils_a-filevercmp.o CC lib/libcoreutils_a-fopen-safer.o CC lib/libcoreutils_a-fprintftime.o CC lib/libcoreutils_a-fpurge.o CC lib/libcoreutils_a-freadahead.o CC lib/libcoreutils_a-freading.o CC lib/libcoreutils_a-freadptr.o CC lib/libcoreutils_a-freadseek.o CC lib/libcoreutils_a-free.o CC lib/libcoreutils_a-freopen.o CC lib/libcoreutils_a-freopen-safer.o CC lib/libcoreutils_a-fseek.o CC lib/libcoreutils_a-fseeko.o CC lib/libcoreutils_a-fseterr.o CC lib/libcoreutils_a-fsusage.o CC lib/libcoreutils_a-ftoastr.o CC lib/libcoreutils_a-fts.o CC lib/libcoreutils_a-full-read.o CC lib/libcoreutils_a-full-write.o CC lib/libcoreutils_a-gethrxtime.o CC lib/libcoreutils_a-xtime.o CC lib/libcoreutils_a-getndelim2.o CC lib/libcoreutils_a-getprogname.o CC lib/libcoreutils_a-getrandom.o CC lib/libcoreutils_a-gettime.o CC lib/libcoreutils_a-gettime-res.o CC lib/libcoreutils_a-getugroups.o CC lib/malloc/libcoreutils_a-dynarray_at_failure.o CC lib/malloc/libcoreutils_a-dynarray_emplace_enlarge.o CC lib/malloc/libcoreutils_a-dynarray_finalize.o CC lib/malloc/libcoreutils_a-dynarray_resize.o CC lib/malloc/libcoreutils_a-dynarray_resize_clear.o CC lib/malloc/libcoreutils_a-scratch_buffer_grow.o CC lib/malloc/libcoreutils_a-scratch_buffer_grow_preserve.o CC lib/malloc/libcoreutils_a-scratch_buffer_set_array_size.o CC lib/libcoreutils_a-hard-locale.o CC lib/libcoreutils_a-hash.o CC lib/libcoreutils_a-hash-pjw.o CC lib/libcoreutils_a-hash-triple.o CC lib/libcoreutils_a-hash-triple-simple.o CC lib/libcoreutils_a-heap.o CC lib/libcoreutils_a-human.o CC lib/libcoreutils_a-i-ring.o CC lib/libcoreutils_a-ialloc.o CC lib/libcoreutils_a-idcache.o CC lib/libcoreutils_a-ino-map.o CC lib/libcoreutils_a-imaxtostr.o CC lib/libcoreutils_a-inttostr.o CC lib/libcoreutils_a-offtostr.o CC lib/libcoreutils_a-uinttostr.o CC lib/libcoreutils_a-umaxtostr.o CC lib/libcoreutils_a-isapipe.o CC lib/libcoreutils_a-lchmod.o CC lib/libcoreutils_a-ldtoastr.o CC lib/libcoreutils_a-linebuffer.o CC lib/libcoreutils_a-localcharset.o CC lib/glthread/libcoreutils_a-lock.o CC lib/libcoreutils_a-long-options.o CC lib/libcoreutils_a-malloca.o CC lib/libcoreutils_a-math.o CC lib/libcoreutils_a-mbchar.o CC lib/libcoreutils_a-mbiter.o CC lib/libcoreutils_a-mbrlen.o CC lib/libcoreutils_a-mbrtowc.o CC lib/libcoreutils_a-mbsalign.o CC lib/libcoreutils_a-mbscasecmp.o CC lib/libcoreutils_a-mbschr.o CC lib/libcoreutils_a-mbslen.o CC lib/libcoreutils_a-mbsstr.o CC lib/libcoreutils_a-mbswidth.o CC lib/libcoreutils_a-mbuiter.o CC lib/libcoreutils_a-memcasecmp.o CC lib/libcoreutils_a-memchr2.o CC lib/libcoreutils_a-memcmp2.o CC lib/libcoreutils_a-memcoll.o CC lib/libcoreutils_a-memset_explicit.o CC lib/libcoreutils_a-mgetgroups.o CC lib/libcoreutils_a-mkancesdirs.o CC lib/libcoreutils_a-dirchownmod.o CC lib/libcoreutils_a-mkdir-p.o CC lib/libcoreutils_a-modechange.o CC lib/libcoreutils_a-mountlist.o CC lib/libcoreutils_a-mpsort.o CC lib/libcoreutils_a-nanosleep.o CC lib/libcoreutils_a-nl_langinfo.o CC lib/libcoreutils_a-nproc.o CC lib/libcoreutils_a-nstrftime.o CC lib/libcoreutils_a-obstack.o CC lib/libcoreutils_a-openat-die.o CC lib/libcoreutils_a-openat-safer.o CC lib/libcoreutils_a-opendirat.o CC lib/libcoreutils_a-parse-datetime.o In file included from lib/intprops.h:21:0, from parse-datetime.y:39: parse-datetime.y: In function 'to_tm_year': lib/intprops-internal.h:369:17: warning: integer overflow in expression [-Woverflow] || (tmax) + (b) < (a))) ^ lib/intprops-internal.h:299:4: note: in expansion of macro '_GL_INT_SUBTRACT_RANGE_OVERFLOW' (overflow (a, b, tmin, tmax) \ ^ lib/intprops-internal.h:264:10: note: in expansion of macro '_GL_INT_OP_CALC' ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ ^ lib/intprops-internal.h:156:4: note: in expansion of macro '_GL_INT_OP_WRAPV' _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) ^ lib/intprops.h:301:37: note: in expansion of macro '_GL_INT_SUBTRACT_WRAPV' #define INT_SUBTRACT_WRAPV(a, b, r) _GL_INT_SUBTRACT_WRAPV (a, b, r) ^ parse-datetime.y:1283:9: note: in expansion of macro 'INT_SUBTRACT_WRAPV' parse-datetime.y: In function 'yylex': lib/intprops-internal.h:369:17: warning: integer overflow in expression [-Woverflow] || (tmax) + (b) < (a))) ^ lib/intprops-internal.h:299:4: note: in expansion of macro '_GL_INT_SUBTRACT_RANGE_OVERFLOW' (overflow (a, b, tmin, tmax) \ ^ lib/intprops-internal.h:273:11: note: in expansion of macro '_GL_INT_OP_CALC' ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ ^ lib/intprops-internal.h:268:7: note: in expansion of macro '_GL_INT_OP_WRAPV_LONGISH' : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) ^ lib/intprops-internal.h:156:4: note: in expansion of macro '_GL_INT_OP_WRAPV' _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) ^ lib/intprops.h:301:37: note: in expansion of macro '_GL_INT_SUBTRACT_WRAPV' #define INT_SUBTRACT_WRAPV(a, b, r) _GL_INT_SUBTRACT_WRAPV (a, b, r) ^ parse-datetime.y:1478:23: note: in expansion of macro 'INT_SUBTRACT_WRAPV' CC lib/libcoreutils_a-physmem.o CC lib/libcoreutils_a-pipe2.o CC lib/libcoreutils_a-posixtm.o CC lib/libcoreutils_a-posixver.o CC lib/libcoreutils_a-printf-frexp.o CC lib/libcoreutils_a-printf-frexpl.o CC lib/libcoreutils_a-priv-set.o CC lib/libcoreutils_a-progname.o CC lib/libcoreutils_a-propername.o CC lib/libcoreutils_a-qcopy-acl.o CC lib/libcoreutils_a-qset-acl.o CC lib/libcoreutils_a-quotearg.o CC lib/libcoreutils_a-randint.o CC lib/libcoreutils_a-randperm.o CC lib/libcoreutils_a-randread.o CC lib/libcoreutils_a-rand-isaac.o CC lib/libcoreutils_a-read-file.o CC lib/libcoreutils_a-readtokens.o CC lib/libcoreutils_a-readtokens0.o CC lib/libcoreutils_a-readutmp.o CC lib/libcoreutils_a-reallocarray.o CC lib/libcoreutils_a-regex.o CC lib/libcoreutils_a-renameatu.o CC lib/libcoreutils_a-root-dev-ino.o CC lib/libcoreutils_a-safe-read.o CC lib/libcoreutils_a-safe-write.o CC lib/libcoreutils_a-same.o CC lib/libcoreutils_a-save-cwd.o CC lib/libcoreutils_a-savedir.o CC lib/libcoreutils_a-savewd.o CC lib/libcoreutils_a-selinux-at.o CC lib/libcoreutils_a-se-context.o CC lib/libcoreutils_a-se-label.o CC lib/libcoreutils_a-se-selinux.o CC lib/libcoreutils_a-setlocale_null.o CC lib/libcoreutils_a-settime.o CC lib/libcoreutils_a-sig2str.o CC lib/libcoreutils_a-sig-handler.o CC lib/libcoreutils_a-sockets.o CC lib/libcoreutils_a-stat-time.o CC lib/libcoreutils_a-mkstemp-safer.o CC lib/libcoreutils_a-striconv.o CC lib/libcoreutils_a-strnlen1.o CC lib/libcoreutils_a-strintcmp.o CC lib/libcoreutils_a-strnumcmp.o CC lib/libcoreutils_a-sys_socket.o CC lib/libcoreutils_a-targetdir.o CC lib/libcoreutils_a-tempname.o CC lib/glthread/libcoreutils_a-threadlib.o CC lib/libcoreutils_a-time_rz.o CC lib/libcoreutils_a-timegm.o CC lib/libcoreutils_a-timespec.o CC lib/glthread/libcoreutils_a-tls.o CC lib/libcoreutils_a-tmpdir.o CC lib/libcoreutils_a-trim.o CC lib/libcoreutils_a-u64.o CC lib/libcoreutils_a-unicodeio.o CC lib/libcoreutils_a-unistd.o CC lib/libcoreutils_a-dup-safer.o CC lib/libcoreutils_a-fd-safer.o CC lib/libcoreutils_a-pipe-safer.o CC lib/unistr/libcoreutils_a-u8-mbtoucr.o CC lib/unistr/libcoreutils_a-u8-uctomb.o CC lib/unistr/libcoreutils_a-u8-uctomb-aux.o CC lib/uniwidth/libcoreutils_a-width.o CC lib/libcoreutils_a-unlinkdir.o CC lib/libcoreutils_a-userspec.o CC lib/libcoreutils_a-utimecmp.o CC lib/libcoreutils_a-utimens.o CC lib/libcoreutils_a-verror.o CC lib/libcoreutils_a-version-etc.o CC lib/libcoreutils_a-version-etc-fsf.o CC lib/libcoreutils_a-wctype-h.o CC lib/libcoreutils_a-write-any-file.o CC lib/libcoreutils_a-xalignalloc.o CC lib/libcoreutils_a-xmalloc.o CC lib/libcoreutils_a-xalloc-die.o CC lib/libcoreutils_a-xbinary-io.o CC lib/libcoreutils_a-xdectoimax.o CC lib/libcoreutils_a-xdectoumax.o CC lib/libcoreutils_a-xfts.o CC lib/libcoreutils_a-xgetcwd.o CC lib/libcoreutils_a-xgetgroups.o CC lib/libcoreutils_a-xgethostname.o CC lib/libcoreutils_a-xmemcoll.o CC lib/libcoreutils_a-xnanosleep.o CC lib/libcoreutils_a-xprintf.o CC lib/libcoreutils_a-xreadlink.o CC lib/libcoreutils_a-xsize.o CC lib/libcoreutils_a-xstriconv.o CC lib/libcoreutils_a-xstrtod.o CC lib/libcoreutils_a-xstrtoimax.o CC lib/libcoreutils_a-xstrtol.o CC lib/libcoreutils_a-xstrtoul.o CC lib/libcoreutils_a-xstrtol-error.o CC lib/libcoreutils_a-xstrtold.o CC lib/libcoreutils_a-xstrtoumax.o CC lib/libcoreutils_a-xvasprintf.o CC lib/libcoreutils_a-xasprintf.o CC lib/libcoreutils_a-yesno.o CC lib/asnprintf.o CC lib/asprintf.o CC lib/mktime.o CC lib/printf-args.o CC lib/printf-parse.o CC lib/vasnprintf.o CC lib/vasprintf.o CC lib/vfprintf.o CC lib/vprintf.o AR lib/libcoreutils.a CCLD src/chroot CC src/hostid.o CCLD src/hostid CC src/timeout.o CC src/operand2sig.o CCLD src/timeout CC src/nice.o CCLD src/nice CC src/who.o CCLD src/who CC src/users.o CCLD src/users CC src/pinky.o CCLD src/pinky CC src/uptime.o CCLD src/uptime CC src/stty.o CCLD src/stty CC src/df.o CC src/find-mount-point.o CCLD src/df CC src/stdbuf.o CCLD src/stdbuf CC src/lbracket.o CCLD src/[ CC src/b2sum-digest.o CC src/blake2/b2sum-blake2b-ref.o CC src/blake2/b2sum-b2sum.o CCLD src/b2sum CC src/base64-basenc.o CCLD src/base64 CC src/base32-basenc.o CCLD src/base32 CC src/basenc-basenc.o CCLD src/basenc CC src/basename.o CCLD src/basename CC src/cat.o CCLD src/cat CC src/chcon.o CCLD src/chcon CC src/chgrp.o CC src/chown-core.o CCLD src/chgrp CC src/chmod.o CCLD src/chmod CC src/chown.o CCLD src/chown CC src/cksum-digest.o CC src/blake2/cksum-blake2b-ref.o CC src/blake2/cksum-b2sum.o CC src/cksum-sum.o CC src/cksum-cksum.o CC src/cksum-crctab.o CC src/libcksum_pclmul_a-cksum_pclmul.o AR src/libcksum_pclmul.a CCLD src/cksum CC src/comm.o CCLD src/comm CC src/cp.o CC src/copy.o CC src/cp-hash.o CC src/force-link.o CC src/selinux.o CCLD src/cp CC src/csplit.o CCLD src/csplit CC src/cut.o CC src/set-fields.o CCLD src/cut CC src/date.o CCLD src/date CC src/dd.o CCLD src/dd CC src/ls.o CC src/ls-dir.o CCLD src/dir CC src/dircolors.o CCLD src/dircolors CC src/dirname.o CCLD src/dirname CC src/du.o CCLD src/du CC src/echo.o CCLD src/echo CC src/env.o CCLD src/env CC src/expand.o CC src/expand-common.o CCLD src/expand CC src/expr.o CCLD src/expr CC src/factor.o CCLD src/factor CC src/false.o CCLD src/false CC src/fmt.o CCLD src/fmt CC src/fold.o CCLD src/fold CC src/install.o CC src/prog-fprintf.o CCLD src/ginstall CC src/groups.o CC src/group-list.o CCLD src/groups CC src/head.o CCLD src/head CC src/id.o CCLD src/id CC src/join.o CCLD src/join CC src/kill.o CCLD src/kill CC src/link.o CCLD src/link CC src/ln.o CC src/relpath.o CCLD src/ln CC src/logname.o CCLD src/logname CC src/ls-ls.o CCLD src/ls CC src/md5sum-digest.o CCLD src/md5sum CC src/mkdir.o CCLD src/mkdir CC src/mkfifo.o CCLD src/mkfifo CC src/mknod.o CCLD src/mknod CC src/mktemp.o CCLD src/mktemp CC src/mv.o CC src/remove.o CCLD src/mv CC src/nl.o CCLD src/nl CC src/nproc.o CCLD src/nproc CC src/nohup.o CCLD src/nohup CC src/numfmt.o CCLD src/numfmt CC src/od.o CCLD src/od CC src/paste.o CCLD src/paste CC src/pathchk.o CCLD src/pathchk CC src/pr.o CCLD src/pr CC src/printenv.o CCLD src/printenv CC src/printf.o CCLD src/printf CC src/ptx.o CCLD src/ptx CC src/pwd.o CCLD src/pwd CC src/readlink.o CCLD src/readlink CC src/realpath.o CCLD src/realpath CC src/rm.o CCLD src/rm CC src/rmdir.o CCLD src/rmdir CC src/runcon.o CCLD src/runcon CC src/seq.o CCLD src/seq CC src/sha1sum-digest.o CCLD src/sha1sum CC src/sha224sum-digest.o CCLD src/sha224sum CC src/sha256sum-digest.o CCLD src/sha256sum CC src/sha384sum-digest.o CCLD src/sha384sum CC src/sha512sum-digest.o CCLD src/sha512sum CC src/shred.o CCLD src/shred CC src/shuf.o CCLD src/shuf CC src/sleep.o CCLD src/sleep CC src/sort.o CCLD src/sort CC src/split.o CCLD src/split CC src/stat.o CCLD src/stat CC src/sum-sum.o CC src/sum-digest.o CCLD src/sum CC src/sync.o CCLD src/sync CC src/tac.o CCLD src/tac CC src/tail.o CC src/iopoll.o CCLD src/tail CC src/tee.o CCLD src/tee CC src/test.o CCLD src/test CC src/touch.o CCLD src/touch CC src/tr.o CCLD src/tr CC src/true.o CCLD src/true CC src/truncate.o CCLD src/truncate CC src/tsort.o CCLD src/tsort CC src/tty.o CCLD src/tty CC src/uname.o CC src/uname-uname.o CCLD src/uname CC src/unexpand.o CCLD src/unexpand CC src/uniq.o CCLD src/uniq CC src/unlink.o CCLD src/unlink CC src/ls-vdir.o CCLD src/vdir CC src/wc.o CCLD src/wc CC src/whoami.o CCLD src/whoami CC src/yes.o CCLD src/yes CC src/getlimits.o CCLD src/getlimits CC src/make-prime-list.o CCLD src/make-prime-list CC src/libstdbuf_so-libstdbuf.o CCLD src/libstdbuf.so GEN man/chroot.1 GEN man/hostid.1 GEN man/timeout.1 GEN man/nice.1 GEN man/who.1 GEN man/users.1 GEN man/pinky.1 GEN man/uptime.1 GEN man/stty.1 GEN man/df.1 GEN man/stdbuf.1 GEN man/b2sum.1 GEN man/base64.1 GEN man/base32.1 GEN man/basenc.1 GEN man/basename.1 GEN man/cat.1 GEN man/chcon.1 GEN man/chgrp.1 GEN man/chmod.1 GEN man/chown.1 GEN man/cksum.1 GEN man/comm.1 GEN man/cp.1 GEN man/csplit.1 GEN man/cut.1 GEN man/date.1 GEN man/dd.1 GEN man/dir.1 GEN man/dircolors.1 GEN man/dirname.1 GEN man/du.1 GEN man/echo.1 GEN man/env.1 GEN man/expand.1 GEN man/expr.1 GEN man/factor.1 GEN man/false.1 GEN man/fmt.1 GEN man/fold.1 GEN man/install.1 GEN man/groups.1 GEN man/head.1 GEN man/id.1 GEN man/join.1 GEN man/kill.1 GEN man/link.1 GEN man/ln.1 GEN man/logname.1 GEN man/ls.1 GEN man/md5sum.1 GEN man/mkdir.1 GEN man/mkfifo.1 GEN man/mknod.1 GEN man/mktemp.1 GEN man/mv.1 GEN man/nl.1 GEN man/nproc.1 GEN man/nohup.1 GEN man/numfmt.1 GEN man/od.1 GEN man/paste.1 GEN man/pathchk.1 GEN man/pr.1 GEN man/printenv.1 GEN man/printf.1 GEN man/ptx.1 GEN man/pwd.1 GEN man/readlink.1 GEN man/realpath.1 GEN man/rm.1 GEN man/rmdir.1 GEN man/runcon.1 GEN man/seq.1 GEN man/sha1sum.1 GEN man/sha224sum.1 GEN man/sha256sum.1 GEN man/sha384sum.1 GEN man/sha512sum.1 GEN man/shred.1 GEN man/shuf.1 GEN man/sleep.1 GEN man/sort.1 GEN man/split.1 GEN man/stat.1 GEN man/sum.1 GEN man/sync.1 GEN man/tac.1 GEN man/tail.1 GEN man/tee.1 GEN man/test.1 GEN man/touch.1 GEN man/tr.1 GEN man/true.1 GEN man/truncate.1 GEN man/tsort.1 GEN man/tty.1 GEN man/uname.1 GEN man/unexpand.1 GEN man/uniq.1 GEN man/unlink.1 GEN man/vdir.1 GEN man/wc.1 GEN man/whoami.1 GEN man/yes.1 make[2]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2' Making all in gnulib-tests make[2]: Entering directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' ## ---------------------------------------------------- ## ## ------------------- Gnulib tests ------------------- ## ## You can ignore compiler warnings in this directory. ## ## ---------------------------------------------------- ## make all-recursive make[3]: Entering directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' Making all in . make[4]: Entering directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' CC bench-md5.o CC c-strcasestr.o CC ioctl.o CC localename.o CC localename-table.o CC glthread/thread.o CC timespec-add.o CC timespec-sub.o CC vma-iter.o CC strerror_r.o AR libtests.a CCLD bench-md5 CC bench-sha1.o CCLD bench-sha1 CC bench-sha224.o CCLD bench-sha224 CC bench-sha256.o CCLD bench-sha256 CC bench-sha384.o CCLD bench-sha384 CC bench-sha512.o CCLD bench-sha512 CC locale.o CCLD current-locale CC test-localcharset.o CCLD test-localcharset make[4]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' make[3]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' make[2]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2/gnulib-tests' make[1]: Leaving directory '/home/mcj/advcpmv/coreutils-9.2' |
本文最后更新于2023年6月12日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!