Menu

warning: unused parameter ‘mtime_sec’ [-Wunused-parameter]

Help
2019-07-14
2019-07-22
  • Master CATZ

    Master CATZ - 2019-07-14

    snapraid-11.3 and the git repo are throwing this error am I missing a dependancy ?

    gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR="\"/usr/local/etc\"" -g -O2 -fno-omit-frame-pointer -fno-inline-functions-called-once -fno-inline-small-functions -rdynamic -pthread -Wall -Wextra -Wuninitialized -Wshadow -c -o cmdline/support.o cmdline/support.c
    cmdline/support.c: In function ‘fmtime’:
    cmdline/support.c:894:2: error: #error No function available to set file timestamps with sub-second precision
    #error No function available to set file timestamps with sub-second precision
    ^~~~~
    cmdline/support.c:859:17: warning: unused variable ‘tv’ [-Wunused-variable]
    struct timeval tv[2];
    ^~
    cmdline/support.c:854:16: warning: unused parameter ‘f’ [-Wunused-parameter]
    int fmtime(int f, int64_t mtime_sec, int mtime_nsec)
    ^
    cmdline/support.c:854:27: warning: unused parameter ‘mtime_sec’ [-Wunused-parameter]
    int fmtime(int f, int64_t mtime_sec, int mtime_nsec)
    ^~~~~~~~~
    cmdline/support.c:854:42: warning: unused parameter ‘mtime_nsec’ [-Wunused-parameter]
    int fmtime(int f, int64_t mtime_sec, int mtime_nsec)
    ^~~~~~~~~~
    cmdline/support.c: In function ‘lmtime’:
    cmdline/support.c:940:2: error: #error No function available to set file timestamps with sub-second precision
    #error No function available to set file timestamps with sub-second precision
    ^~~~~
    cmdline/support.c:905:17: warning: unused variable ‘tv’ [-Wunused-variable]
    struct timeval tv[2];
    ^~
    cmdline/support.c:900:24: warning: unused parameter ‘path’ [-Wunused-parameter]
    int lmtime(const char path, int64_t mtime_sec, int mtime_nsec)
    ^~~~
    cmdline/support.c:900:38: warning: unused parameter ‘mtime_sec’ [-Wunused-parameter]
    int lmtime(const char
    path, int64_t mtime_sec, int mtime_nsec)
    ^~~~~~~~~
    cmdline/support.c:900:53: warning: unused parameter ‘mtime_nsec’ [-Wunused-parameter]
    int lmtime(const char* path, int64_t mtime_sec, int mtime_nsec)
    ^~~~~~~~~~
    Makefile:705: recipe for target 'cmdline/support.o' failed
    make[1]: [cmdline/support.o] Error 1
    make[1]: Leaving directory '/SnapRaidArray/DATA/snapraid'
    Makefile:533: recipe for target 'all' failed
    make:
    [all] Error 2
    aio@aio:/SnapRaidArray/DATA/snapraid$

     
  • Andrea Mazzoleni

    Hi Master CATZ,

    What operating system are you using ? Did you run ./configure ? In case, post the resulting config.log.

    The problem is that SnapRAID doesn't find any way to set the file timestamp with subsecond precision. At least one of futimens() / futimes() / futimesat() should be present.

    Ciao,
    Andrea

     
  • Master CATZ

    Master CATZ - 2019-07-16

    autogen.sh then configure were run

    Description: Ubuntu 18.04.2 LTS
    Linux aio 5.1.10-050110-generic #201906151034 SMP Sat Jun 15 10:36:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

     

    Last edit: Master CATZ 2019-07-16
  • Andrea Mazzoleni

    Try running: sudo apt install build-essential

    Ciao,
    Andrea

     
  • Master CATZ

    Master CATZ - 2019-07-18

    aio@aio:/SnapRaidArray/DATA/git/snapraid$ sudo apt install build-essential
    [sudo] password for aio:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    build-essential is already the newest version (12.4ubuntu1).
    The following packages were automatically installed and are no longer required:
    libnvpair1linux libuutil1linux libzfs2linux libzpool2linux
    Use 'sudo apt autoremove' to remove them.
    0 to upgrade, 0 to newly install, 0 to remove and 37 not to upgrade.
    aio@aio:/SnapRaidArray/DATA/git/snapraid$

     
  • Master CATZ

    Master CATZ - 2019-07-22

    I ended up using a deb package
    https://launchpad.net/~tikhonov/+archive/ubuntu/snapraid

    but now I get an error at the end of syncing saying
    xxx files with zero sub-second timestamp.

    another strange thing the paraity file's are only using half of the drive with 4x allocated disks on ext4

    wasted Gb being reported is 10% of the drive capacity aswell , unsure if that is BTRFS related or if I have dupes

     

Log in to post a comment.